miqt/qt/gen_qstylepainter.h

61 lines
2.0 KiB
C
Raw Permalink Normal View History

#pragma once
#ifndef MIQT_QT_GEN_QSTYLEPAINTER_H
#define MIQT_QT_GEN_QSTYLEPAINTER_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "../libmiqt/libmiqt.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QPaintDevice;
2024-11-19 06:29:06 +00:00
class QPainter;
2024-08-29 07:01:51 +00:00
class QPalette;
class QPixmap;
class QRect;
class QStyle;
2024-08-29 07:01:51 +00:00
class QStyleOption;
class QStyleOptionComplex;
class QStylePainter;
class QWidget;
#else
typedef struct QPaintDevice QPaintDevice;
2024-11-19 06:29:06 +00:00
typedef struct QPainter QPainter;
2024-08-29 07:01:51 +00:00
typedef struct QPalette QPalette;
typedef struct QPixmap QPixmap;
typedef struct QRect QRect;
typedef struct QStyle QStyle;
2024-08-29 07:01:51 +00:00
typedef struct QStyleOption QStyleOption;
typedef struct QStyleOptionComplex QStyleOptionComplex;
typedef struct QStylePainter QStylePainter;
typedef struct QWidget QWidget;
#endif
2024-12-07 04:15:57 +00:00
QStylePainter* QStylePainter_new(QWidget* w);
QStylePainter* QStylePainter_new2();
QStylePainter* QStylePainter_new3(QPaintDevice* pd, QWidget* w);
void QStylePainter_virtbase(QStylePainter* src, QPainter** outptr_QPainter);
bool QStylePainter_Begin(QStylePainter* self, QWidget* w);
bool QStylePainter_Begin2(QStylePainter* self, QPaintDevice* pd, QWidget* w);
void QStylePainter_DrawPrimitive(QStylePainter* self, int pe, QStyleOption* opt);
void QStylePainter_DrawControl(QStylePainter* self, int ce, QStyleOption* opt);
void QStylePainter_DrawComplexControl(QStylePainter* self, int cc, QStyleOptionComplex* opt);
void QStylePainter_DrawItemText(QStylePainter* self, QRect* r, int flags, QPalette* pal, bool enabled, struct miqt_string text);
void QStylePainter_DrawItemPixmap(QStylePainter* self, QRect* r, int flags, QPixmap* pixmap);
QStyle* QStylePainter_Style(const QStylePainter* self);
void QStylePainter_DrawItemText6(QStylePainter* self, QRect* r, int flags, QPalette* pal, bool enabled, struct miqt_string text, int textRole);
2024-11-19 06:29:06 +00:00
void QStylePainter_Delete(QStylePainter* self, bool isSubclass);
#ifdef __cplusplus
} /* extern C */
#endif
#endif