2024-08-25 04:08:24 +00:00
|
|
|
#include <QBrush>
|
|
|
|
#include <QColor>
|
|
|
|
#include <QGraphicsBlurEffect>
|
|
|
|
#include <QGraphicsColorizeEffect>
|
|
|
|
#include <QGraphicsDropShadowEffect>
|
|
|
|
#include <QGraphicsEffect>
|
|
|
|
#include <QGraphicsOpacityEffect>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QPointF>
|
|
|
|
#include <QRectF>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
|
|
|
#include "qgraphicseffect.h"
|
|
|
|
#include "gen_qgraphicseffect.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QGraphicsEffect_MetaObject(const QGraphicsEffect* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsEffect_Tr(const char* s) {
|
|
|
|
QString _ret = QGraphicsEffect::tr(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsEffect_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QGraphicsEffect::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRectF* QGraphicsEffect_BoundingRectFor(const QGraphicsEffect* self, QRectF* sourceRect) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRectF(self->boundingRectFor(*sourceRect));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRectF* QGraphicsEffect_BoundingRect(const QGraphicsEffect* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRectF(self->boundingRect());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGraphicsEffect_IsEnabled(const QGraphicsEffect* self) {
|
|
|
|
return self->isEnabled();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
bool sigval1 = enabled;
|
|
|
|
miqt_exec_callback_QGraphicsEffect_EnabledChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsEffect_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsEffect::tr(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsEffect_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsEffect::tr(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsEffect_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsEffect::trUtf8(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsEffect::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsEffect_Delete(QGraphicsEffect* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsColorizeEffect* QGraphicsColorizeEffect_new() {
|
|
|
|
return new QGraphicsColorizeEffect();
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsColorizeEffect* QGraphicsColorizeEffect_new2(QObject* parent) {
|
|
|
|
return new QGraphicsColorizeEffect(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QGraphicsColorizeEffect_MetaObject(const QGraphicsColorizeEffect* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsColorizeEffect_Tr(const char* s) {
|
|
|
|
QString _ret = QGraphicsColorizeEffect::tr(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsColorizeEffect_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QGraphicsColorizeEffect::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QColor* QGraphicsColorizeEffect_Color(const QGraphicsColorizeEffect* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QColor(self->color());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGraphicsColorizeEffect_Strength(const QGraphicsColorizeEffect* self) {
|
|
|
|
return self->strength();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QColor& color_ret = color;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QColor* sigval1 = const_cast<QColor*>(&color_ret);
|
|
|
|
miqt_exec_callback_QGraphicsColorizeEffect_ColorChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
double sigval1 = strength;
|
|
|
|
miqt_exec_callback_QGraphicsColorizeEffect_StrengthChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsColorizeEffect_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsColorizeEffect::tr(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsColorizeEffect_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsColorizeEffect::tr(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsColorizeEffect_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsColorizeEffect::trUtf8(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsColorizeEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsColorizeEffect::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsBlurEffect* QGraphicsBlurEffect_new() {
|
|
|
|
return new QGraphicsBlurEffect();
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsBlurEffect* QGraphicsBlurEffect_new2(QObject* parent) {
|
|
|
|
return new QGraphicsBlurEffect(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QGraphicsBlurEffect_MetaObject(const QGraphicsBlurEffect* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsBlurEffect_Tr(const char* s) {
|
|
|
|
QString _ret = QGraphicsBlurEffect::tr(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsBlurEffect_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QGraphicsBlurEffect::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRectF* QGraphicsBlurEffect_BoundingRectFor(const QGraphicsBlurEffect* self, QRectF* rect) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRectF(self->boundingRectFor(*rect));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGraphicsBlurEffect_BlurRadius(const QGraphicsBlurEffect* self) {
|
|
|
|
return self->blurRadius();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QGraphicsBlurEffect_BlurHints(const QGraphicsBlurEffect* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QGraphicsBlurEffect::BlurHints _ret = self->blurHints();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsBlurEffect_SetBlurRadius(QGraphicsBlurEffect* self, double blurRadius) {
|
|
|
|
self->setBlurRadius(static_cast<qreal>(blurRadius));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QGraphicsBlurEffect_SetBlurHints(QGraphicsBlurEffect* self, int hints) {
|
|
|
|
self->setBlurHints(static_cast<QGraphicsBlurEffect::BlurHints>(hints));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
double sigval1 = blurRadius;
|
|
|
|
miqt_exec_callback_QGraphicsBlurEffect_BlurRadiusChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QGraphicsBlurEffect::BlurHints hints_ret = hints;
|
|
|
|
int sigval1 = static_cast<int>(hints_ret);
|
|
|
|
miqt_exec_callback_QGraphicsBlurEffect_BlurHintsChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsBlurEffect_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsBlurEffect::tr(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsBlurEffect_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsBlurEffect::tr(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsBlurEffect_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsBlurEffect::trUtf8(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsBlurEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsBlurEffect::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsDropShadowEffect* QGraphicsDropShadowEffect_new() {
|
|
|
|
return new QGraphicsDropShadowEffect();
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsDropShadowEffect* QGraphicsDropShadowEffect_new2(QObject* parent) {
|
|
|
|
return new QGraphicsDropShadowEffect(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QGraphicsDropShadowEffect_MetaObject(const QGraphicsDropShadowEffect* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_Tr(const char* s) {
|
|
|
|
QString _ret = QGraphicsDropShadowEffect::tr(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QGraphicsDropShadowEffect::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRectF* QGraphicsDropShadowEffect_BoundingRectFor(const QGraphicsDropShadowEffect* self, QRectF* rect) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRectF(self->boundingRectFor(*rect));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPointF* QGraphicsDropShadowEffect_Offset(const QGraphicsDropShadowEffect* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPointF(self->offset());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGraphicsDropShadowEffect_XOffset(const QGraphicsDropShadowEffect* self) {
|
|
|
|
return self->xOffset();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGraphicsDropShadowEffect_YOffset(const QGraphicsDropShadowEffect* self) {
|
|
|
|
return self->yOffset();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGraphicsDropShadowEffect_BlurRadius(const QGraphicsDropShadowEffect* self) {
|
|
|
|
return self->blurRadius();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QColor* QGraphicsDropShadowEffect_Color(const QGraphicsDropShadowEffect* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QColor(self->color());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QPointF& offset_ret = offset;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QPointF* sigval1 = const_cast<QPointF*>(&offset_ret);
|
|
|
|
miqt_exec_callback_QGraphicsDropShadowEffect_OffsetChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
double sigval1 = blurRadius;
|
|
|
|
miqt_exec_callback_QGraphicsDropShadowEffect_BlurRadiusChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QColor& color_ret = color;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QColor* sigval1 = const_cast<QColor*>(&color_ret);
|
|
|
|
miqt_exec_callback_QGraphicsDropShadowEffect_ColorChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsDropShadowEffect::tr(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsDropShadowEffect::tr(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsDropShadowEffect::trUtf8(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsDropShadowEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsDropShadowEffect::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsOpacityEffect* QGraphicsOpacityEffect_new() {
|
|
|
|
return new QGraphicsOpacityEffect();
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsOpacityEffect* QGraphicsOpacityEffect_new2(QObject* parent) {
|
|
|
|
return new QGraphicsOpacityEffect(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QGraphicsOpacityEffect_MetaObject(const QGraphicsOpacityEffect* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsOpacityEffect_Tr(const char* s) {
|
|
|
|
QString _ret = QGraphicsOpacityEffect::tr(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsOpacityEffect_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QGraphicsOpacityEffect::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGraphicsOpacityEffect_Opacity(const QGraphicsOpacityEffect* self) {
|
|
|
|
return self->opacity();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QBrush* QGraphicsOpacityEffect_OpacityMask(const QGraphicsOpacityEffect* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QBrush(self->opacityMask());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
double sigval1 = opacity;
|
|
|
|
miqt_exec_callback_QGraphicsOpacityEffect_OpacityChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QBrush& mask_ret = mask;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QBrush* sigval1 = const_cast<QBrush*>(&mask_ret);
|
|
|
|
miqt_exec_callback_QGraphicsOpacityEffect_OpacityMaskChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsOpacityEffect_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsOpacityEffect::tr(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsOpacityEffect_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsOpacityEffect::tr(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsOpacityEffect_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QGraphicsOpacityEffect::trUtf8(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGraphicsOpacityEffect_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGraphicsOpacityEffect::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|