miqt/qt/gen_qmetatype.h
2025-02-01 13:45:22 +13:00

75 lines
2.8 KiB
C++

#pragma once
#ifndef MIQT_QT_GEN_QMETATYPE_H
#define MIQT_QT_GEN_QMETATYPE_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "../libmiqt/libmiqt.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QDataStream;
class QDebug;
class QMetaObject;
class QMetaType;
#else
typedef struct QDataStream QDataStream;
typedef struct QDebug QDebug;
typedef struct QMetaObject QMetaObject;
typedef struct QMetaType QMetaType;
#endif
QMetaType* QMetaType_new();
QMetaType* QMetaType_new2(const int type);
bool QMetaType_unregisterType(int type);
int QMetaType_registerTypedef(const char* typeName, int aliasId);
int QMetaType_registerNormalizedTypedef(struct miqt_string normalizedTypeName, int aliasId);
int QMetaType_type(const char* typeName);
int QMetaType_typeWithTypeName(struct miqt_string typeName);
const char* QMetaType_typeName(int type);
int QMetaType_sizeOf(int type);
int QMetaType_typeFlags(int type);
QMetaObject* QMetaType_metaObjectForType(int type);
bool QMetaType_isRegistered(int type);
void* QMetaType_create(int type);
void QMetaType_destroy(int type, void* data);
void* QMetaType_construct(int type, void* where, const void* copy);
void QMetaType_destruct(int type, void* where);
bool QMetaType_save(QDataStream* stream, int type, const void* data);
bool QMetaType_load(QDataStream* stream, int type, void* data);
bool QMetaType_isValid(const QMetaType* self);
bool QMetaType_isRegistered2(const QMetaType* self);
int QMetaType_id(const QMetaType* self);
int QMetaType_sizeOf2(const QMetaType* self);
int QMetaType_flags(const QMetaType* self);
QMetaObject* QMetaType_metaObject(const QMetaType* self);
struct miqt_string QMetaType_name(const QMetaType* self);
void* QMetaType_create2(const QMetaType* self);
void QMetaType_destroyWithData(const QMetaType* self, void* data);
void* QMetaType_constructWithWhere(const QMetaType* self, void* where);
void QMetaType_destructWithData(const QMetaType* self, void* data);
bool QMetaType_hasRegisteredComparators(int typeId);
bool QMetaType_hasRegisteredDebugStreamOperator(int typeId);
bool QMetaType_convert(const void* from, int fromTypeId, void* to, int toTypeId);
bool QMetaType_compare(const void* lhs, const void* rhs, int typeId, int* result);
bool QMetaType_equals(const void* lhs, const void* rhs, int typeId, int* result);
bool QMetaType_debugStream(QDebug* dbg, const void* rhs, int typeId);
bool QMetaType_hasRegisteredConverterFunction(int fromTypeId, int toTypeId);
void* QMetaType_create22(int type, const void* copy);
void* QMetaType_create1(const QMetaType* self, const void* copy);
void* QMetaType_construct2(const QMetaType* self, void* where, const void* copy);
void QMetaType_delete(QMetaType* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif