miqt/qt/gen_qstyle.h

118 lines
6.7 KiB
C
Raw Normal View History

#ifndef GEN_QSTYLE_H
#define GEN_QSTYLE_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "binding.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QApplication;
class QFontMetrics;
2024-08-29 07:01:51 +00:00
class QIcon;
class QMetaObject;
class QPainter;
class QPalette;
class QPixmap;
2024-08-29 07:01:51 +00:00
class QPoint;
class QRect;
2024-08-29 07:01:51 +00:00
class QSize;
class QStyle;
2024-08-29 07:01:51 +00:00
class QStyleHintReturn;
class QStyleOption;
class QStyleOptionComplex;
class QWidget;
#else
typedef struct QApplication QApplication;
typedef struct QFontMetrics QFontMetrics;
2024-08-29 07:01:51 +00:00
typedef struct QIcon QIcon;
typedef struct QMetaObject QMetaObject;
typedef struct QPainter QPainter;
typedef struct QPalette QPalette;
typedef struct QPixmap QPixmap;
2024-08-29 07:01:51 +00:00
typedef struct QPoint QPoint;
typedef struct QRect QRect;
2024-08-29 07:01:51 +00:00
typedef struct QSize QSize;
typedef struct QStyle QStyle;
2024-08-29 07:01:51 +00:00
typedef struct QStyleHintReturn QStyleHintReturn;
typedef struct QStyleOption QStyleOption;
typedef struct QStyleOptionComplex QStyleOptionComplex;
typedef struct QWidget QWidget;
#endif
QMetaObject* QStyle_MetaObject(const QStyle* self);
struct miqt_string* QStyle_Tr(const char* s);
struct miqt_string* QStyle_TrUtf8(const char* s);
void QStyle_Polish(QStyle* self, QWidget* widget);
void QStyle_Unpolish(QStyle* self, QWidget* widget);
void QStyle_PolishWithApplication(QStyle* self, QApplication* application);
void QStyle_UnpolishWithApplication(QStyle* self, QApplication* application);
void QStyle_PolishWithPalette(QStyle* self, QPalette* palette);
QRect* QStyle_ItemTextRect(const QStyle* self, QFontMetrics* fm, QRect* r, int flags, bool enabled, struct miqt_string* text);
QRect* QStyle_ItemPixmapRect(const QStyle* self, QRect* r, int flags, QPixmap* pixmap);
void QStyle_DrawItemText(const QStyle* self, QPainter* painter, QRect* rect, int flags, QPalette* pal, bool enabled, struct miqt_string* text);
void QStyle_DrawItemPixmap(const QStyle* self, QPainter* painter, QRect* rect, int alignment, QPixmap* pixmap);
QPalette* QStyle_StandardPalette(const QStyle* self);
void QStyle_DrawPrimitive(const QStyle* self, uintptr_t pe, QStyleOption* opt, QPainter* p);
void QStyle_DrawControl(const QStyle* self, uintptr_t element, QStyleOption* opt, QPainter* p);
QRect* QStyle_SubElementRect(const QStyle* self, uintptr_t subElement, QStyleOption* option);
void QStyle_DrawComplexControl(const QStyle* self, uintptr_t cc, QStyleOptionComplex* opt, QPainter* p);
uintptr_t QStyle_HitTestComplexControl(const QStyle* self, uintptr_t cc, QStyleOptionComplex* opt, QPoint* pt);
QRect* QStyle_SubControlRect(const QStyle* self, uintptr_t cc, QStyleOptionComplex* opt, uintptr_t sc);
int QStyle_PixelMetric(const QStyle* self, uintptr_t metric);
QSize* QStyle_SizeFromContents(const QStyle* self, uintptr_t ct, QStyleOption* opt, QSize* contentsSize);
int QStyle_StyleHint(const QStyle* self, uintptr_t stylehint);
QPixmap* QStyle_StandardPixmap(const QStyle* self, uintptr_t standardPixmap);
QIcon* QStyle_StandardIcon(const QStyle* self, uintptr_t standardIcon);
QPixmap* QStyle_GeneratedIconPixmap(const QStyle* self, uintptr_t iconMode, QPixmap* pixmap, QStyleOption* opt);
2024-08-29 07:01:51 +00:00
QRect* QStyle_VisualRect(uintptr_t direction, QRect* boundingRect, QRect* logicalRect);
QPoint* QStyle_VisualPos(uintptr_t direction, QRect* boundingRect, QPoint* logicalPos);
int QStyle_SliderPositionFromValue(int min, int max, int val, int space);
int QStyle_SliderValueFromPosition(int min, int max, int pos, int space);
2024-08-29 07:01:51 +00:00
int QStyle_VisualAlignment(uintptr_t direction, int alignment);
QRect* QStyle_AlignedRect(uintptr_t direction, int alignment, QSize* size, QRect* rectangle);
int QStyle_LayoutSpacing(const QStyle* self, uintptr_t control1, uintptr_t control2, uintptr_t orientation);
int QStyle_CombinedLayoutSpacing(const QStyle* self, int controls1, int controls2, uintptr_t orientation);
QStyle* QStyle_Proxy(const QStyle* self);
struct miqt_string* QStyle_Tr2(const char* s, const char* c);
struct miqt_string* QStyle_Tr3(const char* s, const char* c, int n);
struct miqt_string* QStyle_TrUtf82(const char* s, const char* c);
struct miqt_string* QStyle_TrUtf83(const char* s, const char* c, int n);
void QStyle_DrawItemText7(const QStyle* self, QPainter* painter, QRect* rect, int flags, QPalette* pal, bool enabled, struct miqt_string* text, uintptr_t textRole);
void QStyle_DrawPrimitive4(const QStyle* self, uintptr_t pe, QStyleOption* opt, QPainter* p, QWidget* w);
void QStyle_DrawControl4(const QStyle* self, uintptr_t element, QStyleOption* opt, QPainter* p, QWidget* w);
QRect* QStyle_SubElementRect3(const QStyle* self, uintptr_t subElement, QStyleOption* option, QWidget* widget);
void QStyle_DrawComplexControl4(const QStyle* self, uintptr_t cc, QStyleOptionComplex* opt, QPainter* p, QWidget* widget);
uintptr_t QStyle_HitTestComplexControl4(const QStyle* self, uintptr_t cc, QStyleOptionComplex* opt, QPoint* pt, QWidget* widget);
QRect* QStyle_SubControlRect4(const QStyle* self, uintptr_t cc, QStyleOptionComplex* opt, uintptr_t sc, QWidget* widget);
int QStyle_PixelMetric2(const QStyle* self, uintptr_t metric, QStyleOption* option);
int QStyle_PixelMetric3(const QStyle* self, uintptr_t metric, QStyleOption* option, QWidget* widget);
QSize* QStyle_SizeFromContents4(const QStyle* self, uintptr_t ct, QStyleOption* opt, QSize* contentsSize, QWidget* w);
int QStyle_StyleHint2(const QStyle* self, uintptr_t stylehint, QStyleOption* opt);
int QStyle_StyleHint3(const QStyle* self, uintptr_t stylehint, QStyleOption* opt, QWidget* widget);
int QStyle_StyleHint4(const QStyle* self, uintptr_t stylehint, QStyleOption* opt, QWidget* widget, QStyleHintReturn* returnData);
QPixmap* QStyle_StandardPixmap2(const QStyle* self, uintptr_t standardPixmap, QStyleOption* opt);
QPixmap* QStyle_StandardPixmap3(const QStyle* self, uintptr_t standardPixmap, QStyleOption* opt, QWidget* widget);
QIcon* QStyle_StandardIcon2(const QStyle* self, uintptr_t standardIcon, QStyleOption* option);
QIcon* QStyle_StandardIcon3(const QStyle* self, uintptr_t standardIcon, QStyleOption* option, QWidget* widget);
int QStyle_SliderPositionFromValue5(int min, int max, int val, int space, bool upsideDown);
int QStyle_SliderValueFromPosition5(int min, int max, int pos, int space, bool upsideDown);
int QStyle_LayoutSpacing4(const QStyle* self, uintptr_t control1, uintptr_t control2, uintptr_t orientation, QStyleOption* option);
int QStyle_LayoutSpacing5(const QStyle* self, uintptr_t control1, uintptr_t control2, uintptr_t orientation, QStyleOption* option, QWidget* widget);
int QStyle_CombinedLayoutSpacing4(const QStyle* self, int controls1, int controls2, uintptr_t orientation, QStyleOption* option);
int QStyle_CombinedLayoutSpacing5(const QStyle* self, int controls1, int controls2, uintptr_t orientation, QStyleOption* option, QWidget* widget);
void QStyle_Delete(QStyle* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif