#include #include #include #include #include "gen_qpalette.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" QPalette* QPalette_new() { return new QPalette(); } QPalette* QPalette_new2(QColor* button) { return new QPalette(*button); } QPalette* QPalette_new3(int button) { return new QPalette(static_cast(button)); } QPalette* QPalette_new4(QColor* button, QColor* window) { return new QPalette(*button, *window); } QPalette* QPalette_new5(QBrush* windowText, QBrush* button, QBrush* light, QBrush* dark, QBrush* mid, QBrush* text, QBrush* bright_text, QBrush* base, QBrush* window) { return new QPalette(*windowText, *button, *light, *dark, *mid, *text, *bright_text, *base, *window); } QPalette* QPalette_new6(QColor* windowText, QColor* window, QColor* light, QColor* dark, QColor* mid, QColor* text, QColor* base) { return new QPalette(*windowText, *window, *light, *dark, *mid, *text, *base); } QPalette* QPalette_new7(QPalette* palette) { return new QPalette(*palette); } void QPalette_OperatorAssign(QPalette* self, QPalette* palette) { self->operator=(*palette); } void QPalette_Swap(QPalette* self, QPalette* other) { self->swap(*other); } int QPalette_CurrentColorGroup(const QPalette* self) { QPalette::ColorGroup _ret = self->currentColorGroup(); return static_cast(_ret); } void QPalette_SetCurrentColorGroup(QPalette* self, int cg) { self->setCurrentColorGroup(static_cast(cg)); } QColor* QPalette_Color(const QPalette* self, int cg, int cr) { const QColor& _ret = self->color(static_cast(cg), static_cast(cr)); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Brush(const QPalette* self, int cg, int cr) { const QBrush& _ret = self->brush(static_cast(cg), static_cast(cr)); // Cast returned reference into pointer return const_cast(&_ret); } void QPalette_SetColor(QPalette* self, int cg, int cr, QColor* color) { self->setColor(static_cast(cg), static_cast(cr), *color); } void QPalette_SetColor2(QPalette* self, int cr, QColor* color) { self->setColor(static_cast(cr), *color); } void QPalette_SetBrush(QPalette* self, int cr, QBrush* brush) { self->setBrush(static_cast(cr), *brush); } bool QPalette_IsBrushSet(const QPalette* self, int cg, int cr) { return self->isBrushSet(static_cast(cg), static_cast(cr)); } void QPalette_SetBrush2(QPalette* self, int cg, int cr, QBrush* brush) { self->setBrush(static_cast(cg), static_cast(cr), *brush); } void QPalette_SetColorGroup(QPalette* self, int cr, QBrush* windowText, QBrush* button, QBrush* light, QBrush* dark, QBrush* mid, QBrush* text, QBrush* bright_text, QBrush* base, QBrush* window) { self->setColorGroup(static_cast(cr), *windowText, *button, *light, *dark, *mid, *text, *bright_text, *base, *window); } bool QPalette_IsEqual(const QPalette* self, int cr1, int cr2) { return self->isEqual(static_cast(cr1), static_cast(cr2)); } QColor* QPalette_ColorWithCr(const QPalette* self, int cr) { const QColor& _ret = self->color(static_cast(cr)); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_BrushWithCr(const QPalette* self, int cr) { const QBrush& _ret = self->brush(static_cast(cr)); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_WindowText(const QPalette* self) { const QBrush& _ret = self->windowText(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Button(const QPalette* self) { const QBrush& _ret = self->button(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Light(const QPalette* self) { const QBrush& _ret = self->light(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Dark(const QPalette* self) { const QBrush& _ret = self->dark(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Mid(const QPalette* self) { const QBrush& _ret = self->mid(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Text(const QPalette* self) { const QBrush& _ret = self->text(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Base(const QPalette* self) { const QBrush& _ret = self->base(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_AlternateBase(const QPalette* self) { const QBrush& _ret = self->alternateBase(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_ToolTipBase(const QPalette* self) { const QBrush& _ret = self->toolTipBase(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_ToolTipText(const QPalette* self) { const QBrush& _ret = self->toolTipText(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Window(const QPalette* self) { const QBrush& _ret = self->window(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Midlight(const QPalette* self) { const QBrush& _ret = self->midlight(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_BrightText(const QPalette* self) { const QBrush& _ret = self->brightText(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_ButtonText(const QPalette* self) { const QBrush& _ret = self->buttonText(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Shadow(const QPalette* self) { const QBrush& _ret = self->shadow(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Highlight(const QPalette* self) { const QBrush& _ret = self->highlight(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_HighlightedText(const QPalette* self) { const QBrush& _ret = self->highlightedText(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_Link(const QPalette* self) { const QBrush& _ret = self->link(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_LinkVisited(const QPalette* self) { const QBrush& _ret = self->linkVisited(); // Cast returned reference into pointer return const_cast(&_ret); } QBrush* QPalette_PlaceholderText(const QPalette* self) { const QBrush& _ret = self->placeholderText(); // Cast returned reference into pointer return const_cast(&_ret); } bool QPalette_OperatorEqual(const QPalette* self, QPalette* p) { return (*self == *p); } bool QPalette_OperatorNotEqual(const QPalette* self, QPalette* p) { return (*self != *p); } bool QPalette_IsCopyOf(const QPalette* self, QPalette* p) { return self->isCopyOf(*p); } long long QPalette_CacheKey(const QPalette* self) { qint64 _ret = self->cacheKey(); return static_cast(_ret); } QPalette* QPalette_Resolve(const QPalette* self, QPalette* other) { return new QPalette(self->resolve(*other)); } unsigned long long QPalette_ResolveMask(const QPalette* self) { QPalette::ResolveMask _ret = self->resolveMask(); return static_cast(_ret); } void QPalette_SetResolveMask(QPalette* self, unsigned long long mask) { self->setResolveMask(static_cast(mask)); } void QPalette_Delete(QPalette* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }