mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
259 lines
7.8 KiB
C++
259 lines
7.8 KiB
C++
#include <QBrush>
|
|
#include <QColor>
|
|
#include <QPalette>
|
|
#include <qpalette.h>
|
|
#include "gen_qpalette.h"
|
|
#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<Qt::GlobalColor>(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<int>(_ret);
|
|
}
|
|
|
|
void QPalette_SetCurrentColorGroup(QPalette* self, int cg) {
|
|
self->setCurrentColorGroup(static_cast<QPalette::ColorGroup>(cg));
|
|
}
|
|
|
|
QColor* QPalette_Color(const QPalette* self, int cg, int cr) {
|
|
const QColor& _ret = self->color(static_cast<QPalette::ColorGroup>(cg), static_cast<QPalette::ColorRole>(cr));
|
|
// Cast returned reference into pointer
|
|
return const_cast<QColor*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Brush(const QPalette* self, int cg, int cr) {
|
|
const QBrush& _ret = self->brush(static_cast<QPalette::ColorGroup>(cg), static_cast<QPalette::ColorRole>(cr));
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
void QPalette_SetColor(QPalette* self, int cg, int cr, QColor* color) {
|
|
self->setColor(static_cast<QPalette::ColorGroup>(cg), static_cast<QPalette::ColorRole>(cr), *color);
|
|
}
|
|
|
|
void QPalette_SetColor2(QPalette* self, int cr, QColor* color) {
|
|
self->setColor(static_cast<QPalette::ColorRole>(cr), *color);
|
|
}
|
|
|
|
void QPalette_SetBrush(QPalette* self, int cr, QBrush* brush) {
|
|
self->setBrush(static_cast<QPalette::ColorRole>(cr), *brush);
|
|
}
|
|
|
|
bool QPalette_IsBrushSet(const QPalette* self, int cg, int cr) {
|
|
return self->isBrushSet(static_cast<QPalette::ColorGroup>(cg), static_cast<QPalette::ColorRole>(cr));
|
|
}
|
|
|
|
void QPalette_SetBrush2(QPalette* self, int cg, int cr, QBrush* brush) {
|
|
self->setBrush(static_cast<QPalette::ColorGroup>(cg), static_cast<QPalette::ColorRole>(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<QPalette::ColorGroup>(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<QPalette::ColorGroup>(cr1), static_cast<QPalette::ColorGroup>(cr2));
|
|
}
|
|
|
|
QColor* QPalette_ColorWithCr(const QPalette* self, int cr) {
|
|
const QColor& _ret = self->color(static_cast<QPalette::ColorRole>(cr));
|
|
// Cast returned reference into pointer
|
|
return const_cast<QColor*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_BrushWithCr(const QPalette* self, int cr) {
|
|
const QBrush& _ret = self->brush(static_cast<QPalette::ColorRole>(cr));
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_WindowText(const QPalette* self) {
|
|
const QBrush& _ret = self->windowText();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Button(const QPalette* self) {
|
|
const QBrush& _ret = self->button();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Light(const QPalette* self) {
|
|
const QBrush& _ret = self->light();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Dark(const QPalette* self) {
|
|
const QBrush& _ret = self->dark();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Mid(const QPalette* self) {
|
|
const QBrush& _ret = self->mid();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Text(const QPalette* self) {
|
|
const QBrush& _ret = self->text();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Base(const QPalette* self) {
|
|
const QBrush& _ret = self->base();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_AlternateBase(const QPalette* self) {
|
|
const QBrush& _ret = self->alternateBase();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_ToolTipBase(const QPalette* self) {
|
|
const QBrush& _ret = self->toolTipBase();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_ToolTipText(const QPalette* self) {
|
|
const QBrush& _ret = self->toolTipText();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Window(const QPalette* self) {
|
|
const QBrush& _ret = self->window();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Midlight(const QPalette* self) {
|
|
const QBrush& _ret = self->midlight();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_BrightText(const QPalette* self) {
|
|
const QBrush& _ret = self->brightText();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_ButtonText(const QPalette* self) {
|
|
const QBrush& _ret = self->buttonText();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Shadow(const QPalette* self) {
|
|
const QBrush& _ret = self->shadow();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Highlight(const QPalette* self) {
|
|
const QBrush& _ret = self->highlight();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_HighlightedText(const QPalette* self) {
|
|
const QBrush& _ret = self->highlightedText();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_Link(const QPalette* self) {
|
|
const QBrush& _ret = self->link();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_LinkVisited(const QPalette* self) {
|
|
const QBrush& _ret = self->linkVisited();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
QBrush* QPalette_PlaceholderText(const QPalette* self) {
|
|
const QBrush& _ret = self->placeholderText();
|
|
// Cast returned reference into pointer
|
|
return const_cast<QBrush*>(&_ret);
|
|
}
|
|
|
|
bool QPalette_OperatorEqual(const QPalette* self, QPalette* p) {
|
|
return self->operator==(*p);
|
|
}
|
|
|
|
bool QPalette_OperatorNotEqual(const QPalette* self, QPalette* p) {
|
|
return self->operator!=(*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<long long>(_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<unsigned long long>(_ret);
|
|
}
|
|
|
|
void QPalette_SetResolveMask(QPalette* self, unsigned long long mask) {
|
|
self->setResolveMask(static_cast<QPalette::ResolveMask>(mask));
|
|
}
|
|
|
|
void QPalette_Delete(QPalette* self) {
|
|
delete self;
|
|
}
|
|
|