2024-08-25 04:08:24 +00:00
|
|
|
#include <QPixelFormat>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qpixelformat.h"
|
|
|
|
#include "gen_qpixelformat.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QPixelFormat* QPixelFormat_new() {
|
|
|
|
return new QPixelFormat();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QPixelFormat* QPixelFormat_new2(uintptr_t colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, uintptr_t alphaUsage, uintptr_t alphaPosition, uintptr_t premultiplied, uintptr_t typeInterpretation) {
|
|
|
|
return new QPixelFormat(static_cast<QPixelFormat::ColorModel>(colorModel), static_cast<uchar>(firstSize), static_cast<uchar>(secondSize), static_cast<uchar>(thirdSize), static_cast<uchar>(fourthSize), static_cast<uchar>(fifthSize), static_cast<uchar>(alphaSize), static_cast<QPixelFormat::AlphaUsage>(alphaUsage), static_cast<QPixelFormat::AlphaPosition>(alphaPosition), static_cast<QPixelFormat::AlphaPremultiplied>(premultiplied), static_cast<QPixelFormat::TypeInterpretation>(typeInterpretation));
|
|
|
|
}
|
|
|
|
|
|
|
|
QPixelFormat* QPixelFormat_new3(QPixelFormat* param1) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QPixelFormat(*param1);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QPixelFormat* QPixelFormat_new4(uintptr_t colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, uintptr_t alphaUsage, uintptr_t alphaPosition, uintptr_t premultiplied, uintptr_t typeInterpretation, uintptr_t byteOrder) {
|
|
|
|
return new QPixelFormat(static_cast<QPixelFormat::ColorModel>(colorModel), static_cast<uchar>(firstSize), static_cast<uchar>(secondSize), static_cast<uchar>(thirdSize), static_cast<uchar>(fourthSize), static_cast<uchar>(fifthSize), static_cast<uchar>(alphaSize), static_cast<QPixelFormat::AlphaUsage>(alphaUsage), static_cast<QPixelFormat::AlphaPosition>(alphaPosition), static_cast<QPixelFormat::AlphaPremultiplied>(premultiplied), static_cast<QPixelFormat::TypeInterpretation>(typeInterpretation), static_cast<QPixelFormat::ByteOrder>(byteOrder));
|
|
|
|
}
|
|
|
|
|
|
|
|
QPixelFormat* QPixelFormat_new5(uintptr_t colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, uintptr_t alphaUsage, uintptr_t alphaPosition, uintptr_t premultiplied, uintptr_t typeInterpretation, uintptr_t byteOrder, unsigned char subEnum) {
|
|
|
|
return new QPixelFormat(static_cast<QPixelFormat::ColorModel>(colorModel), static_cast<uchar>(firstSize), static_cast<uchar>(secondSize), static_cast<uchar>(thirdSize), static_cast<uchar>(fourthSize), static_cast<uchar>(fifthSize), static_cast<uchar>(alphaSize), static_cast<QPixelFormat::AlphaUsage>(alphaUsage), static_cast<QPixelFormat::AlphaPosition>(alphaPosition), static_cast<QPixelFormat::AlphaPremultiplied>(premultiplied), static_cast<QPixelFormat::TypeInterpretation>(typeInterpretation), static_cast<QPixelFormat::ByteOrder>(byteOrder), static_cast<uchar>(subEnum));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPixelFormat_ColorModel(const QPixelFormat* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixelFormat::ColorModel _ret = self->colorModel();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_ChannelCount(const QPixelFormat* self) {
|
|
|
|
return self->channelCount();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_RedSize(const QPixelFormat* self) {
|
|
|
|
return self->redSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_GreenSize(const QPixelFormat* self) {
|
|
|
|
return self->greenSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_BlueSize(const QPixelFormat* self) {
|
|
|
|
return self->blueSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_CyanSize(const QPixelFormat* self) {
|
|
|
|
return self->cyanSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_MagentaSize(const QPixelFormat* self) {
|
|
|
|
return self->magentaSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_YellowSize(const QPixelFormat* self) {
|
|
|
|
return self->yellowSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_BlackSize(const QPixelFormat* self) {
|
|
|
|
return self->blackSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_HueSize(const QPixelFormat* self) {
|
|
|
|
return self->hueSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_SaturationSize(const QPixelFormat* self) {
|
|
|
|
return self->saturationSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_LightnessSize(const QPixelFormat* self) {
|
|
|
|
return self->lightnessSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_BrightnessSize(const QPixelFormat* self) {
|
|
|
|
return self->brightnessSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_AlphaSize(const QPixelFormat* self) {
|
|
|
|
return self->alphaSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_BitsPerPixel(const QPixelFormat* self) {
|
|
|
|
return self->bitsPerPixel();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPixelFormat_AlphaUsage(const QPixelFormat* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixelFormat::AlphaUsage _ret = self->alphaUsage();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPixelFormat_AlphaPosition(const QPixelFormat* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixelFormat::AlphaPosition _ret = self->alphaPosition();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPixelFormat_Premultiplied(const QPixelFormat* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixelFormat::AlphaPremultiplied _ret = self->premultiplied();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPixelFormat_TypeInterpretation(const QPixelFormat* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixelFormat::TypeInterpretation _ret = self->typeInterpretation();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPixelFormat_ByteOrder(const QPixelFormat* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixelFormat::ByteOrder _ret = self->byteOrder();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPixelFormat_YuvLayout(const QPixelFormat* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixelFormat::YUVLayout _ret = self->yuvLayout();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QPixelFormat_SubEnum(const QPixelFormat* self) {
|
|
|
|
return self->subEnum();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QPixelFormat_Delete(QPixelFormat* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|