2024-08-25 04:08:24 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QPropertyAnimation>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
|
|
|
#include "qpropertyanimation.h"
|
|
|
|
#include "gen_qpropertyanimation.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QPropertyAnimation* QPropertyAnimation_new() {
|
|
|
|
return new QPropertyAnimation();
|
|
|
|
}
|
|
|
|
|
|
|
|
QPropertyAnimation* QPropertyAnimation_new2(QObject* target, QByteArray* propertyName) {
|
|
|
|
return new QPropertyAnimation(target, *propertyName);
|
|
|
|
}
|
|
|
|
|
|
|
|
QPropertyAnimation* QPropertyAnimation_new3(QObject* parent) {
|
|
|
|
return new QPropertyAnimation(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QPropertyAnimation* QPropertyAnimation_new4(QObject* target, QByteArray* propertyName, QObject* parent) {
|
|
|
|
return new QPropertyAnimation(target, *propertyName, parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QPropertyAnimation_MetaObject(const QPropertyAnimation* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QPropertyAnimation_Tr(const char* s) {
|
|
|
|
QString _ret = QPropertyAnimation::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* QPropertyAnimation_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QPropertyAnimation::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-11 05:41:09 +00:00
|
|
|
QObject* QPropertyAnimation_TargetObject(const QPropertyAnimation* self) {
|
|
|
|
return self->targetObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_SetTargetObject(QPropertyAnimation* self, QObject* target) {
|
|
|
|
self->setTargetObject(target);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QPropertyAnimation_PropertyName(const QPropertyAnimation* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QByteArray(self->propertyName());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QPropertyAnimation_SetPropertyName(QPropertyAnimation* self, QByteArray* propertyName) {
|
|
|
|
self->setPropertyName(*propertyName);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QPropertyAnimation_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QPropertyAnimation::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* QPropertyAnimation_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QPropertyAnimation::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* QPropertyAnimation_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QPropertyAnimation::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* QPropertyAnimation_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QPropertyAnimation::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 QPropertyAnimation_Delete(QPropertyAnimation* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|