miqt/qt6/gen_qpixelformat.cpp

144 lines
6.0 KiB
C++
Raw Normal View History

2024-10-20 05:21:03 +00:00
#include <QPixelFormat>
#include <qpixelformat.h>
#include "gen_qpixelformat.h"
#include "_cgo_export.h"
2024-12-07 04:15:57 +00:00
QPixelFormat* QPixelFormat_new() {
return new QPixelFormat();
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
QPixelFormat* QPixelFormat_new2(int colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, int alphaUsage, int alphaPosition, int premultiplied, int 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));
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
QPixelFormat* QPixelFormat_new3(QPixelFormat* param1) {
return new QPixelFormat(*param1);
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
QPixelFormat* QPixelFormat_new4(int colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, int alphaUsage, int alphaPosition, int premultiplied, int typeInterpretation, int 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));
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
QPixelFormat* QPixelFormat_new5(int colorModel, unsigned char firstSize, unsigned char secondSize, unsigned char thirdSize, unsigned char fourthSize, unsigned char fifthSize, unsigned char alphaSize, int alphaUsage, int alphaPosition, int premultiplied, int typeInterpretation, int 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-10-20 05:21:03 +00:00
}
int QPixelFormat_ColorModel(const QPixelFormat* self) {
QPixelFormat::ColorModel _ret = self->colorModel();
return static_cast<int>(_ret);
}
unsigned char QPixelFormat_ChannelCount(const QPixelFormat* self) {
uchar _ret = self->channelCount();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_RedSize(const QPixelFormat* self) {
uchar _ret = self->redSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_GreenSize(const QPixelFormat* self) {
uchar _ret = self->greenSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_BlueSize(const QPixelFormat* self) {
uchar _ret = self->blueSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_CyanSize(const QPixelFormat* self) {
uchar _ret = self->cyanSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_MagentaSize(const QPixelFormat* self) {
uchar _ret = self->magentaSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_YellowSize(const QPixelFormat* self) {
uchar _ret = self->yellowSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_BlackSize(const QPixelFormat* self) {
uchar _ret = self->blackSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_HueSize(const QPixelFormat* self) {
uchar _ret = self->hueSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_SaturationSize(const QPixelFormat* self) {
uchar _ret = self->saturationSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_LightnessSize(const QPixelFormat* self) {
uchar _ret = self->lightnessSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_BrightnessSize(const QPixelFormat* self) {
uchar _ret = self->brightnessSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_AlphaSize(const QPixelFormat* self) {
uchar _ret = self->alphaSize();
return static_cast<unsigned char>(_ret);
}
unsigned char QPixelFormat_BitsPerPixel(const QPixelFormat* self) {
uchar _ret = self->bitsPerPixel();
return static_cast<unsigned char>(_ret);
}
int QPixelFormat_AlphaUsage(const QPixelFormat* self) {
QPixelFormat::AlphaUsage _ret = self->alphaUsage();
return static_cast<int>(_ret);
}
int QPixelFormat_AlphaPosition(const QPixelFormat* self) {
QPixelFormat::AlphaPosition _ret = self->alphaPosition();
return static_cast<int>(_ret);
}
int QPixelFormat_Premultiplied(const QPixelFormat* self) {
QPixelFormat::AlphaPremultiplied _ret = self->premultiplied();
return static_cast<int>(_ret);
}
int QPixelFormat_TypeInterpretation(const QPixelFormat* self) {
QPixelFormat::TypeInterpretation _ret = self->typeInterpretation();
return static_cast<int>(_ret);
}
int QPixelFormat_ByteOrder(const QPixelFormat* self) {
QPixelFormat::ByteOrder _ret = self->byteOrder();
return static_cast<int>(_ret);
}
int QPixelFormat_YuvLayout(const QPixelFormat* self) {
QPixelFormat::YUVLayout _ret = self->yuvLayout();
return static_cast<int>(_ret);
}
unsigned char QPixelFormat_SubEnum(const QPixelFormat* self) {
uchar _ret = self->subEnum();
return static_cast<unsigned char>(_ret);
}
2024-11-19 06:29:06 +00:00
void QPixelFormat_Delete(QPixelFormat* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QPixelFormat*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}