#include "gen_qabstractanimation.h" #include "qabstractanimation.h" #include #include #include #include #include #include extern "C" { extern void miqt_exec_callback(void* cb, int argc, void* argv); } QMetaObject* QAbstractAnimation_MetaObject(QAbstractAnimation* self) { return (QMetaObject*) self->metaObject(); } void QAbstractAnimation_Tr(char* s, char** _out, int* _out_Strlen) { QString ret = QAbstractAnimation::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAbstractAnimation_TrUtf8(char* s, char** _out, int* _out_Strlen) { QString ret = QAbstractAnimation::trUtf8(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } QAnimationGroup* QAbstractAnimation_Group(QAbstractAnimation* self) { return self->group(); } int QAbstractAnimation_CurrentTime(QAbstractAnimation* self) { return self->currentTime(); } int QAbstractAnimation_CurrentLoopTime(QAbstractAnimation* self) { return self->currentLoopTime(); } int QAbstractAnimation_LoopCount(QAbstractAnimation* self) { return self->loopCount(); } void QAbstractAnimation_SetLoopCount(QAbstractAnimation* self, int loopCount) { self->setLoopCount(static_cast(loopCount)); } int QAbstractAnimation_CurrentLoop(QAbstractAnimation* self) { return self->currentLoop(); } int QAbstractAnimation_Duration(QAbstractAnimation* self) { return self->duration(); } int QAbstractAnimation_TotalDuration(QAbstractAnimation* self) { return self->totalDuration(); } void QAbstractAnimation_Finished(QAbstractAnimation* self) { self->finished(); } void QAbstractAnimation_connect_Finished(QAbstractAnimation* self, void* slot) { QAbstractAnimation::connect(self, static_cast(&QAbstractAnimation::finished), self, [=]() { miqt_exec_callback(slot, 0, nullptr); }); } void QAbstractAnimation_CurrentLoopChanged(QAbstractAnimation* self, int currentLoop) { self->currentLoopChanged(static_cast(currentLoop)); } void QAbstractAnimation_connect_CurrentLoopChanged(QAbstractAnimation* self, void* slot) { QAbstractAnimation::connect(self, static_cast(&QAbstractAnimation::currentLoopChanged), self, [=](int currentLoop) { miqt_exec_callback(slot, 0, nullptr); }); } 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(msecs)); } void QAbstractAnimation_Tr2(char* s, char* c, char** _out, int* _out_Strlen) { QString ret = QAbstractAnimation::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAbstractAnimation_Tr3(char* s, char* c, int n, char** _out, int* _out_Strlen) { QString ret = QAbstractAnimation::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAbstractAnimation_TrUtf82(char* s, char* c, char** _out, int* _out_Strlen) { QString ret = QAbstractAnimation::trUtf8(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAbstractAnimation_TrUtf83(char* s, char* c, int n, char** _out, int* _out_Strlen) { QString ret = QAbstractAnimation::trUtf8(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAbstractAnimation_Delete(QAbstractAnimation* self) { delete self; } QAnimationDriver* QAnimationDriver_new() { return new QAnimationDriver(); } QAnimationDriver* QAnimationDriver_new2(QObject* parent) { return new QAnimationDriver(parent); } QMetaObject* QAnimationDriver_MetaObject(QAnimationDriver* self) { return (QMetaObject*) self->metaObject(); } void QAnimationDriver_Tr(char* s, char** _out, int* _out_Strlen) { QString ret = QAnimationDriver::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAnimationDriver_TrUtf8(char* s, char** _out, int* _out_Strlen) { QString ret = QAnimationDriver::trUtf8(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAnimationDriver_Advance(QAnimationDriver* self) { self->advance(); } void QAnimationDriver_Install(QAnimationDriver* self) { self->install(); } void QAnimationDriver_Uninstall(QAnimationDriver* self) { self->uninstall(); } bool QAnimationDriver_IsRunning(QAnimationDriver* self) { return self->isRunning(); } int64_t QAnimationDriver_Elapsed(QAnimationDriver* self) { return self->elapsed(); } void QAnimationDriver_SetStartTime(QAnimationDriver* self, int64_t startTime) { self->setStartTime((qint64)(startTime)); } int64_t QAnimationDriver_StartTime(QAnimationDriver* self) { return self->startTime(); } void QAnimationDriver_Started(QAnimationDriver* self) { self->started(); } void QAnimationDriver_connect_Started(QAnimationDriver* self, void* slot) { QAnimationDriver::connect(self, static_cast(&QAnimationDriver::started), self, [=]() { miqt_exec_callback(slot, 0, nullptr); }); } void QAnimationDriver_Stopped(QAnimationDriver* self) { self->stopped(); } void QAnimationDriver_connect_Stopped(QAnimationDriver* self, void* slot) { QAnimationDriver::connect(self, static_cast(&QAnimationDriver::stopped), self, [=]() { miqt_exec_callback(slot, 0, nullptr); }); } void QAnimationDriver_Tr2(char* s, char* c, char** _out, int* _out_Strlen) { QString ret = QAnimationDriver::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAnimationDriver_Tr3(char* s, char* c, int n, char** _out, int* _out_Strlen) { QString ret = QAnimationDriver::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAnimationDriver_TrUtf82(char* s, char* c, char** _out, int* _out_Strlen) { QString ret = QAnimationDriver::trUtf8(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAnimationDriver_TrUtf83(char* s, char* c, int n, char** _out, int* _out_Strlen) { QString ret = QAnimationDriver::trUtf8(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QAnimationDriver_Delete(QAnimationDriver* self) { delete self; }