miqt/qt6/gen_qrgba64.cpp

132 lines
3.3 KiB
C++
Raw Normal View History

2024-10-20 18:21:03 +13:00
#include <QRgba64>
#include <qrgba64.h>
#include "gen_qrgba64.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
2024-10-20 18:21:03 +13:00
2024-12-07 17:15:57 +13:00
QRgba64* QRgba64_new() {
return new QRgba64();
2024-10-20 18:21:03 +13:00
}
2024-12-07 17:15:57 +13:00
QRgba64* QRgba64_new2(QRgba64* param1) {
return new QRgba64(*param1);
2024-10-20 18:21:03 +13:00
}
2025-02-01 13:45:16 +13:00
QRgba64* QRgba64_fromRgba64(unsigned long long c) {
2024-10-20 18:21:03 +13:00
return new QRgba64(QRgba64::fromRgba64(static_cast<quint64>(c)));
}
2025-02-01 13:45:16 +13:00
QRgba64* QRgba64_fromRgba642(uint16_t red, uint16_t green, uint16_t blue, uint16_t alpha) {
2024-10-20 18:21:03 +13:00
return new QRgba64(QRgba64::fromRgba64(static_cast<quint16>(red), static_cast<quint16>(green), static_cast<quint16>(blue), static_cast<quint16>(alpha)));
}
2025-02-01 13:45:16 +13:00
QRgba64* QRgba64_fromRgba(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) {
2024-10-20 18:21:03 +13:00
return new QRgba64(QRgba64::fromRgba(static_cast<quint8>(red), static_cast<quint8>(green), static_cast<quint8>(blue), static_cast<quint8>(alpha)));
}
2025-02-01 13:45:16 +13:00
QRgba64* QRgba64_fromArgb32(unsigned int rgb) {
2024-10-20 18:21:03 +13:00
return new QRgba64(QRgba64::fromArgb32(static_cast<uint>(rgb)));
}
2025-02-01 13:45:16 +13:00
bool QRgba64_isOpaque(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
return self->isOpaque();
}
2025-02-01 13:45:16 +13:00
bool QRgba64_isTransparent(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
return self->isTransparent();
}
2025-02-01 13:45:16 +13:00
uint16_t QRgba64_red(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
quint16 _ret = self->red();
return static_cast<uint16_t>(_ret);
}
2025-02-01 13:45:16 +13:00
uint16_t QRgba64_green(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
quint16 _ret = self->green();
return static_cast<uint16_t>(_ret);
}
2025-02-01 13:45:16 +13:00
uint16_t QRgba64_blue(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
quint16 _ret = self->blue();
return static_cast<uint16_t>(_ret);
}
2025-02-01 13:45:16 +13:00
uint16_t QRgba64_alpha(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
quint16 _ret = self->alpha();
return static_cast<uint16_t>(_ret);
}
2025-02-01 13:45:16 +13:00
void QRgba64_setRed(QRgba64* self, uint16_t _red) {
2024-10-20 18:21:03 +13:00
self->setRed(static_cast<quint16>(_red));
}
2025-02-01 13:45:16 +13:00
void QRgba64_setGreen(QRgba64* self, uint16_t _green) {
2024-10-20 18:21:03 +13:00
self->setGreen(static_cast<quint16>(_green));
}
2025-02-01 13:45:16 +13:00
void QRgba64_setBlue(QRgba64* self, uint16_t _blue) {
2024-10-20 18:21:03 +13:00
self->setBlue(static_cast<quint16>(_blue));
}
2025-02-01 13:45:16 +13:00
void QRgba64_setAlpha(QRgba64* self, uint16_t _alpha) {
2024-10-20 18:21:03 +13:00
self->setAlpha(static_cast<quint16>(_alpha));
}
2025-02-01 13:45:16 +13:00
unsigned char QRgba64_red8(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
quint8 _ret = self->red8();
return static_cast<unsigned char>(_ret);
}
2025-02-01 13:45:16 +13:00
unsigned char QRgba64_green8(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
quint8 _ret = self->green8();
return static_cast<unsigned char>(_ret);
}
2025-02-01 13:45:16 +13:00
unsigned char QRgba64_blue8(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
quint8 _ret = self->blue8();
return static_cast<unsigned char>(_ret);
}
2025-02-01 13:45:16 +13:00
unsigned char QRgba64_alpha8(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
quint8 _ret = self->alpha8();
return static_cast<unsigned char>(_ret);
}
2025-02-01 13:45:16 +13:00
unsigned int QRgba64_toArgb32(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
uint _ret = self->toArgb32();
return static_cast<unsigned int>(_ret);
}
2025-02-01 13:45:16 +13:00
uint16_t QRgba64_toRgb16(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
ushort _ret = self->toRgb16();
return static_cast<uint16_t>(_ret);
}
2025-02-01 13:45:16 +13:00
QRgba64* QRgba64_premultiplied(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
return new QRgba64(self->premultiplied());
}
2025-02-01 13:45:16 +13:00
QRgba64* QRgba64_unpremultiplied(const QRgba64* self) {
2024-10-20 18:21:03 +13:00
return new QRgba64(self->unpremultiplied());
}
2025-01-04 12:19:04 +13:00
unsigned long long QRgba64_ToUnsignedLongLong(const QRgba64* self) {
quint64 _ret = self->operator unsigned long long();
return static_cast<unsigned long long>(_ret);
}
2025-02-01 13:45:16 +13:00
void QRgba64_operatorAssign(QRgba64* self, unsigned long long _rgba) {
2024-10-20 18:21:03 +13:00
self->operator=(static_cast<quint64>(_rgba));
}
2025-02-01 13:45:16 +13:00
void QRgba64_delete(QRgba64* self) {
delete self;
2024-10-20 18:21:03 +13:00
}