mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
88 lines
2.7 KiB
C++
88 lines
2.7 KiB
C++
#include <QAbstractAnimation>
|
|
#include <QAnimationGroup>
|
|
#include <QMetaObject>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <qanimationgroup.h>
|
|
#include "gen_qanimationgroup.h"
|
|
#include "_cgo_export.h"
|
|
|
|
QMetaObject* QAnimationGroup_MetaObject(const QAnimationGroup* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QAnimationGroup_Metacast(QAnimationGroup* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QAnimationGroup_Tr(const char* s) {
|
|
QString _ret = QAnimationGroup::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;
|
|
}
|
|
|
|
QAbstractAnimation* QAnimationGroup_AnimationAt(const QAnimationGroup* self, int index) {
|
|
return self->animationAt(static_cast<int>(index));
|
|
}
|
|
|
|
int QAnimationGroup_AnimationCount(const QAnimationGroup* self) {
|
|
return self->animationCount();
|
|
}
|
|
|
|
int QAnimationGroup_IndexOfAnimation(const QAnimationGroup* self, QAbstractAnimation* animation) {
|
|
return self->indexOfAnimation(animation);
|
|
}
|
|
|
|
void QAnimationGroup_AddAnimation(QAnimationGroup* self, QAbstractAnimation* animation) {
|
|
self->addAnimation(animation);
|
|
}
|
|
|
|
void QAnimationGroup_InsertAnimation(QAnimationGroup* self, int index, QAbstractAnimation* animation) {
|
|
self->insertAnimation(static_cast<int>(index), animation);
|
|
}
|
|
|
|
void QAnimationGroup_RemoveAnimation(QAnimationGroup* self, QAbstractAnimation* animation) {
|
|
self->removeAnimation(animation);
|
|
}
|
|
|
|
QAbstractAnimation* QAnimationGroup_TakeAnimation(QAnimationGroup* self, int index) {
|
|
return self->takeAnimation(static_cast<int>(index));
|
|
}
|
|
|
|
void QAnimationGroup_Clear(QAnimationGroup* self) {
|
|
self->clear();
|
|
}
|
|
|
|
struct miqt_string QAnimationGroup_Tr2(const char* s, const char* c) {
|
|
QString _ret = QAnimationGroup::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 QAnimationGroup_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QAnimationGroup::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 QAnimationGroup_Delete(QAnimationGroup* self) {
|
|
delete self;
|
|
}
|
|
|