mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
575 lines
22 KiB
C++
575 lines
22 KiB
C++
#include <QBrush>
|
|
#include <QColor>
|
|
#include <QGraphicsBlurEffect>
|
|
#include <QGraphicsColorizeEffect>
|
|
#include <QGraphicsDropShadowEffect>
|
|
#include <QGraphicsEffect>
|
|
#include <QGraphicsOpacityEffect>
|
|
#include <QMetaObject>
|
|
#include <QObject>
|
|
#include <QPointF>
|
|
#include <QRectF>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include "qgraphicseffect.h"
|
|
#include "gen_qgraphicseffect.h"
|
|
#include "_cgo_export.h"
|
|
|
|
QMetaObject* QGraphicsEffect_MetaObject(const QGraphicsEffect* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGraphicsEffect_Metacast(QGraphicsEffect* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string* QGraphicsEffect_Tr(const char* s) {
|
|
QString _ret = QGraphicsEffect::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsEffect_TrUtf8(const char* s) {
|
|
QString _ret = QGraphicsEffect::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
QRectF* QGraphicsEffect_BoundingRectFor(const QGraphicsEffect* self, QRectF* sourceRect) {
|
|
return new QRectF(self->boundingRectFor(*sourceRect));
|
|
}
|
|
|
|
QRectF* QGraphicsEffect_BoundingRect(const QGraphicsEffect* self) {
|
|
return new QRectF(self->boundingRect());
|
|
}
|
|
|
|
bool QGraphicsEffect_IsEnabled(const QGraphicsEffect* self) {
|
|
return self->isEnabled();
|
|
}
|
|
|
|
void QGraphicsEffect_SetEnabled(QGraphicsEffect* self, bool enable) {
|
|
self->setEnabled(enable);
|
|
}
|
|
|
|
void QGraphicsEffect_Update(QGraphicsEffect* self) {
|
|
self->update();
|
|
}
|
|
|
|
void QGraphicsEffect_EnabledChanged(QGraphicsEffect* self, bool enabled) {
|
|
self->enabledChanged(enabled);
|
|
}
|
|
|
|
void QGraphicsEffect_connect_EnabledChanged(QGraphicsEffect* self, void* slot) {
|
|
QGraphicsEffect::connect(self, static_cast<void (QGraphicsEffect::*)(bool)>(&QGraphicsEffect::enabledChanged), self, [=](bool enabled) {
|
|
bool sigval1 = enabled;
|
|
miqt_exec_callback_QGraphicsEffect_EnabledChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
struct miqt_string* QGraphicsEffect_Tr2(const char* s, const char* c) {
|
|
QString _ret = QGraphicsEffect::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsEffect_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsEffect::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsEffect_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QGraphicsEffect::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsEffect::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
void QGraphicsEffect_Delete(QGraphicsEffect* self) {
|
|
delete self;
|
|
}
|
|
|
|
QGraphicsColorizeEffect* QGraphicsColorizeEffect_new() {
|
|
return new QGraphicsColorizeEffect();
|
|
}
|
|
|
|
QGraphicsColorizeEffect* QGraphicsColorizeEffect_new2(QObject* parent) {
|
|
return new QGraphicsColorizeEffect(parent);
|
|
}
|
|
|
|
QMetaObject* QGraphicsColorizeEffect_MetaObject(const QGraphicsColorizeEffect* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGraphicsColorizeEffect_Metacast(QGraphicsColorizeEffect* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string* QGraphicsColorizeEffect_Tr(const char* s) {
|
|
QString _ret = QGraphicsColorizeEffect::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsColorizeEffect_TrUtf8(const char* s) {
|
|
QString _ret = QGraphicsColorizeEffect::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
QColor* QGraphicsColorizeEffect_Color(const QGraphicsColorizeEffect* self) {
|
|
return new QColor(self->color());
|
|
}
|
|
|
|
double QGraphicsColorizeEffect_Strength(const QGraphicsColorizeEffect* self) {
|
|
qreal _ret = self->strength();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QGraphicsColorizeEffect_SetColor(QGraphicsColorizeEffect* self, QColor* c) {
|
|
self->setColor(*c);
|
|
}
|
|
|
|
void QGraphicsColorizeEffect_SetStrength(QGraphicsColorizeEffect* self, double strength) {
|
|
self->setStrength(static_cast<qreal>(strength));
|
|
}
|
|
|
|
void QGraphicsColorizeEffect_ColorChanged(QGraphicsColorizeEffect* self, QColor* color) {
|
|
self->colorChanged(*color);
|
|
}
|
|
|
|
void QGraphicsColorizeEffect_connect_ColorChanged(QGraphicsColorizeEffect* self, void* slot) {
|
|
QGraphicsColorizeEffect::connect(self, static_cast<void (QGraphicsColorizeEffect::*)(const QColor&)>(&QGraphicsColorizeEffect::colorChanged), self, [=](const QColor& color) {
|
|
const QColor& color_ret = color;
|
|
// Cast returned reference into pointer
|
|
QColor* sigval1 = const_cast<QColor*>(&color_ret);
|
|
miqt_exec_callback_QGraphicsColorizeEffect_ColorChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
void QGraphicsColorizeEffect_StrengthChanged(QGraphicsColorizeEffect* self, double strength) {
|
|
self->strengthChanged(static_cast<qreal>(strength));
|
|
}
|
|
|
|
void QGraphicsColorizeEffect_connect_StrengthChanged(QGraphicsColorizeEffect* self, void* slot) {
|
|
QGraphicsColorizeEffect::connect(self, static_cast<void (QGraphicsColorizeEffect::*)(qreal)>(&QGraphicsColorizeEffect::strengthChanged), self, [=](qreal strength) {
|
|
qreal strength_ret = strength;
|
|
double sigval1 = static_cast<double>(strength_ret);
|
|
miqt_exec_callback_QGraphicsColorizeEffect_StrengthChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
struct miqt_string* QGraphicsColorizeEffect_Tr2(const char* s, const char* c) {
|
|
QString _ret = QGraphicsColorizeEffect::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsColorizeEffect_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsColorizeEffect::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsColorizeEffect_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QGraphicsColorizeEffect::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsColorizeEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsColorizeEffect::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self) {
|
|
delete self;
|
|
}
|
|
|
|
QGraphicsBlurEffect* QGraphicsBlurEffect_new() {
|
|
return new QGraphicsBlurEffect();
|
|
}
|
|
|
|
QGraphicsBlurEffect* QGraphicsBlurEffect_new2(QObject* parent) {
|
|
return new QGraphicsBlurEffect(parent);
|
|
}
|
|
|
|
QMetaObject* QGraphicsBlurEffect_MetaObject(const QGraphicsBlurEffect* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGraphicsBlurEffect_Metacast(QGraphicsBlurEffect* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string* QGraphicsBlurEffect_Tr(const char* s) {
|
|
QString _ret = QGraphicsBlurEffect::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsBlurEffect_TrUtf8(const char* s) {
|
|
QString _ret = QGraphicsBlurEffect::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
QRectF* QGraphicsBlurEffect_BoundingRectFor(const QGraphicsBlurEffect* self, QRectF* rect) {
|
|
return new QRectF(self->boundingRectFor(*rect));
|
|
}
|
|
|
|
double QGraphicsBlurEffect_BlurRadius(const QGraphicsBlurEffect* self) {
|
|
qreal _ret = self->blurRadius();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
int QGraphicsBlurEffect_BlurHints(const QGraphicsBlurEffect* self) {
|
|
QGraphicsBlurEffect::BlurHints _ret = self->blurHints();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QGraphicsBlurEffect_SetBlurRadius(QGraphicsBlurEffect* self, double blurRadius) {
|
|
self->setBlurRadius(static_cast<qreal>(blurRadius));
|
|
}
|
|
|
|
void QGraphicsBlurEffect_SetBlurHints(QGraphicsBlurEffect* self, int hints) {
|
|
self->setBlurHints(static_cast<QGraphicsBlurEffect::BlurHints>(hints));
|
|
}
|
|
|
|
void QGraphicsBlurEffect_BlurRadiusChanged(QGraphicsBlurEffect* self, double blurRadius) {
|
|
self->blurRadiusChanged(static_cast<qreal>(blurRadius));
|
|
}
|
|
|
|
void QGraphicsBlurEffect_connect_BlurRadiusChanged(QGraphicsBlurEffect* self, void* slot) {
|
|
QGraphicsBlurEffect::connect(self, static_cast<void (QGraphicsBlurEffect::*)(qreal)>(&QGraphicsBlurEffect::blurRadiusChanged), self, [=](qreal blurRadius) {
|
|
qreal blurRadius_ret = blurRadius;
|
|
double sigval1 = static_cast<double>(blurRadius_ret);
|
|
miqt_exec_callback_QGraphicsBlurEffect_BlurRadiusChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
void QGraphicsBlurEffect_BlurHintsChanged(QGraphicsBlurEffect* self, int hints) {
|
|
self->blurHintsChanged(static_cast<QGraphicsBlurEffect::BlurHints>(hints));
|
|
}
|
|
|
|
void QGraphicsBlurEffect_connect_BlurHintsChanged(QGraphicsBlurEffect* self, void* slot) {
|
|
QGraphicsBlurEffect::connect(self, static_cast<void (QGraphicsBlurEffect::*)(QGraphicsBlurEffect::BlurHints)>(&QGraphicsBlurEffect::blurHintsChanged), self, [=](QGraphicsBlurEffect::BlurHints hints) {
|
|
QGraphicsBlurEffect::BlurHints hints_ret = hints;
|
|
int sigval1 = static_cast<int>(hints_ret);
|
|
miqt_exec_callback_QGraphicsBlurEffect_BlurHintsChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
struct miqt_string* QGraphicsBlurEffect_Tr2(const char* s, const char* c) {
|
|
QString _ret = QGraphicsBlurEffect::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsBlurEffect_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsBlurEffect::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsBlurEffect_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QGraphicsBlurEffect::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsBlurEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsBlurEffect::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self) {
|
|
delete self;
|
|
}
|
|
|
|
QGraphicsDropShadowEffect* QGraphicsDropShadowEffect_new() {
|
|
return new QGraphicsDropShadowEffect();
|
|
}
|
|
|
|
QGraphicsDropShadowEffect* QGraphicsDropShadowEffect_new2(QObject* parent) {
|
|
return new QGraphicsDropShadowEffect(parent);
|
|
}
|
|
|
|
QMetaObject* QGraphicsDropShadowEffect_MetaObject(const QGraphicsDropShadowEffect* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGraphicsDropShadowEffect_Metacast(QGraphicsDropShadowEffect* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_Tr(const char* s) {
|
|
QString _ret = QGraphicsDropShadowEffect::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_TrUtf8(const char* s) {
|
|
QString _ret = QGraphicsDropShadowEffect::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
QRectF* QGraphicsDropShadowEffect_BoundingRectFor(const QGraphicsDropShadowEffect* self, QRectF* rect) {
|
|
return new QRectF(self->boundingRectFor(*rect));
|
|
}
|
|
|
|
QPointF* QGraphicsDropShadowEffect_Offset(const QGraphicsDropShadowEffect* self) {
|
|
return new QPointF(self->offset());
|
|
}
|
|
|
|
double QGraphicsDropShadowEffect_XOffset(const QGraphicsDropShadowEffect* self) {
|
|
qreal _ret = self->xOffset();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
double QGraphicsDropShadowEffect_YOffset(const QGraphicsDropShadowEffect* self) {
|
|
qreal _ret = self->yOffset();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
double QGraphicsDropShadowEffect_BlurRadius(const QGraphicsDropShadowEffect* self) {
|
|
qreal _ret = self->blurRadius();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
QColor* QGraphicsDropShadowEffect_Color(const QGraphicsDropShadowEffect* self) {
|
|
return new QColor(self->color());
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_SetOffset(QGraphicsDropShadowEffect* self, QPointF* ofs) {
|
|
self->setOffset(*ofs);
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_SetOffset2(QGraphicsDropShadowEffect* self, double dx, double dy) {
|
|
self->setOffset(static_cast<qreal>(dx), static_cast<qreal>(dy));
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_SetOffsetWithQreal(QGraphicsDropShadowEffect* self, double d) {
|
|
self->setOffset(static_cast<qreal>(d));
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_SetXOffset(QGraphicsDropShadowEffect* self, double dx) {
|
|
self->setXOffset(static_cast<qreal>(dx));
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_SetYOffset(QGraphicsDropShadowEffect* self, double dy) {
|
|
self->setYOffset(static_cast<qreal>(dy));
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_SetBlurRadius(QGraphicsDropShadowEffect* self, double blurRadius) {
|
|
self->setBlurRadius(static_cast<qreal>(blurRadius));
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_SetColor(QGraphicsDropShadowEffect* self, QColor* color) {
|
|
self->setColor(*color);
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_OffsetChanged(QGraphicsDropShadowEffect* self, QPointF* offset) {
|
|
self->offsetChanged(*offset);
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_connect_OffsetChanged(QGraphicsDropShadowEffect* self, void* slot) {
|
|
QGraphicsDropShadowEffect::connect(self, static_cast<void (QGraphicsDropShadowEffect::*)(const QPointF&)>(&QGraphicsDropShadowEffect::offsetChanged), self, [=](const QPointF& offset) {
|
|
const QPointF& offset_ret = offset;
|
|
// Cast returned reference into pointer
|
|
QPointF* sigval1 = const_cast<QPointF*>(&offset_ret);
|
|
miqt_exec_callback_QGraphicsDropShadowEffect_OffsetChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_BlurRadiusChanged(QGraphicsDropShadowEffect* self, double blurRadius) {
|
|
self->blurRadiusChanged(static_cast<qreal>(blurRadius));
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_connect_BlurRadiusChanged(QGraphicsDropShadowEffect* self, void* slot) {
|
|
QGraphicsDropShadowEffect::connect(self, static_cast<void (QGraphicsDropShadowEffect::*)(qreal)>(&QGraphicsDropShadowEffect::blurRadiusChanged), self, [=](qreal blurRadius) {
|
|
qreal blurRadius_ret = blurRadius;
|
|
double sigval1 = static_cast<double>(blurRadius_ret);
|
|
miqt_exec_callback_QGraphicsDropShadowEffect_BlurRadiusChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_ColorChanged(QGraphicsDropShadowEffect* self, QColor* color) {
|
|
self->colorChanged(*color);
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_connect_ColorChanged(QGraphicsDropShadowEffect* self, void* slot) {
|
|
QGraphicsDropShadowEffect::connect(self, static_cast<void (QGraphicsDropShadowEffect::*)(const QColor&)>(&QGraphicsDropShadowEffect::colorChanged), self, [=](const QColor& color) {
|
|
const QColor& color_ret = color;
|
|
// Cast returned reference into pointer
|
|
QColor* sigval1 = const_cast<QColor*>(&color_ret);
|
|
miqt_exec_callback_QGraphicsDropShadowEffect_ColorChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_Tr2(const char* s, const char* c) {
|
|
QString _ret = QGraphicsDropShadowEffect::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsDropShadowEffect::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QGraphicsDropShadowEffect::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsDropShadowEffect::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self) {
|
|
delete self;
|
|
}
|
|
|
|
QGraphicsOpacityEffect* QGraphicsOpacityEffect_new() {
|
|
return new QGraphicsOpacityEffect();
|
|
}
|
|
|
|
QGraphicsOpacityEffect* QGraphicsOpacityEffect_new2(QObject* parent) {
|
|
return new QGraphicsOpacityEffect(parent);
|
|
}
|
|
|
|
QMetaObject* QGraphicsOpacityEffect_MetaObject(const QGraphicsOpacityEffect* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGraphicsOpacityEffect_Metacast(QGraphicsOpacityEffect* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string* QGraphicsOpacityEffect_Tr(const char* s) {
|
|
QString _ret = QGraphicsOpacityEffect::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsOpacityEffect_TrUtf8(const char* s) {
|
|
QString _ret = QGraphicsOpacityEffect::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
double QGraphicsOpacityEffect_Opacity(const QGraphicsOpacityEffect* self) {
|
|
qreal _ret = self->opacity();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
QBrush* QGraphicsOpacityEffect_OpacityMask(const QGraphicsOpacityEffect* self) {
|
|
return new QBrush(self->opacityMask());
|
|
}
|
|
|
|
void QGraphicsOpacityEffect_SetOpacity(QGraphicsOpacityEffect* self, double opacity) {
|
|
self->setOpacity(static_cast<qreal>(opacity));
|
|
}
|
|
|
|
void QGraphicsOpacityEffect_SetOpacityMask(QGraphicsOpacityEffect* self, QBrush* mask) {
|
|
self->setOpacityMask(*mask);
|
|
}
|
|
|
|
void QGraphicsOpacityEffect_OpacityChanged(QGraphicsOpacityEffect* self, double opacity) {
|
|
self->opacityChanged(static_cast<qreal>(opacity));
|
|
}
|
|
|
|
void QGraphicsOpacityEffect_connect_OpacityChanged(QGraphicsOpacityEffect* self, void* slot) {
|
|
QGraphicsOpacityEffect::connect(self, static_cast<void (QGraphicsOpacityEffect::*)(qreal)>(&QGraphicsOpacityEffect::opacityChanged), self, [=](qreal opacity) {
|
|
qreal opacity_ret = opacity;
|
|
double sigval1 = static_cast<double>(opacity_ret);
|
|
miqt_exec_callback_QGraphicsOpacityEffect_OpacityChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
void QGraphicsOpacityEffect_OpacityMaskChanged(QGraphicsOpacityEffect* self, QBrush* mask) {
|
|
self->opacityMaskChanged(*mask);
|
|
}
|
|
|
|
void QGraphicsOpacityEffect_connect_OpacityMaskChanged(QGraphicsOpacityEffect* self, void* slot) {
|
|
QGraphicsOpacityEffect::connect(self, static_cast<void (QGraphicsOpacityEffect::*)(const QBrush&)>(&QGraphicsOpacityEffect::opacityMaskChanged), self, [=](const QBrush& mask) {
|
|
const QBrush& mask_ret = mask;
|
|
// Cast returned reference into pointer
|
|
QBrush* sigval1 = const_cast<QBrush*>(&mask_ret);
|
|
miqt_exec_callback_QGraphicsOpacityEffect_OpacityMaskChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
struct miqt_string* QGraphicsOpacityEffect_Tr2(const char* s, const char* c) {
|
|
QString _ret = QGraphicsOpacityEffect::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsOpacityEffect_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsOpacityEffect::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsOpacityEffect_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QGraphicsOpacityEffect::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
struct miqt_string* QGraphicsOpacityEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsOpacityEffect::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
return miqt_strdup(_b.data(), _b.length());
|
|
}
|
|
|
|
void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self) {
|
|
delete self;
|
|
}
|
|
|