miqt/qt/gen_qmetatype.cpp

285 lines
11 KiB
C++
Raw Normal View History

2024-08-29 07:01:51 +00:00
#include <QByteArray>
#include <QMetaObject>
#include <QMetaType>
2024-08-29 07:01:51 +00:00
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__QAssociativeIterableImpl
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__QPairVariantInterfaceImpl
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__QSequentialIterableImpl
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__VariantData
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__VectorBoolElements
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__AbstractComparatorFunction
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__AbstractConverterFunction
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__AbstractDebugStreamFunction
#include "qmetatype.h"
#include "gen_qmetatype.h"
#include "_cgo_export.h"
2024-08-29 07:01:51 +00:00
QtPrivate__AbstractDebugStreamFunction* QtPrivate__AbstractDebugStreamFunction_new() {
return new QtPrivate::AbstractDebugStreamFunction();
}
void QtPrivate__AbstractDebugStreamFunction_Delete(QtPrivate__AbstractDebugStreamFunction* self) {
delete self;
}
QtPrivate__AbstractComparatorFunction* QtPrivate__AbstractComparatorFunction_new() {
return new QtPrivate::AbstractComparatorFunction();
}
void QtPrivate__AbstractComparatorFunction_Delete(QtPrivate__AbstractComparatorFunction* self) {
delete self;
}
QtPrivate__AbstractConverterFunction* QtPrivate__AbstractConverterFunction_new() {
return new QtPrivate::AbstractConverterFunction();
}
void QtPrivate__AbstractConverterFunction_Delete(QtPrivate__AbstractConverterFunction* self) {
delete self;
}
QMetaType* QMetaType_new() {
return new QMetaType();
}
2024-08-29 07:01:51 +00:00
QMetaType* QMetaType_new2(const int typeVal) {
return new QMetaType(static_cast<const int>(typeVal));
}
bool QMetaType_UnregisterType(int typeVal) {
return QMetaType::unregisterType(static_cast<int>(typeVal));
}
2024-08-29 07:01:51 +00:00
int QMetaType_RegisterTypedef(const char* typeName, int aliasId) {
return QMetaType::registerTypedef(typeName, static_cast<int>(aliasId));
}
2024-08-29 07:01:51 +00:00
int QMetaType_RegisterNormalizedTypedef(QByteArray* normalizedTypeName, int aliasId) {
return QMetaType::registerNormalizedTypedef(*normalizedTypeName, static_cast<int>(aliasId));
}
int QMetaType_Type(const char* typeName) {
return QMetaType::type(typeName);
}
2024-08-29 07:01:51 +00:00
int QMetaType_TypeWithTypeName(QByteArray* typeName) {
return QMetaType::type(*typeName);
}
const char* QMetaType_TypeName(int typeVal) {
return (const char*) QMetaType::typeName(static_cast<int>(typeVal));
}
int QMetaType_SizeOf(int typeVal) {
return QMetaType::sizeOf(static_cast<int>(typeVal));
}
2024-08-29 07:01:51 +00:00
int QMetaType_TypeFlags(int typeVal) {
QMetaType::TypeFlags _ret = QMetaType::typeFlags(static_cast<int>(typeVal));
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
QMetaObject* QMetaType_MetaObjectForType(int typeVal) {
return (QMetaObject*) QMetaType::metaObjectForType(static_cast<int>(typeVal));
}
bool QMetaType_IsRegistered(int typeVal) {
return QMetaType::isRegistered(static_cast<int>(typeVal));
}
bool QMetaType_IsValid(const QMetaType* self) {
return self->isValid();
}
bool QMetaType_IsRegistered2(const QMetaType* self) {
return self->isRegistered();
}
int QMetaType_Id(const QMetaType* self) {
return self->id();
}
int QMetaType_SizeOf2(const QMetaType* self) {
return self->sizeOf();
2024-08-29 07:01:51 +00:00
}
int QMetaType_Flags(const QMetaType* self) {
QMetaType::TypeFlags _ret = self->flags();
return static_cast<int>(_ret);
}
QMetaObject* QMetaType_MetaObject(const QMetaType* self) {
return (QMetaObject*) self->metaObject();
2024-08-29 07:01:51 +00:00
}
QByteArray* QMetaType_Name(const QMetaType* self) {
QByteArray _ret = self->name();
2024-08-29 07:01:51 +00:00
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
}
bool QMetaType_HasRegisteredComparators(int typeId) {
return QMetaType::hasRegisteredComparators(static_cast<int>(typeId));
}
bool QMetaType_HasRegisteredDebugStreamOperator(int typeId) {
return QMetaType::hasRegisteredDebugStreamOperator(static_cast<int>(typeId));
}
bool QMetaType_HasRegisteredConverterFunction(int fromTypeId, int toTypeId) {
return QMetaType::hasRegisteredConverterFunction(static_cast<int>(fromTypeId), static_cast<int>(toTypeId));
}
void QMetaType_Delete(QMetaType* self) {
delete self;
}
2024-08-29 07:01:51 +00:00
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__VariantData_new(QtMetaTypePrivate__VariantData* other) {
return new QtMetaTypePrivate::VariantData(*other);
}
void QtMetaTypePrivate__VariantData_Delete(QtMetaTypePrivate__VariantData* self) {
delete self;
}
void QtMetaTypePrivate__VectorBoolElements_Delete(QtMetaTypePrivate__VectorBoolElements* self) {
delete self;
}
QtMetaTypePrivate__QSequentialIterableImpl* QtMetaTypePrivate__QSequentialIterableImpl_new() {
return new QtMetaTypePrivate::QSequentialIterableImpl();
}
QtMetaTypePrivate__QSequentialIterableImpl* QtMetaTypePrivate__QSequentialIterableImpl_new2(QtMetaTypePrivate__QSequentialIterableImpl* param1) {
return new QtMetaTypePrivate::QSequentialIterableImpl(*param1);
}
uintptr_t QtMetaTypePrivate__QSequentialIterableImpl_IteratorCapabilities(QtMetaTypePrivate__QSequentialIterableImpl* self) {
QtMetaTypePrivate::IteratorCapability _ret = self->iteratorCapabilities();
return static_cast<uintptr_t>(_ret);
2024-08-29 07:01:51 +00:00
}
unsigned int QtMetaTypePrivate__QSequentialIterableImpl_Revision(QtMetaTypePrivate__QSequentialIterableImpl* self) {
return self->revision();
}
unsigned int QtMetaTypePrivate__QSequentialIterableImpl_ContainerCapabilities(QtMetaTypePrivate__QSequentialIterableImpl* self) {
return self->containerCapabilities();
}
void QtMetaTypePrivate__QSequentialIterableImpl_MoveToBegin(QtMetaTypePrivate__QSequentialIterableImpl* self) {
self->moveToBegin();
}
void QtMetaTypePrivate__QSequentialIterableImpl_MoveToEnd(QtMetaTypePrivate__QSequentialIterableImpl* self) {
self->moveToEnd();
}
bool QtMetaTypePrivate__QSequentialIterableImpl_Equal(const QtMetaTypePrivate__QSequentialIterableImpl* self, QtMetaTypePrivate__QSequentialIterableImpl* other) {
return self->equal(*other);
2024-08-29 07:01:51 +00:00
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QSequentialIterableImpl_GetCurrent(const QtMetaTypePrivate__QSequentialIterableImpl* self) {
QtMetaTypePrivate::VariantData _ret = self->getCurrent();
2024-08-29 07:01:51 +00:00
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(_ret));
2024-08-29 07:01:51 +00:00
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QSequentialIterableImpl_At(const QtMetaTypePrivate__QSequentialIterableImpl* self, int idx) {
QtMetaTypePrivate::VariantData _ret = self->at(static_cast<int>(idx));
2024-08-29 07:01:51 +00:00
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(_ret));
2024-08-29 07:01:51 +00:00
}
int QtMetaTypePrivate__QSequentialIterableImpl_Size(const QtMetaTypePrivate__QSequentialIterableImpl* self) {
return self->size();
2024-08-29 07:01:51 +00:00
}
void QtMetaTypePrivate__QSequentialIterableImpl_DestroyIter(QtMetaTypePrivate__QSequentialIterableImpl* self) {
self->destroyIter();
}
void QtMetaTypePrivate__QSequentialIterableImpl_Copy(QtMetaTypePrivate__QSequentialIterableImpl* self, QtMetaTypePrivate__QSequentialIterableImpl* other) {
self->copy(*other);
}
void QtMetaTypePrivate__QSequentialIterableImpl_Delete(QtMetaTypePrivate__QSequentialIterableImpl* self) {
delete self;
}
QtMetaTypePrivate__QAssociativeIterableImpl* QtMetaTypePrivate__QAssociativeIterableImpl_new() {
return new QtMetaTypePrivate::QAssociativeIterableImpl();
}
QtMetaTypePrivate__QAssociativeIterableImpl* QtMetaTypePrivate__QAssociativeIterableImpl_new2(QtMetaTypePrivate__QAssociativeIterableImpl* param1) {
return new QtMetaTypePrivate::QAssociativeIterableImpl(*param1);
}
void QtMetaTypePrivate__QAssociativeIterableImpl_Begin(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
self->begin();
}
void QtMetaTypePrivate__QAssociativeIterableImpl_End(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
self->end();
}
bool QtMetaTypePrivate__QAssociativeIterableImpl_Equal(const QtMetaTypePrivate__QAssociativeIterableImpl* self, QtMetaTypePrivate__QAssociativeIterableImpl* other) {
return self->equal(*other);
2024-08-29 07:01:51 +00:00
}
void QtMetaTypePrivate__QAssociativeIterableImpl_DestroyIter(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
self->destroyIter();
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QAssociativeIterableImpl_GetCurrentKey(const QtMetaTypePrivate__QAssociativeIterableImpl* self) {
QtMetaTypePrivate::VariantData _ret = self->getCurrentKey();
2024-08-29 07:01:51 +00:00
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(_ret));
2024-08-29 07:01:51 +00:00
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QAssociativeIterableImpl_GetCurrentValue(const QtMetaTypePrivate__QAssociativeIterableImpl* self) {
QtMetaTypePrivate::VariantData _ret = self->getCurrentValue();
2024-08-29 07:01:51 +00:00
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(_ret));
2024-08-29 07:01:51 +00:00
}
void QtMetaTypePrivate__QAssociativeIterableImpl_Find(QtMetaTypePrivate__QAssociativeIterableImpl* self, QtMetaTypePrivate__VariantData* key) {
self->find(*key);
}
int QtMetaTypePrivate__QAssociativeIterableImpl_Size(const QtMetaTypePrivate__QAssociativeIterableImpl* self) {
return self->size();
2024-08-29 07:01:51 +00:00
}
void QtMetaTypePrivate__QAssociativeIterableImpl_Copy(QtMetaTypePrivate__QAssociativeIterableImpl* self, QtMetaTypePrivate__QAssociativeIterableImpl* other) {
self->copy(*other);
}
void QtMetaTypePrivate__QAssociativeIterableImpl_Delete(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
delete self;
}
QtMetaTypePrivate__QPairVariantInterfaceImpl* QtMetaTypePrivate__QPairVariantInterfaceImpl_new() {
return new QtMetaTypePrivate::QPairVariantInterfaceImpl();
}
QtMetaTypePrivate__QPairVariantInterfaceImpl* QtMetaTypePrivate__QPairVariantInterfaceImpl_new2(QtMetaTypePrivate__QPairVariantInterfaceImpl* param1) {
return new QtMetaTypePrivate::QPairVariantInterfaceImpl(*param1);
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QPairVariantInterfaceImpl_First(const QtMetaTypePrivate__QPairVariantInterfaceImpl* self) {
QtMetaTypePrivate::VariantData _ret = self->first();
2024-08-29 07:01:51 +00:00
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(_ret));
2024-08-29 07:01:51 +00:00
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QPairVariantInterfaceImpl_Second(const QtMetaTypePrivate__QPairVariantInterfaceImpl* self) {
QtMetaTypePrivate::VariantData _ret = self->second();
2024-08-29 07:01:51 +00:00
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(_ret));
2024-08-29 07:01:51 +00:00
}
void QtMetaTypePrivate__QPairVariantInterfaceImpl_Delete(QtMetaTypePrivate__QPairVariantInterfaceImpl* self) {
delete self;
}