2024-08-25 04:08:24 +00:00
|
|
|
#include <QRgba64>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qrgba64.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qrgba64.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
QRgba64* QRgba64_new() {
|
|
|
|
return new QRgba64();
|
|
|
|
}
|
|
|
|
|
|
|
|
QRgba64* QRgba64_new2(QRgba64* param1) {
|
|
|
|
return new QRgba64(*param1);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QRgba64* QRgba64_FromRgba64(unsigned long long c) {
|
|
|
|
QRgba64 ret = QRgba64::fromRgba64(static_cast<quint64>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QRgba64*>(new QRgba64(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QRgba64* QRgba64_FromRgba642(uint16_t red, uint16_t green, uint16_t blue, uint16_t alpha) {
|
|
|
|
QRgba64 ret = QRgba64::fromRgba64(static_cast<quint16>(red), static_cast<quint16>(green), static_cast<quint16>(blue), static_cast<quint16>(alpha));
|
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QRgba64*>(new QRgba64(ret));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QRgba64* QRgba64_FromRgba(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QRgba64 ret = QRgba64::fromRgba(static_cast<quint8>(red), static_cast<quint8>(green), static_cast<quint8>(blue), static_cast<quint8>(alpha));
|
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QRgba64*>(new QRgba64(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QRgba64* QRgba64_FromArgb32(unsigned int rgb) {
|
|
|
|
QRgba64 ret = QRgba64::fromArgb32(static_cast<uint>(rgb));
|
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QRgba64*>(new QRgba64(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QRgba64_IsOpaque(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRgba64*>(self)->isOpaque();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QRgba64_IsTransparent(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRgba64*>(self)->isTransparent();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t QRgba64_Red(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRgba64*>(self)->red();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t QRgba64_Green(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRgba64*>(self)->green();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t QRgba64_Blue(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRgba64*>(self)->blue();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t QRgba64_Alpha(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRgba64*>(self)->alpha();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QRgba64_SetRed(QRgba64* self, uint16_t _red) {
|
|
|
|
self->setRed(static_cast<quint16>(_red));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QRgba64_SetGreen(QRgba64* self, uint16_t _green) {
|
|
|
|
self->setGreen(static_cast<quint16>(_green));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QRgba64_SetBlue(QRgba64* self, uint16_t _blue) {
|
|
|
|
self->setBlue(static_cast<quint16>(_blue));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QRgba64_SetAlpha(QRgba64* self, uint16_t _alpha) {
|
|
|
|
self->setAlpha(static_cast<quint16>(_alpha));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
unsigned char QRgba64_Red8(QRgba64* self) {
|
|
|
|
return const_cast<const QRgba64*>(self)->red8();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
unsigned char QRgba64_Green8(QRgba64* self) {
|
|
|
|
return const_cast<const QRgba64*>(self)->green8();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
unsigned char QRgba64_Blue8(QRgba64* self) {
|
|
|
|
return const_cast<const QRgba64*>(self)->blue8();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
unsigned char QRgba64_Alpha8(QRgba64* self) {
|
|
|
|
return const_cast<const QRgba64*>(self)->alpha8();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QRgba64_ToArgb32(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRgba64*>(self)->toArgb32();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t QRgba64_ToRgb16(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRgba64*>(self)->toRgb16();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QRgba64* QRgba64_Premultiplied(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QRgba64 ret = const_cast<const QRgba64*>(self)->premultiplied();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QRgba64*>(new QRgba64(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QRgba64* QRgba64_Unpremultiplied(QRgba64* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QRgba64 ret = const_cast<const QRgba64*>(self)->unpremultiplied();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QRgba64*>(new QRgba64(ret));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QRgba64_OperatorAssign(QRgba64* self, unsigned long long _rgba) {
|
|
|
|
self->operator=(static_cast<quint64>(_rgba));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QRgba64_Delete(QRgba64* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|