#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qcommonstyle.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" class MiqtVirtualQCommonStyle : public virtual QCommonStyle { public: MiqtVirtualQCommonStyle(): QCommonStyle() {}; virtual ~MiqtVirtualQCommonStyle() = default; // cgo.Handle value for overwritten implementation intptr_t handle__DrawPrimitive = 0; // Subclass to allow providing a Go implementation virtual void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const override { if (handle__DrawPrimitive == 0) { QCommonStyle::drawPrimitive(pe, opt, p, w); return; } QStyle::PrimitiveElement pe_ret = pe; int sigval1 = static_cast(pe_ret); QStyleOption* sigval2 = (QStyleOption*) opt; QPainter* sigval3 = p; QWidget* sigval4 = (QWidget*) w; miqt_exec_callback_QCommonStyle_DrawPrimitive(const_cast(this), handle__DrawPrimitive, sigval1, sigval2, sigval3, sigval4); } // Wrapper to allow calling protected method void virtualbase_DrawPrimitive(int pe, QStyleOption* opt, QPainter* p, QWidget* w) const { QCommonStyle::drawPrimitive(static_cast(pe), opt, p, w); } // cgo.Handle value for overwritten implementation intptr_t handle__DrawControl = 0; // Subclass to allow providing a Go implementation virtual void drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const override { if (handle__DrawControl == 0) { QCommonStyle::drawControl(element, opt, p, w); return; } QStyle::ControlElement element_ret = element; int sigval1 = static_cast(element_ret); QStyleOption* sigval2 = (QStyleOption*) opt; QPainter* sigval3 = p; QWidget* sigval4 = (QWidget*) w; miqt_exec_callback_QCommonStyle_DrawControl(const_cast(this), handle__DrawControl, sigval1, sigval2, sigval3, sigval4); } // Wrapper to allow calling protected method void virtualbase_DrawControl(int element, QStyleOption* opt, QPainter* p, QWidget* w) const { QCommonStyle::drawControl(static_cast(element), opt, p, w); } // cgo.Handle value for overwritten implementation intptr_t handle__SubElementRect = 0; // Subclass to allow providing a Go implementation virtual QRect subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const override { if (handle__SubElementRect == 0) { return QCommonStyle::subElementRect(r, opt, widget); } QStyle::SubElement r_ret = r; int sigval1 = static_cast(r_ret); QStyleOption* sigval2 = (QStyleOption*) opt; QWidget* sigval3 = (QWidget*) widget; QRect* callback_return_value = miqt_exec_callback_QCommonStyle_SubElementRect(const_cast(this), handle__SubElementRect, sigval1, sigval2, sigval3); return *callback_return_value; } // Wrapper to allow calling protected method QRect* virtualbase_SubElementRect(int r, QStyleOption* opt, QWidget* widget) const { return new QRect(QCommonStyle::subElementRect(static_cast(r), opt, widget)); } // cgo.Handle value for overwritten implementation intptr_t handle__DrawComplexControl = 0; // Subclass to allow providing a Go implementation virtual void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const override { if (handle__DrawComplexControl == 0) { QCommonStyle::drawComplexControl(cc, opt, p, w); return; } QStyle::ComplexControl cc_ret = cc; int sigval1 = static_cast(cc_ret); QStyleOptionComplex* sigval2 = (QStyleOptionComplex*) opt; QPainter* sigval3 = p; QWidget* sigval4 = (QWidget*) w; miqt_exec_callback_QCommonStyle_DrawComplexControl(const_cast(this), handle__DrawComplexControl, sigval1, sigval2, sigval3, sigval4); } // Wrapper to allow calling protected method void virtualbase_DrawComplexControl(int cc, QStyleOptionComplex* opt, QPainter* p, QWidget* w) const { QCommonStyle::drawComplexControl(static_cast(cc), opt, p, w); } // cgo.Handle value for overwritten implementation intptr_t handle__HitTestComplexControl = 0; // Subclass to allow providing a Go implementation virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const override { if (handle__HitTestComplexControl == 0) { return QCommonStyle::hitTestComplexControl(cc, opt, pt, w); } QStyle::ComplexControl cc_ret = cc; int sigval1 = static_cast(cc_ret); QStyleOptionComplex* sigval2 = (QStyleOptionComplex*) opt; const QPoint& pt_ret = pt; // Cast returned reference into pointer QPoint* sigval3 = const_cast(&pt_ret); QWidget* sigval4 = (QWidget*) w; int callback_return_value = miqt_exec_callback_QCommonStyle_HitTestComplexControl(const_cast(this), handle__HitTestComplexControl, sigval1, sigval2, sigval3, sigval4); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_HitTestComplexControl(int cc, QStyleOptionComplex* opt, QPoint* pt, QWidget* w) const { QStyle::SubControl _ret = QCommonStyle::hitTestComplexControl(static_cast(cc), opt, *pt, w); return static_cast(_ret); } // cgo.Handle value for overwritten implementation intptr_t handle__SubControlRect = 0; // Subclass to allow providing a Go implementation virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w) const override { if (handle__SubControlRect == 0) { return QCommonStyle::subControlRect(cc, opt, sc, w); } QStyle::ComplexControl cc_ret = cc; int sigval1 = static_cast(cc_ret); QStyleOptionComplex* sigval2 = (QStyleOptionComplex*) opt; QStyle::SubControl sc_ret = sc; int sigval3 = static_cast(sc_ret); QWidget* sigval4 = (QWidget*) w; QRect* callback_return_value = miqt_exec_callback_QCommonStyle_SubControlRect(const_cast(this), handle__SubControlRect, sigval1, sigval2, sigval3, sigval4); return *callback_return_value; } // Wrapper to allow calling protected method QRect* virtualbase_SubControlRect(int cc, QStyleOptionComplex* opt, int sc, QWidget* w) const { return new QRect(QCommonStyle::subControlRect(static_cast(cc), opt, static_cast(sc), w)); } // cgo.Handle value for overwritten implementation intptr_t handle__SizeFromContents = 0; // Subclass to allow providing a Go implementation virtual QSize sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const override { if (handle__SizeFromContents == 0) { return QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget); } QStyle::ContentsType ct_ret = ct; int sigval1 = static_cast(ct_ret); QStyleOption* sigval2 = (QStyleOption*) opt; const QSize& contentsSize_ret = contentsSize; // Cast returned reference into pointer QSize* sigval3 = const_cast(&contentsSize_ret); QWidget* sigval4 = (QWidget*) widget; QSize* callback_return_value = miqt_exec_callback_QCommonStyle_SizeFromContents(const_cast(this), handle__SizeFromContents, sigval1, sigval2, sigval3, sigval4); return *callback_return_value; } // Wrapper to allow calling protected method QSize* virtualbase_SizeFromContents(int ct, QStyleOption* opt, QSize* contentsSize, QWidget* widget) const { return new QSize(QCommonStyle::sizeFromContents(static_cast(ct), opt, *contentsSize, widget)); } // cgo.Handle value for overwritten implementation intptr_t handle__PixelMetric = 0; // Subclass to allow providing a Go implementation virtual int pixelMetric(QStyle::PixelMetric m, const QStyleOption* opt, const QWidget* widget) const override { if (handle__PixelMetric == 0) { return QCommonStyle::pixelMetric(m, opt, widget); } QStyle::PixelMetric m_ret = m; int sigval1 = static_cast(m_ret); QStyleOption* sigval2 = (QStyleOption*) opt; QWidget* sigval3 = (QWidget*) widget; int callback_return_value = miqt_exec_callback_QCommonStyle_PixelMetric(const_cast(this), handle__PixelMetric, sigval1, sigval2, sigval3); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_PixelMetric(int m, QStyleOption* opt, QWidget* widget) const { return QCommonStyle::pixelMetric(static_cast(m), opt, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__StyleHint = 0; // Subclass to allow providing a Go implementation virtual int styleHint(QStyle::StyleHint sh, const QStyleOption* opt, const QWidget* w, QStyleHintReturn* shret) const override { if (handle__StyleHint == 0) { return QCommonStyle::styleHint(sh, opt, w, shret); } QStyle::StyleHint sh_ret = sh; int sigval1 = static_cast(sh_ret); QStyleOption* sigval2 = (QStyleOption*) opt; QWidget* sigval3 = (QWidget*) w; QStyleHintReturn* sigval4 = shret; int callback_return_value = miqt_exec_callback_QCommonStyle_StyleHint(const_cast(this), handle__StyleHint, sigval1, sigval2, sigval3, sigval4); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_StyleHint(int sh, QStyleOption* opt, QWidget* w, QStyleHintReturn* shret) const { return QCommonStyle::styleHint(static_cast(sh), opt, w, shret); } // cgo.Handle value for overwritten implementation intptr_t handle__StandardIcon = 0; // Subclass to allow providing a Go implementation virtual QIcon standardIcon(QStyle::StandardPixmap standardIcon, const QStyleOption* opt, const QWidget* widget) const override { if (handle__StandardIcon == 0) { return QCommonStyle::standardIcon(standardIcon, opt, widget); } QStyle::StandardPixmap standardIcon_ret = standardIcon; int sigval1 = static_cast(standardIcon_ret); QStyleOption* sigval2 = (QStyleOption*) opt; QWidget* sigval3 = (QWidget*) widget; QIcon* callback_return_value = miqt_exec_callback_QCommonStyle_StandardIcon(const_cast(this), handle__StandardIcon, sigval1, sigval2, sigval3); return *callback_return_value; } // Wrapper to allow calling protected method QIcon* virtualbase_StandardIcon(int standardIcon, QStyleOption* opt, QWidget* widget) const { return new QIcon(QCommonStyle::standardIcon(static_cast(standardIcon), opt, widget)); } // cgo.Handle value for overwritten implementation intptr_t handle__StandardPixmap = 0; // Subclass to allow providing a Go implementation virtual QPixmap standardPixmap(QStyle::StandardPixmap sp, const QStyleOption* opt, const QWidget* widget) const override { if (handle__StandardPixmap == 0) { return QCommonStyle::standardPixmap(sp, opt, widget); } QStyle::StandardPixmap sp_ret = sp; int sigval1 = static_cast(sp_ret); QStyleOption* sigval2 = (QStyleOption*) opt; QWidget* sigval3 = (QWidget*) widget; QPixmap* callback_return_value = miqt_exec_callback_QCommonStyle_StandardPixmap(const_cast(this), handle__StandardPixmap, sigval1, sigval2, sigval3); return *callback_return_value; } // Wrapper to allow calling protected method QPixmap* virtualbase_StandardPixmap(int sp, QStyleOption* opt, QWidget* widget) const { return new QPixmap(QCommonStyle::standardPixmap(static_cast(sp), opt, widget)); } // cgo.Handle value for overwritten implementation intptr_t handle__GeneratedIconPixmap = 0; // Subclass to allow providing a Go implementation virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const override { if (handle__GeneratedIconPixmap == 0) { return QCommonStyle::generatedIconPixmap(iconMode, pixmap, opt); } QIcon::Mode iconMode_ret = iconMode; int sigval1 = static_cast(iconMode_ret); const QPixmap& pixmap_ret = pixmap; // Cast returned reference into pointer QPixmap* sigval2 = const_cast(&pixmap_ret); QStyleOption* sigval3 = (QStyleOption*) opt; QPixmap* callback_return_value = miqt_exec_callback_QCommonStyle_GeneratedIconPixmap(const_cast(this), handle__GeneratedIconPixmap, sigval1, sigval2, sigval3); return *callback_return_value; } // Wrapper to allow calling protected method QPixmap* virtualbase_GeneratedIconPixmap(int iconMode, QPixmap* pixmap, QStyleOption* opt) const { return new QPixmap(QCommonStyle::generatedIconPixmap(static_cast(iconMode), *pixmap, opt)); } // cgo.Handle value for overwritten implementation intptr_t handle__LayoutSpacing = 0; // Subclass to allow providing a Go implementation virtual int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option, const QWidget* widget) const override { if (handle__LayoutSpacing == 0) { return QCommonStyle::layoutSpacing(control1, control2, orientation, option, widget); } QSizePolicy::ControlType control1_ret = control1; int sigval1 = static_cast(control1_ret); QSizePolicy::ControlType control2_ret = control2; int sigval2 = static_cast(control2_ret); Qt::Orientation orientation_ret = orientation; int sigval3 = static_cast(orientation_ret); QStyleOption* sigval4 = (QStyleOption*) option; QWidget* sigval5 = (QWidget*) widget; int callback_return_value = miqt_exec_callback_QCommonStyle_LayoutSpacing(const_cast(this), handle__LayoutSpacing, sigval1, sigval2, sigval3, sigval4, sigval5); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_LayoutSpacing(int control1, int control2, int orientation, QStyleOption* option, QWidget* widget) const { return QCommonStyle::layoutSpacing(static_cast(control1), static_cast(control2), static_cast(orientation), option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__Polish = 0; // Subclass to allow providing a Go implementation virtual void polish(QPalette& param1) override { if (handle__Polish == 0) { QCommonStyle::polish(param1); return; } QPalette& param1_ret = param1; // Cast returned reference into pointer QPalette* sigval1 = ¶m1_ret; miqt_exec_callback_QCommonStyle_Polish(this, handle__Polish, sigval1); } // Wrapper to allow calling protected method void virtualbase_Polish(QPalette* param1) { QCommonStyle::polish(*param1); } // cgo.Handle value for overwritten implementation intptr_t handle__PolishWithApp = 0; // Subclass to allow providing a Go implementation virtual void polish(QApplication* app) override { if (handle__PolishWithApp == 0) { QCommonStyle::polish(app); return; } QApplication* sigval1 = app; miqt_exec_callback_QCommonStyle_PolishWithApp(this, handle__PolishWithApp, sigval1); } // Wrapper to allow calling protected method void virtualbase_PolishWithApp(QApplication* app) { QCommonStyle::polish(app); } // cgo.Handle value for overwritten implementation intptr_t handle__PolishWithWidget = 0; // Subclass to allow providing a Go implementation virtual void polish(QWidget* widget) override { if (handle__PolishWithWidget == 0) { QCommonStyle::polish(widget); return; } QWidget* sigval1 = widget; miqt_exec_callback_QCommonStyle_PolishWithWidget(this, handle__PolishWithWidget, sigval1); } // Wrapper to allow calling protected method void virtualbase_PolishWithWidget(QWidget* widget) { QCommonStyle::polish(widget); } // cgo.Handle value for overwritten implementation intptr_t handle__Unpolish = 0; // Subclass to allow providing a Go implementation virtual void unpolish(QWidget* widget) override { if (handle__Unpolish == 0) { QCommonStyle::unpolish(widget); return; } QWidget* sigval1 = widget; miqt_exec_callback_QCommonStyle_Unpolish(this, handle__Unpolish, sigval1); } // Wrapper to allow calling protected method void virtualbase_Unpolish(QWidget* widget) { QCommonStyle::unpolish(widget); } // cgo.Handle value for overwritten implementation intptr_t handle__UnpolishWithApplication = 0; // Subclass to allow providing a Go implementation virtual void unpolish(QApplication* application) override { if (handle__UnpolishWithApplication == 0) { QCommonStyle::unpolish(application); return; } QApplication* sigval1 = application; miqt_exec_callback_QCommonStyle_UnpolishWithApplication(this, handle__UnpolishWithApplication, sigval1); } // Wrapper to allow calling protected method void virtualbase_UnpolishWithApplication(QApplication* application) { QCommonStyle::unpolish(application); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemTextRect = 0; // Subclass to allow providing a Go implementation virtual QRect itemTextRect(const QFontMetrics& fm, const QRect& r, int flags, bool enabled, const QString& text) const override { if (handle__ItemTextRect == 0) { return QCommonStyle::itemTextRect(fm, r, flags, enabled, text); } const QFontMetrics& fm_ret = fm; // Cast returned reference into pointer QFontMetrics* sigval1 = const_cast(&fm_ret); const QRect& r_ret = r; // Cast returned reference into pointer QRect* sigval2 = const_cast(&r_ret); int sigval3 = flags; bool sigval4 = enabled; const QString text_ret = text; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray text_b = text_ret.toUtf8(); struct miqt_string text_ms; text_ms.len = text_b.length(); text_ms.data = static_cast(malloc(text_ms.len)); memcpy(text_ms.data, text_b.data(), text_ms.len); struct miqt_string sigval5 = text_ms; QRect* callback_return_value = miqt_exec_callback_QCommonStyle_ItemTextRect(const_cast(this), handle__ItemTextRect, sigval1, sigval2, sigval3, sigval4, sigval5); return *callback_return_value; } // Wrapper to allow calling protected method QRect* virtualbase_ItemTextRect(QFontMetrics* fm, QRect* r, int flags, bool enabled, struct miqt_string text) const { QString text_QString = QString::fromUtf8(text.data, text.len); return new QRect(QCommonStyle::itemTextRect(*fm, *r, static_cast(flags), enabled, text_QString)); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemPixmapRect = 0; // Subclass to allow providing a Go implementation virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const override { if (handle__ItemPixmapRect == 0) { return QCommonStyle::itemPixmapRect(r, flags, pixmap); } const QRect& r_ret = r; // Cast returned reference into pointer QRect* sigval1 = const_cast(&r_ret); int sigval2 = flags; const QPixmap& pixmap_ret = pixmap; // Cast returned reference into pointer QPixmap* sigval3 = const_cast(&pixmap_ret); QRect* callback_return_value = miqt_exec_callback_QCommonStyle_ItemPixmapRect(const_cast(this), handle__ItemPixmapRect, sigval1, sigval2, sigval3); return *callback_return_value; } // Wrapper to allow calling protected method QRect* virtualbase_ItemPixmapRect(QRect* r, int flags, QPixmap* pixmap) const { return new QRect(QCommonStyle::itemPixmapRect(*r, static_cast(flags), *pixmap)); } // cgo.Handle value for overwritten implementation intptr_t handle__DrawItemText = 0; // Subclass to allow providing a Go implementation virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const override { if (handle__DrawItemText == 0) { QCommonStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); return; } QPainter* sigval1 = painter; const QRect& rect_ret = rect; // Cast returned reference into pointer QRect* sigval2 = const_cast(&rect_ret); int sigval3 = flags; const QPalette& pal_ret = pal; // Cast returned reference into pointer QPalette* sigval4 = const_cast(&pal_ret); bool sigval5 = enabled; const QString text_ret = text; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray text_b = text_ret.toUtf8(); struct miqt_string text_ms; text_ms.len = text_b.length(); text_ms.data = static_cast(malloc(text_ms.len)); memcpy(text_ms.data, text_b.data(), text_ms.len); struct miqt_string sigval6 = text_ms; QPalette::ColorRole textRole_ret = textRole; int sigval7 = static_cast(textRole_ret); miqt_exec_callback_QCommonStyle_DrawItemText(const_cast(this), handle__DrawItemText, sigval1, sigval2, sigval3, sigval4, sigval5, sigval6, sigval7); } // Wrapper to allow calling protected method void virtualbase_DrawItemText(QPainter* painter, QRect* rect, int flags, QPalette* pal, bool enabled, struct miqt_string text, int textRole) const { QString text_QString = QString::fromUtf8(text.data, text.len); QCommonStyle::drawItemText(painter, *rect, static_cast(flags), *pal, enabled, text_QString, static_cast(textRole)); } // cgo.Handle value for overwritten implementation intptr_t handle__DrawItemPixmap = 0; // Subclass to allow providing a Go implementation virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const override { if (handle__DrawItemPixmap == 0) { QCommonStyle::drawItemPixmap(painter, rect, alignment, pixmap); return; } QPainter* sigval1 = painter; const QRect& rect_ret = rect; // Cast returned reference into pointer QRect* sigval2 = const_cast(&rect_ret); int sigval3 = alignment; const QPixmap& pixmap_ret = pixmap; // Cast returned reference into pointer QPixmap* sigval4 = const_cast(&pixmap_ret); miqt_exec_callback_QCommonStyle_DrawItemPixmap(const_cast(this), handle__DrawItemPixmap, sigval1, sigval2, sigval3, sigval4); } // Wrapper to allow calling protected method void virtualbase_DrawItemPixmap(QPainter* painter, QRect* rect, int alignment, QPixmap* pixmap) const { QCommonStyle::drawItemPixmap(painter, *rect, static_cast(alignment), *pixmap); } // cgo.Handle value for overwritten implementation intptr_t handle__StandardPalette = 0; // Subclass to allow providing a Go implementation virtual QPalette standardPalette() const override { if (handle__StandardPalette == 0) { return QCommonStyle::standardPalette(); } QPalette* callback_return_value = miqt_exec_callback_QCommonStyle_StandardPalette(const_cast(this), handle__StandardPalette); return *callback_return_value; } // Wrapper to allow calling protected method QPalette* virtualbase_StandardPalette() const { return new QPalette(QCommonStyle::standardPalette()); } }; QCommonStyle* QCommonStyle_new() { return new MiqtVirtualQCommonStyle(); } void QCommonStyle_virtbase(QCommonStyle* src, QStyle** outptr_QStyle) { *outptr_QStyle = static_cast(src); } QMetaObject* QCommonStyle_MetaObject(const QCommonStyle* self) { return (QMetaObject*) self->metaObject(); } void* QCommonStyle_Metacast(QCommonStyle* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QCommonStyle_Tr(const char* s) { QString _ret = QCommonStyle::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QCommonStyle_DrawPrimitive(const QCommonStyle* self, int pe, QStyleOption* opt, QPainter* p, QWidget* w) { self->drawPrimitive(static_cast(pe), opt, p, w); } void QCommonStyle_DrawControl(const QCommonStyle* self, int element, QStyleOption* opt, QPainter* p, QWidget* w) { self->drawControl(static_cast(element), opt, p, w); } QRect* QCommonStyle_SubElementRect(const QCommonStyle* self, int r, QStyleOption* opt, QWidget* widget) { return new QRect(self->subElementRect(static_cast(r), opt, widget)); } void QCommonStyle_DrawComplexControl(const QCommonStyle* self, int cc, QStyleOptionComplex* opt, QPainter* p, QWidget* w) { self->drawComplexControl(static_cast(cc), opt, p, w); } int QCommonStyle_HitTestComplexControl(const QCommonStyle* self, int cc, QStyleOptionComplex* opt, QPoint* pt, QWidget* w) { QStyle::SubControl _ret = self->hitTestComplexControl(static_cast(cc), opt, *pt, w); return static_cast(_ret); } QRect* QCommonStyle_SubControlRect(const QCommonStyle* self, int cc, QStyleOptionComplex* opt, int sc, QWidget* w) { return new QRect(self->subControlRect(static_cast(cc), opt, static_cast(sc), w)); } QSize* QCommonStyle_SizeFromContents(const QCommonStyle* self, int ct, QStyleOption* opt, QSize* contentsSize, QWidget* widget) { return new QSize(self->sizeFromContents(static_cast(ct), opt, *contentsSize, widget)); } int QCommonStyle_PixelMetric(const QCommonStyle* self, int m, QStyleOption* opt, QWidget* widget) { return self->pixelMetric(static_cast(m), opt, widget); } int QCommonStyle_StyleHint(const QCommonStyle* self, int sh, QStyleOption* opt, QWidget* w, QStyleHintReturn* shret) { return self->styleHint(static_cast(sh), opt, w, shret); } QIcon* QCommonStyle_StandardIcon(const QCommonStyle* self, int standardIcon, QStyleOption* opt, QWidget* widget) { return new QIcon(self->standardIcon(static_cast(standardIcon), opt, widget)); } QPixmap* QCommonStyle_StandardPixmap(const QCommonStyle* self, int sp, QStyleOption* opt, QWidget* widget) { return new QPixmap(self->standardPixmap(static_cast(sp), opt, widget)); } QPixmap* QCommonStyle_GeneratedIconPixmap(const QCommonStyle* self, int iconMode, QPixmap* pixmap, QStyleOption* opt) { return new QPixmap(self->generatedIconPixmap(static_cast(iconMode), *pixmap, opt)); } int QCommonStyle_LayoutSpacing(const QCommonStyle* self, int control1, int control2, int orientation, QStyleOption* option, QWidget* widget) { return self->layoutSpacing(static_cast(control1), static_cast(control2), static_cast(orientation), option, widget); } void QCommonStyle_Polish(QCommonStyle* self, QPalette* param1) { self->polish(*param1); } void QCommonStyle_PolishWithApp(QCommonStyle* self, QApplication* app) { self->polish(app); } void QCommonStyle_PolishWithWidget(QCommonStyle* self, QWidget* widget) { self->polish(widget); } void QCommonStyle_Unpolish(QCommonStyle* self, QWidget* widget) { self->unpolish(widget); } void QCommonStyle_UnpolishWithApplication(QCommonStyle* self, QApplication* application) { self->unpolish(application); } struct miqt_string QCommonStyle_Tr2(const char* s, const char* c) { QString _ret = QCommonStyle::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCommonStyle_Tr3(const char* s, const char* c, int n) { QString _ret = QCommonStyle::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QCommonStyle_override_virtual_DrawPrimitive(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__DrawPrimitive = slot; } void QCommonStyle_virtualbase_DrawPrimitive(const void* self, int pe, QStyleOption* opt, QPainter* p, QWidget* w) { ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_DrawPrimitive(pe, opt, p, w); } void QCommonStyle_override_virtual_DrawControl(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__DrawControl = slot; } void QCommonStyle_virtualbase_DrawControl(const void* self, int element, QStyleOption* opt, QPainter* p, QWidget* w) { ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_DrawControl(element, opt, p, w); } void QCommonStyle_override_virtual_SubElementRect(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__SubElementRect = slot; } QRect* QCommonStyle_virtualbase_SubElementRect(const void* self, int r, QStyleOption* opt, QWidget* widget) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_SubElementRect(r, opt, widget); } void QCommonStyle_override_virtual_DrawComplexControl(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__DrawComplexControl = slot; } void QCommonStyle_virtualbase_DrawComplexControl(const void* self, int cc, QStyleOptionComplex* opt, QPainter* p, QWidget* w) { ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_DrawComplexControl(cc, opt, p, w); } void QCommonStyle_override_virtual_HitTestComplexControl(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__HitTestComplexControl = slot; } int QCommonStyle_virtualbase_HitTestComplexControl(const void* self, int cc, QStyleOptionComplex* opt, QPoint* pt, QWidget* w) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_HitTestComplexControl(cc, opt, pt, w); } void QCommonStyle_override_virtual_SubControlRect(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__SubControlRect = slot; } QRect* QCommonStyle_virtualbase_SubControlRect(const void* self, int cc, QStyleOptionComplex* opt, int sc, QWidget* w) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_SubControlRect(cc, opt, sc, w); } void QCommonStyle_override_virtual_SizeFromContents(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__SizeFromContents = slot; } QSize* QCommonStyle_virtualbase_SizeFromContents(const void* self, int ct, QStyleOption* opt, QSize* contentsSize, QWidget* widget) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_SizeFromContents(ct, opt, contentsSize, widget); } void QCommonStyle_override_virtual_PixelMetric(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__PixelMetric = slot; } int QCommonStyle_virtualbase_PixelMetric(const void* self, int m, QStyleOption* opt, QWidget* widget) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_PixelMetric(m, opt, widget); } void QCommonStyle_override_virtual_StyleHint(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__StyleHint = slot; } int QCommonStyle_virtualbase_StyleHint(const void* self, int sh, QStyleOption* opt, QWidget* w, QStyleHintReturn* shret) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_StyleHint(sh, opt, w, shret); } void QCommonStyle_override_virtual_StandardIcon(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__StandardIcon = slot; } QIcon* QCommonStyle_virtualbase_StandardIcon(const void* self, int standardIcon, QStyleOption* opt, QWidget* widget) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_StandardIcon(standardIcon, opt, widget); } void QCommonStyle_override_virtual_StandardPixmap(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__StandardPixmap = slot; } QPixmap* QCommonStyle_virtualbase_StandardPixmap(const void* self, int sp, QStyleOption* opt, QWidget* widget) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_StandardPixmap(sp, opt, widget); } void QCommonStyle_override_virtual_GeneratedIconPixmap(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__GeneratedIconPixmap = slot; } QPixmap* QCommonStyle_virtualbase_GeneratedIconPixmap(const void* self, int iconMode, QPixmap* pixmap, QStyleOption* opt) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_GeneratedIconPixmap(iconMode, pixmap, opt); } void QCommonStyle_override_virtual_LayoutSpacing(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__LayoutSpacing = slot; } int QCommonStyle_virtualbase_LayoutSpacing(const void* self, int control1, int control2, int orientation, QStyleOption* option, QWidget* widget) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_LayoutSpacing(control1, control2, orientation, option, widget); } void QCommonStyle_override_virtual_Polish(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__Polish = slot; } void QCommonStyle_virtualbase_Polish(void* self, QPalette* param1) { ( (MiqtVirtualQCommonStyle*)(self) )->virtualbase_Polish(param1); } void QCommonStyle_override_virtual_PolishWithApp(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__PolishWithApp = slot; } void QCommonStyle_virtualbase_PolishWithApp(void* self, QApplication* app) { ( (MiqtVirtualQCommonStyle*)(self) )->virtualbase_PolishWithApp(app); } void QCommonStyle_override_virtual_PolishWithWidget(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__PolishWithWidget = slot; } void QCommonStyle_virtualbase_PolishWithWidget(void* self, QWidget* widget) { ( (MiqtVirtualQCommonStyle*)(self) )->virtualbase_PolishWithWidget(widget); } void QCommonStyle_override_virtual_Unpolish(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__Unpolish = slot; } void QCommonStyle_virtualbase_Unpolish(void* self, QWidget* widget) { ( (MiqtVirtualQCommonStyle*)(self) )->virtualbase_Unpolish(widget); } void QCommonStyle_override_virtual_UnpolishWithApplication(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__UnpolishWithApplication = slot; } void QCommonStyle_virtualbase_UnpolishWithApplication(void* self, QApplication* application) { ( (MiqtVirtualQCommonStyle*)(self) )->virtualbase_UnpolishWithApplication(application); } void QCommonStyle_override_virtual_ItemTextRect(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__ItemTextRect = slot; } QRect* QCommonStyle_virtualbase_ItemTextRect(const void* self, QFontMetrics* fm, QRect* r, int flags, bool enabled, struct miqt_string text) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_ItemTextRect(fm, r, flags, enabled, text); } void QCommonStyle_override_virtual_ItemPixmapRect(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__ItemPixmapRect = slot; } QRect* QCommonStyle_virtualbase_ItemPixmapRect(const void* self, QRect* r, int flags, QPixmap* pixmap) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_ItemPixmapRect(r, flags, pixmap); } void QCommonStyle_override_virtual_DrawItemText(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__DrawItemText = slot; } void QCommonStyle_virtualbase_DrawItemText(const void* self, QPainter* painter, QRect* rect, int flags, QPalette* pal, bool enabled, struct miqt_string text, int textRole) { ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_DrawItemText(painter, rect, flags, pal, enabled, text, textRole); } void QCommonStyle_override_virtual_DrawItemPixmap(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__DrawItemPixmap = slot; } void QCommonStyle_virtualbase_DrawItemPixmap(const void* self, QPainter* painter, QRect* rect, int alignment, QPixmap* pixmap) { ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_DrawItemPixmap(painter, rect, alignment, pixmap); } void QCommonStyle_override_virtual_StandardPalette(void* self, intptr_t slot) { dynamic_cast( (QCommonStyle*)(self) )->handle__StandardPalette = slot; } QPalette* QCommonStyle_virtualbase_StandardPalette(const void* self) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_StandardPalette(); } void QCommonStyle_Delete(QCommonStyle* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }