2024-08-25 16:08:24 +12:00
|
|
|
#include <QColor>
|
|
|
|
#include <QColorTransform>
|
|
|
|
#include <QRgba64>
|
2024-08-29 19:01:51 +12:00
|
|
|
#include "qcolortransform.h"
|
|
|
|
#include "gen_qcolortransform.h"
|
2024-09-15 10:29:05 +12:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
QColorTransform* QColorTransform_new() {
|
|
|
|
return new QColorTransform();
|
|
|
|
}
|
|
|
|
|
|
|
|
QColorTransform* QColorTransform_new2(QColorTransform* colorTransform) {
|
|
|
|
return new QColorTransform(*colorTransform);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QColorTransform_OperatorAssign(QColorTransform* self, QColorTransform* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QColorTransform_Swap(QColorTransform* self, QColorTransform* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
unsigned int QColorTransform_Map(const QColorTransform* self, unsigned int argb) {
|
|
|
|
return self->map(static_cast<QRgb>(argb));
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QRgba64* QColorTransform_MapWithRgba64(const QColorTransform* self, QRgba64* rgba64) {
|
2024-09-15 10:29:05 +12:00
|
|
|
QRgba64 _ret = self->map(*rgba64);
|
2024-08-25 16:08:24 +12:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-15 10:29:05 +12:00
|
|
|
return static_cast<QRgba64*>(new QRgba64(_ret));
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QColor* QColorTransform_MapWithColor(const QColorTransform* self, QColor* color) {
|
2024-09-15 10:29:05 +12:00
|
|
|
QColor _ret = self->map(*color);
|
2024-08-25 16:08:24 +12:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-15 10:29:05 +12:00
|
|
|
return static_cast<QColor*>(new QColor(_ret));
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
void QColorTransform_Delete(QColorTransform* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|