2024-08-25 04:08:24 +00:00
|
|
|
#include <QAbstractAnimation>
|
|
|
|
#include <QAnimationDriver>
|
|
|
|
#include <QAnimationGroup>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
|
|
|
#include "qabstractanimation.h"
|
|
|
|
#include "gen_qabstractanimation.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* QAbstractAnimation_MetaObject(const QAbstractAnimation* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAbstractAnimation_Tr(const char* s) {
|
|
|
|
QString _ret = QAbstractAnimation::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* QAbstractAnimation_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QAbstractAnimation::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-18 00:12:02 +00:00
|
|
|
int QAbstractAnimation_State(const QAbstractAnimation* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QAbstractAnimation::State _ret = self->state();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QAnimationGroup* QAbstractAnimation_Group(const QAbstractAnimation* self) {
|
|
|
|
return self->group();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QAbstractAnimation_Direction(const QAbstractAnimation* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QAbstractAnimation::Direction _ret = self->direction();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAbstractAnimation_SetDirection(QAbstractAnimation* self, int direction) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setDirection(static_cast<QAbstractAnimation::Direction>(direction));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QAbstractAnimation_CurrentTime(const QAbstractAnimation* self) {
|
|
|
|
return self->currentTime();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QAbstractAnimation_CurrentLoopTime(const QAbstractAnimation* self) {
|
|
|
|
return self->currentLoopTime();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QAbstractAnimation_LoopCount(const QAbstractAnimation* self) {
|
|
|
|
return self->loopCount();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_SetLoopCount(QAbstractAnimation* self, int loopCount) {
|
|
|
|
self->setLoopCount(static_cast<int>(loopCount));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QAbstractAnimation_CurrentLoop(const QAbstractAnimation* self) {
|
|
|
|
return self->currentLoop();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QAbstractAnimation_Duration(const QAbstractAnimation* self) {
|
|
|
|
return self->duration();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QAbstractAnimation_TotalDuration(const QAbstractAnimation* self) {
|
|
|
|
return self->totalDuration();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_Finished(QAbstractAnimation* self) {
|
|
|
|
self->finished();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_connect_Finished(QAbstractAnimation* self, void* slot) {
|
|
|
|
QAbstractAnimation::connect(self, static_cast<void (QAbstractAnimation::*)()>(&QAbstractAnimation::finished), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QAbstractAnimation_Finished(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAbstractAnimation_StateChanged(QAbstractAnimation* self, int newState, int oldState) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->stateChanged(static_cast<QAbstractAnimation::State>(newState), static_cast<QAbstractAnimation::State>(oldState));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_connect_StateChanged(QAbstractAnimation* self, void* slot) {
|
|
|
|
QAbstractAnimation::connect(self, static_cast<void (QAbstractAnimation::*)(QAbstractAnimation::State, QAbstractAnimation::State)>(&QAbstractAnimation::stateChanged), self, [=](QAbstractAnimation::State newState, QAbstractAnimation::State oldState) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QAbstractAnimation::State newState_ret = newState;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(newState_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
QAbstractAnimation::State oldState_ret = oldState;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval2 = static_cast<int>(oldState_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QAbstractAnimation_StateChanged(slot, sigval1, sigval2);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAbstractAnimation_CurrentLoopChanged(QAbstractAnimation* self, int currentLoop) {
|
|
|
|
self->currentLoopChanged(static_cast<int>(currentLoop));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_connect_CurrentLoopChanged(QAbstractAnimation* self, void* slot) {
|
|
|
|
QAbstractAnimation::connect(self, static_cast<void (QAbstractAnimation::*)(int)>(&QAbstractAnimation::currentLoopChanged), self, [=](int currentLoop) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = currentLoop;
|
|
|
|
miqt_exec_callback_QAbstractAnimation_CurrentLoopChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAbstractAnimation_DirectionChanged(QAbstractAnimation* self, int param1) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->directionChanged(static_cast<QAbstractAnimation::Direction>(param1));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_connect_DirectionChanged(QAbstractAnimation* self, void* slot) {
|
|
|
|
QAbstractAnimation::connect(self, static_cast<void (QAbstractAnimation::*)(QAbstractAnimation::Direction)>(&QAbstractAnimation::directionChanged), self, [=](QAbstractAnimation::Direction param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QAbstractAnimation::Direction param1_ret = param1;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(param1_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QAbstractAnimation_DirectionChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_Start(QAbstractAnimation* self) {
|
|
|
|
self->start();
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAbstractAnimation_Pause(QAbstractAnimation* self) {
|
|
|
|
self->pause();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_Resume(QAbstractAnimation* self) {
|
|
|
|
self->resume();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_SetPaused(QAbstractAnimation* self, bool paused) {
|
|
|
|
self->setPaused(paused);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_Stop(QAbstractAnimation* self) {
|
|
|
|
self->stop();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAbstractAnimation_SetCurrentTime(QAbstractAnimation* self, int msecs) {
|
|
|
|
self->setCurrentTime(static_cast<int>(msecs));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAbstractAnimation_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QAbstractAnimation::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* QAbstractAnimation_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QAbstractAnimation::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* QAbstractAnimation_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QAbstractAnimation::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* QAbstractAnimation_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QAbstractAnimation::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
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAbstractAnimation_Start1(QAbstractAnimation* self, int policy) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->start(static_cast<QAbstractAnimation::DeletionPolicy>(policy));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAbstractAnimation_Delete(QAbstractAnimation* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QAnimationDriver* QAnimationDriver_new() {
|
|
|
|
return new QAnimationDriver();
|
|
|
|
}
|
|
|
|
|
|
|
|
QAnimationDriver* QAnimationDriver_new2(QObject* parent) {
|
|
|
|
return new QAnimationDriver(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QAnimationDriver_MetaObject(const QAnimationDriver* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAnimationDriver_Tr(const char* s) {
|
|
|
|
QString _ret = QAnimationDriver::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* QAnimationDriver_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QAnimationDriver::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
|
|
|
}
|
|
|
|
|
|
|
|
void QAnimationDriver_Advance(QAnimationDriver* self) {
|
|
|
|
self->advance();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAnimationDriver_Install(QAnimationDriver* self) {
|
|
|
|
self->install();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAnimationDriver_Uninstall(QAnimationDriver* self) {
|
|
|
|
self->uninstall();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAnimationDriver_IsRunning(const QAnimationDriver* self) {
|
|
|
|
return self->isRunning();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
long long QAnimationDriver_Elapsed(const QAnimationDriver* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qint64 _ret = self->elapsed();
|
|
|
|
return static_cast<long long>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QAnimationDriver_SetStartTime(QAnimationDriver* self, long long startTime) {
|
|
|
|
self->setStartTime(static_cast<qint64>(startTime));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
long long QAnimationDriver_StartTime(const QAnimationDriver* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qint64 _ret = self->startTime();
|
|
|
|
return static_cast<long long>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAnimationDriver_Started(QAnimationDriver* self) {
|
|
|
|
self->started();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAnimationDriver_connect_Started(QAnimationDriver* self, void* slot) {
|
|
|
|
QAnimationDriver::connect(self, static_cast<void (QAnimationDriver::*)()>(&QAnimationDriver::started), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QAnimationDriver_Started(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAnimationDriver_Stopped(QAnimationDriver* self) {
|
|
|
|
self->stopped();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAnimationDriver_connect_Stopped(QAnimationDriver* self, void* slot) {
|
|
|
|
QAnimationDriver::connect(self, static_cast<void (QAnimationDriver::*)()>(&QAnimationDriver::stopped), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QAnimationDriver_Stopped(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAnimationDriver_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QAnimationDriver::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* QAnimationDriver_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QAnimationDriver::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* QAnimationDriver_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QAnimationDriver::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* QAnimationDriver_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QAnimationDriver::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 QAnimationDriver_Delete(QAnimationDriver* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|