2024-08-25 04:08:24 +00:00
|
|
|
#include <QColor>
|
|
|
|
#include <QColorTransform>
|
|
|
|
#include <QRgba64>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qcolortransform.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qcolortransform.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QColorTransform* QColorTransform_new() {
|
|
|
|
return new QColorTransform();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QColorTransform* QColorTransform_new2(QColorTransform* colorTransform) {
|
|
|
|
return new QColorTransform(*colorTransform);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QColorTransform_OperatorAssign(QColorTransform* self, QColorTransform* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QColorTransform_Swap(QColorTransform* self, QColorTransform* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QColorTransform_Map(const QColorTransform* self, unsigned int argb) {
|
2024-09-18 00:12:02 +00:00
|
|
|
QRgb _ret = self->map(static_cast<QRgb>(argb));
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRgba64* QColorTransform_MapWithRgba64(const QColorTransform* self, QRgba64* rgba64) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRgba64(self->map(*rgba64));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QColor* QColorTransform_MapWithColor(const QColorTransform* self, QColor* color) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QColor(self->map(*color));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QColorTransform_Delete(QColorTransform* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QColorTransform*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|