miqt/qt/gen_qanimationgroup.cpp

97 lines
3.2 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();
return miqt_strdup(_b.data(), _b.length());
}
struct miqt_string* QAnimationGroup_TrUtf8(const char* s) {
QString _ret = QAnimationGroup::trUtf8(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
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();
return miqt_strdup(_b.data(), _b.length());
}
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();
return miqt_strdup(_b.data(), _b.length());
}
struct miqt_string* QAnimationGroup_TrUtf82(const char* s, const char* c) {
QString _ret = QAnimationGroup::trUtf8(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
struct miqt_string* QAnimationGroup_TrUtf83(const char* s, const char* c, int n) {
QString _ret = QAnimationGroup::trUtf8(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();
return miqt_strdup(_b.data(), _b.length());
}
void QAnimationGroup_Delete(QAnimationGroup* self) {
delete self;
}