mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
93 lines
3.3 KiB
C++
93 lines
3.3 KiB
C++
#include <QAbstractAnimation>
|
|
#include <QMetaObject>
|
|
#include <QObject>
|
|
#include <QPauseAnimation>
|
|
#include <QSequentialAnimationGroup>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <qsequentialanimationgroup.h>
|
|
#include "gen_qsequentialanimationgroup.h"
|
|
#include "_cgo_export.h"
|
|
|
|
QSequentialAnimationGroup* QSequentialAnimationGroup_new() {
|
|
return new QSequentialAnimationGroup();
|
|
}
|
|
|
|
QSequentialAnimationGroup* QSequentialAnimationGroup_new2(QObject* parent) {
|
|
return new QSequentialAnimationGroup(parent);
|
|
}
|
|
|
|
QMetaObject* QSequentialAnimationGroup_MetaObject(const QSequentialAnimationGroup* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QSequentialAnimationGroup_Metacast(QSequentialAnimationGroup* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QSequentialAnimationGroup_Tr(const char* s) {
|
|
QString _ret = QSequentialAnimationGroup::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;
|
|
}
|
|
|
|
QPauseAnimation* QSequentialAnimationGroup_AddPause(QSequentialAnimationGroup* self, int msecs) {
|
|
return self->addPause(static_cast<int>(msecs));
|
|
}
|
|
|
|
QPauseAnimation* QSequentialAnimationGroup_InsertPause(QSequentialAnimationGroup* self, int index, int msecs) {
|
|
return self->insertPause(static_cast<int>(index), static_cast<int>(msecs));
|
|
}
|
|
|
|
QAbstractAnimation* QSequentialAnimationGroup_CurrentAnimation(const QSequentialAnimationGroup* self) {
|
|
return self->currentAnimation();
|
|
}
|
|
|
|
int QSequentialAnimationGroup_Duration(const QSequentialAnimationGroup* self) {
|
|
return self->duration();
|
|
}
|
|
|
|
void QSequentialAnimationGroup_CurrentAnimationChanged(QSequentialAnimationGroup* self, QAbstractAnimation* current) {
|
|
self->currentAnimationChanged(current);
|
|
}
|
|
|
|
void QSequentialAnimationGroup_connect_CurrentAnimationChanged(QSequentialAnimationGroup* self, intptr_t slot) {
|
|
QSequentialAnimationGroup::connect(self, static_cast<void (QSequentialAnimationGroup::*)(QAbstractAnimation*)>(&QSequentialAnimationGroup::currentAnimationChanged), self, [=](QAbstractAnimation* current) {
|
|
QAbstractAnimation* sigval1 = current;
|
|
miqt_exec_callback_QSequentialAnimationGroup_CurrentAnimationChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
struct miqt_string QSequentialAnimationGroup_Tr2(const char* s, const char* c) {
|
|
QString _ret = QSequentialAnimationGroup::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 QSequentialAnimationGroup_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QSequentialAnimationGroup::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;
|
|
}
|
|
|
|
void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self) {
|
|
delete self;
|
|
}
|
|
|