2024-08-25 04:08:24 +00:00
|
|
|
#include <QPixelFormat>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qpixelformat.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qpixelformat.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
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));
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QPixelFormat_ColorModel(QPixelFormat* self) {
|
|
|
|
QPixelFormat::ColorModel ret = const_cast<const QPixelFormat*>(self)->colorModel();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
unsigned char QPixelFormat_ChannelCount(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->channelCount();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_RedSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->redSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_GreenSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->greenSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_BlueSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->blueSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_CyanSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->cyanSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_MagentaSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->magentaSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_YellowSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->yellowSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_BlackSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->blackSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_HueSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->hueSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_SaturationSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->saturationSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_LightnessSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->lightnessSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_BrightnessSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->brightnessSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_AlphaSize(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->alphaSize();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_BitsPerPixel(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->bitsPerPixel();
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QPixelFormat_AlphaUsage(QPixelFormat* self) {
|
|
|
|
QPixelFormat::AlphaUsage ret = const_cast<const QPixelFormat*>(self)->alphaUsage();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QPixelFormat_AlphaPosition(QPixelFormat* self) {
|
|
|
|
QPixelFormat::AlphaPosition ret = const_cast<const QPixelFormat*>(self)->alphaPosition();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QPixelFormat_Premultiplied(QPixelFormat* self) {
|
|
|
|
QPixelFormat::AlphaPremultiplied ret = const_cast<const QPixelFormat*>(self)->premultiplied();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QPixelFormat_TypeInterpretation(QPixelFormat* self) {
|
|
|
|
QPixelFormat::TypeInterpretation ret = const_cast<const QPixelFormat*>(self)->typeInterpretation();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QPixelFormat_ByteOrder(QPixelFormat* self) {
|
|
|
|
QPixelFormat::ByteOrder ret = const_cast<const QPixelFormat*>(self)->byteOrder();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QPixelFormat_YuvLayout(QPixelFormat* self) {
|
|
|
|
QPixelFormat::YUVLayout ret = const_cast<const QPixelFormat*>(self)->yuvLayout();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char QPixelFormat_SubEnum(QPixelFormat* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPixelFormat*>(self)->subEnum();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QPixelFormat_Delete(QPixelFormat* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|