#include #include #include #include #include #include #include #include #include #include #include #include #include "qstylepainter.h" #include "gen_qstylepainter.h" #include "_cgo_export.h" QStylePainter* QStylePainter_new() { return new QStylePainter(); } QStylePainter* QStylePainter_new2(QWidget* w) { return new QStylePainter(w); } QStylePainter* QStylePainter_new3(QPaintDevice* pd, QWidget* w) { return new QStylePainter(pd, w); } bool QStylePainter_Begin(QStylePainter* self, QWidget* w) { return self->begin(w); } bool QStylePainter_Begin2(QStylePainter* self, QPaintDevice* pd, QWidget* w) { return self->begin(pd, w); } void QStylePainter_DrawPrimitive(QStylePainter* self, uintptr_t pe, QStyleOption* opt) { self->drawPrimitive(static_cast(pe), *opt); } void QStylePainter_DrawControl(QStylePainter* self, uintptr_t ce, QStyleOption* opt) { self->drawControl(static_cast(ce), *opt); } void QStylePainter_DrawComplexControl(QStylePainter* self, uintptr_t cc, QStyleOptionComplex* opt) { self->drawComplexControl(static_cast(cc), *opt); } void QStylePainter_DrawItemText(QStylePainter* self, QRect* r, int flags, QPalette* pal, bool enabled, struct miqt_string* text) { QString text_QString = QString::fromUtf8(&text->data, text->len); self->drawItemText(*r, static_cast(flags), *pal, enabled, text_QString); } void QStylePainter_DrawItemPixmap(QStylePainter* self, QRect* r, int flags, QPixmap* pixmap) { self->drawItemPixmap(*r, static_cast(flags), *pixmap); } QStyle* QStylePainter_Style(const QStylePainter* self) { return self->style(); } void QStylePainter_DrawItemText6(QStylePainter* self, QRect* r, int flags, QPalette* pal, bool enabled, struct miqt_string* text, uintptr_t textRole) { QString text_QString = QString::fromUtf8(&text->data, text->len); self->drawItemText(*r, static_cast(flags), *pal, enabled, text_QString, static_cast(textRole)); } void QStylePainter_Delete(QStylePainter* self) { delete self; }