2024-11-19 19:29:06 +13:00
|
|
|
#include <QAbstractAnimation>
|
2024-10-20 18:21:03 +13:00
|
|
|
#include <QByteArray>
|
2025-01-19 16:39:11 +13:00
|
|
|
#include <QChildEvent>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QEvent>
|
2025-01-19 16:39:11 +13:00
|
|
|
#include <QMetaMethod>
|
2024-10-20 18:21:03 +13:00
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QPropertyAnimation>
|
|
|
|
#include <QString>
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2025-01-19 16:39:11 +13:00
|
|
|
#include <QTimerEvent>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QVariant>
|
|
|
|
#include <QVariantAnimation>
|
2024-10-20 18:21:03 +13:00
|
|
|
#include <qpropertyanimation.h>
|
|
|
|
#include "gen_qpropertyanimation.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
bool miqt_exec_callback_QPropertyAnimation_Event(void*, intptr_t, QEvent*);
|
|
|
|
void miqt_exec_callback_QPropertyAnimation_UpdateCurrentValue(void*, intptr_t, QVariant*);
|
|
|
|
void miqt_exec_callback_QPropertyAnimation_UpdateState(void*, intptr_t, int, int);
|
|
|
|
int miqt_exec_callback_QPropertyAnimation_Duration(void*, intptr_t);
|
|
|
|
void miqt_exec_callback_QPropertyAnimation_UpdateCurrentTime(void*, intptr_t, int);
|
|
|
|
QVariant* miqt_exec_callback_QPropertyAnimation_Interpolated(void*, intptr_t, QVariant*, QVariant*, double);
|
2025-01-19 16:39:11 +13:00
|
|
|
void miqt_exec_callback_QPropertyAnimation_UpdateDirection(void*, intptr_t, int);
|
|
|
|
bool miqt_exec_callback_QPropertyAnimation_EventFilter(void*, intptr_t, QObject*, QEvent*);
|
|
|
|
void miqt_exec_callback_QPropertyAnimation_TimerEvent(void*, intptr_t, QTimerEvent*);
|
|
|
|
void miqt_exec_callback_QPropertyAnimation_ChildEvent(void*, intptr_t, QChildEvent*);
|
|
|
|
void miqt_exec_callback_QPropertyAnimation_CustomEvent(void*, intptr_t, QEvent*);
|
|
|
|
void miqt_exec_callback_QPropertyAnimation_ConnectNotify(void*, intptr_t, QMetaMethod*);
|
|
|
|
void miqt_exec_callback_QPropertyAnimation_DisconnectNotify(void*, intptr_t, QMetaMethod*);
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
class MiqtVirtualQPropertyAnimation final : public QPropertyAnimation {
|
2024-11-19 19:29:06 +13:00
|
|
|
public:
|
|
|
|
|
|
|
|
MiqtVirtualQPropertyAnimation(): QPropertyAnimation() {};
|
|
|
|
MiqtVirtualQPropertyAnimation(QObject* target, const QByteArray& propertyName): QPropertyAnimation(target, propertyName) {};
|
|
|
|
MiqtVirtualQPropertyAnimation(QObject* parent): QPropertyAnimation(parent) {};
|
|
|
|
MiqtVirtualQPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent): QPropertyAnimation(target, propertyName, parent) {};
|
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
virtual ~MiqtVirtualQPropertyAnimation() override = default;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__Event = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual bool event(QEvent* event) override {
|
|
|
|
if (handle__Event == 0) {
|
|
|
|
return QPropertyAnimation::event(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QPropertyAnimation_Event(this, handle__Event, sigval1);
|
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
bool virtualbase_Event(QEvent* event) {
|
|
|
|
|
|
|
|
return QPropertyAnimation::event(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__UpdateCurrentValue = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void updateCurrentValue(const QVariant& value) override {
|
|
|
|
if (handle__UpdateCurrentValue == 0) {
|
|
|
|
QPropertyAnimation::updateCurrentValue(value);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QVariant& value_ret = value;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QVariant* sigval1 = const_cast<QVariant*>(&value_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_UpdateCurrentValue(this, handle__UpdateCurrentValue, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_UpdateCurrentValue(QVariant* value) {
|
|
|
|
|
|
|
|
QPropertyAnimation::updateCurrentValue(*value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__UpdateState = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override {
|
|
|
|
if (handle__UpdateState == 0) {
|
|
|
|
QPropertyAnimation::updateState(newState, oldState);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QAbstractAnimation::State newState_ret = newState;
|
|
|
|
int sigval1 = static_cast<int>(newState_ret);
|
|
|
|
QAbstractAnimation::State oldState_ret = oldState;
|
|
|
|
int sigval2 = static_cast<int>(oldState_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_UpdateState(this, handle__UpdateState, sigval1, sigval2);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_UpdateState(int newState, int oldState) {
|
|
|
|
|
|
|
|
QPropertyAnimation::updateState(static_cast<QAbstractAnimation::State>(newState), static_cast<QAbstractAnimation::State>(oldState));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__Duration = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual int duration() const override {
|
|
|
|
if (handle__Duration == 0) {
|
|
|
|
return QPropertyAnimation::duration();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QPropertyAnimation_Duration(const_cast<MiqtVirtualQPropertyAnimation*>(this), handle__Duration);
|
|
|
|
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
int virtualbase_Duration() const {
|
|
|
|
|
|
|
|
return QPropertyAnimation::duration();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__UpdateCurrentTime = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void updateCurrentTime(int param1) override {
|
|
|
|
if (handle__UpdateCurrentTime == 0) {
|
|
|
|
QPropertyAnimation::updateCurrentTime(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
int sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_UpdateCurrentTime(this, handle__UpdateCurrentTime, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_UpdateCurrentTime(int param1) {
|
|
|
|
|
|
|
|
QPropertyAnimation::updateCurrentTime(static_cast<int>(param1));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__Interpolated = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual QVariant interpolated(const QVariant& from, const QVariant& to, qreal progress) const override {
|
|
|
|
if (handle__Interpolated == 0) {
|
|
|
|
return QPropertyAnimation::interpolated(from, to, progress);
|
|
|
|
}
|
|
|
|
|
|
|
|
const QVariant& from_ret = from;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QVariant* sigval1 = const_cast<QVariant*>(&from_ret);
|
|
|
|
const QVariant& to_ret = to;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QVariant* sigval2 = const_cast<QVariant*>(&to_ret);
|
|
|
|
qreal progress_ret = progress;
|
|
|
|
double sigval3 = static_cast<double>(progress_ret);
|
|
|
|
|
|
|
|
QVariant* callback_return_value = miqt_exec_callback_QPropertyAnimation_Interpolated(const_cast<MiqtVirtualQPropertyAnimation*>(this), handle__Interpolated, sigval1, sigval2, sigval3);
|
|
|
|
|
|
|
|
return *callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
QVariant* virtualbase_Interpolated(QVariant* from, QVariant* to, double progress) const {
|
|
|
|
|
|
|
|
return new QVariant(QPropertyAnimation::interpolated(*from, *to, static_cast<qreal>(progress)));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__UpdateDirection = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void updateDirection(QAbstractAnimation::Direction direction) override {
|
|
|
|
if (handle__UpdateDirection == 0) {
|
|
|
|
QPropertyAnimation::updateDirection(direction);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QAbstractAnimation::Direction direction_ret = direction;
|
|
|
|
int sigval1 = static_cast<int>(direction_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_UpdateDirection(this, handle__UpdateDirection, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_UpdateDirection(int direction) {
|
|
|
|
|
|
|
|
QPropertyAnimation::updateDirection(static_cast<QAbstractAnimation::Direction>(direction));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__EventFilter = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
|
|
if (handle__EventFilter == 0) {
|
|
|
|
return QPropertyAnimation::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QObject* sigval1 = watched;
|
|
|
|
QEvent* sigval2 = event;
|
|
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QPropertyAnimation_EventFilter(this, handle__EventFilter, sigval1, sigval2);
|
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
bool virtualbase_EventFilter(QObject* watched, QEvent* event) {
|
|
|
|
|
|
|
|
return QPropertyAnimation::eventFilter(watched, event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__TimerEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
|
|
if (handle__TimerEvent == 0) {
|
|
|
|
QPropertyAnimation::timerEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_TimerEvent(this, handle__TimerEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_TimerEvent(QTimerEvent* event) {
|
|
|
|
|
|
|
|
QPropertyAnimation::timerEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__ChildEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
|
|
if (handle__ChildEvent == 0) {
|
|
|
|
QPropertyAnimation::childEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_ChildEvent(this, handle__ChildEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ChildEvent(QChildEvent* event) {
|
|
|
|
|
|
|
|
QPropertyAnimation::childEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__CustomEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void customEvent(QEvent* event) override {
|
|
|
|
if (handle__CustomEvent == 0) {
|
|
|
|
QPropertyAnimation::customEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_CustomEvent(this, handle__CustomEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_CustomEvent(QEvent* event) {
|
|
|
|
|
|
|
|
QPropertyAnimation::customEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__ConnectNotify = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
|
|
if (handle__ConnectNotify == 0) {
|
|
|
|
QPropertyAnimation::connectNotify(signal);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_ConnectNotify(this, handle__ConnectNotify, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ConnectNotify(QMetaMethod* signal) {
|
|
|
|
|
|
|
|
QPropertyAnimation::connectNotify(*signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__DisconnectNotify = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
|
|
if (handle__DisconnectNotify == 0) {
|
|
|
|
QPropertyAnimation::disconnectNotify(signal);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QPropertyAnimation_DisconnectNotify(this, handle__DisconnectNotify, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_DisconnectNotify(QMetaMethod* signal) {
|
|
|
|
|
|
|
|
QPropertyAnimation::disconnectNotify(*signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
};
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QPropertyAnimation* QPropertyAnimation_new() {
|
|
|
|
return new MiqtVirtualQPropertyAnimation();
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QPropertyAnimation* QPropertyAnimation_new2(QObject* target, struct miqt_string propertyName) {
|
2024-10-20 18:21:03 +13:00
|
|
|
QByteArray propertyName_QByteArray(propertyName.data, propertyName.len);
|
2024-12-07 17:15:57 +13:00
|
|
|
return new MiqtVirtualQPropertyAnimation(target, propertyName_QByteArray);
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QPropertyAnimation* QPropertyAnimation_new3(QObject* parent) {
|
|
|
|
return new MiqtVirtualQPropertyAnimation(parent);
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QPropertyAnimation* QPropertyAnimation_new4(QObject* target, struct miqt_string propertyName, QObject* parent) {
|
2024-10-20 18:21:03 +13:00
|
|
|
QByteArray propertyName_QByteArray(propertyName.data, propertyName.len);
|
2024-12-07 17:15:57 +13:00
|
|
|
return new MiqtVirtualQPropertyAnimation(target, propertyName_QByteArray, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtbase(QPropertyAnimation* src, QVariantAnimation** outptr_QVariantAnimation) {
|
|
|
|
*outptr_QVariantAnimation = static_cast<QVariantAnimation*>(src);
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
QMetaObject* QPropertyAnimation_MetaObject(const QPropertyAnimation* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
|
|
|
}
|
|
|
|
|
|
|
|
void* QPropertyAnimation_Metacast(QPropertyAnimation* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct miqt_string QPropertyAnimation_Tr(const char* s) {
|
|
|
|
QString _ret = QPropertyAnimation::tr(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
QObject* QPropertyAnimation_TargetObject(const QPropertyAnimation* self) {
|
|
|
|
return self->targetObject();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_SetTargetObject(QPropertyAnimation* self, QObject* target) {
|
|
|
|
self->setTargetObject(target);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct miqt_string QPropertyAnimation_PropertyName(const QPropertyAnimation* self) {
|
|
|
|
QByteArray _qb = self->propertyName();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _qb.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _qb.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_SetPropertyName(QPropertyAnimation* self, struct miqt_string propertyName) {
|
|
|
|
QByteArray propertyName_QByteArray(propertyName.data, propertyName.len);
|
|
|
|
self->setPropertyName(propertyName_QByteArray);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct miqt_string QPropertyAnimation_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QPropertyAnimation::tr(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct miqt_string QPropertyAnimation_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QPropertyAnimation::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();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QPropertyAnimation_override_virtual_Event(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__Event = slot;
|
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QPropertyAnimation_virtualbase_Event(void* self, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_Event(event);
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QPropertyAnimation_override_virtual_UpdateCurrentValue(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__UpdateCurrentValue = slot;
|
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_UpdateCurrentValue(void* self, QVariant* value) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_UpdateCurrentValue(value);
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QPropertyAnimation_override_virtual_UpdateState(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__UpdateState = slot;
|
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_UpdateState(void* self, int newState, int oldState) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_UpdateState(newState, oldState);
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QPropertyAnimation_override_virtual_Duration(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__Duration = slot;
|
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPropertyAnimation_virtualbase_Duration(const void* self) {
|
|
|
|
return ( (const MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_Duration();
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QPropertyAnimation_override_virtual_UpdateCurrentTime(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__UpdateCurrentTime = slot;
|
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_UpdateCurrentTime(void* self, int param1) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_UpdateCurrentTime(param1);
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QPropertyAnimation_override_virtual_Interpolated(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__Interpolated = slot;
|
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
QVariant* QPropertyAnimation_virtualbase_Interpolated(const void* self, QVariant* from, QVariant* to, double progress) {
|
|
|
|
return ( (const MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_Interpolated(from, to, progress);
|
|
|
|
}
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
bool QPropertyAnimation_override_virtual_UpdateDirection(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__UpdateDirection = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_UpdateDirection(void* self, int direction) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_UpdateDirection(direction);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPropertyAnimation_override_virtual_EventFilter(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__EventFilter = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPropertyAnimation_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_EventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPropertyAnimation_override_virtual_TimerEvent(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__TimerEvent = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_TimerEvent(void* self, QTimerEvent* event) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_TimerEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPropertyAnimation_override_virtual_ChildEvent(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__ChildEvent = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_ChildEvent(void* self, QChildEvent* event) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_ChildEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPropertyAnimation_override_virtual_CustomEvent(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__CustomEvent = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_CustomEvent(void* self, QEvent* event) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_CustomEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPropertyAnimation_override_virtual_ConnectNotify(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__ConnectNotify = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_ConnectNotify(signal);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPropertyAnimation_override_virtual_DisconnectNotify(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQPropertyAnimation* self_cast = dynamic_cast<MiqtVirtualQPropertyAnimation*>( (QPropertyAnimation*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__DisconnectNotify = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_DisconnectNotify(signal);
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
void QPropertyAnimation_Delete(QPropertyAnimation* self) {
|
|
|
|
delete self;
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|