#include #include #include #include #include "gen_qcolortransform.h" #include "_cgo_export.h" void QColorTransform_new(QColorTransform** outptr_QColorTransform) { QColorTransform* ret = new QColorTransform(); *outptr_QColorTransform = ret; } void QColorTransform_new2(QColorTransform* colorTransform, QColorTransform** outptr_QColorTransform) { QColorTransform* ret = new QColorTransform(*colorTransform); *outptr_QColorTransform = ret; } void QColorTransform_OperatorAssign(QColorTransform* self, QColorTransform* other) { self->operator=(*other); } void QColorTransform_Swap(QColorTransform* self, QColorTransform* other) { self->swap(*other); } unsigned int QColorTransform_Map(const QColorTransform* self, unsigned int argb) { QRgb _ret = self->map(static_cast(argb)); return static_cast(_ret); } QRgba64* QColorTransform_MapWithRgba64(const QColorTransform* self, QRgba64* rgba64) { return new QRgba64(self->map(*rgba64)); } QColor* QColorTransform_MapWithColor(const QColorTransform* self, QColor* color) { return new QColor(self->map(*color)); } void QColorTransform_Delete(QColorTransform* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }