2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QOBJECT_H
|
|
|
|
#define MIQT_QT_GEN_QOBJECT_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2024-11-19 06:29:06 +00:00
|
|
|
class QChildEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QEvent;
|
|
|
|
class QMetaMethod;
|
|
|
|
class QMetaObject;
|
2024-08-29 07:01:51 +00:00
|
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QMetaObject__Connection)
|
|
|
|
typedef QMetaObject::Connection QMetaObject__Connection;
|
|
|
|
#else
|
|
|
|
class QMetaObject__Connection;
|
|
|
|
#endif
|
2024-08-25 04:08:24 +00:00
|
|
|
class QObject;
|
|
|
|
class QObjectData;
|
|
|
|
class QObjectUserData;
|
|
|
|
class QSignalBlocker;
|
|
|
|
class QThread;
|
2024-11-19 06:29:06 +00:00
|
|
|
class QTimerEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QVariant;
|
|
|
|
#else
|
2024-11-19 06:29:06 +00:00
|
|
|
typedef struct QChildEvent QChildEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QEvent QEvent;
|
|
|
|
typedef struct QMetaMethod QMetaMethod;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QMetaObject__Connection QMetaObject__Connection;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QObjectData QObjectData;
|
|
|
|
typedef struct QObjectUserData QObjectUserData;
|
|
|
|
typedef struct QSignalBlocker QSignalBlocker;
|
|
|
|
typedef struct QThread QThread;
|
2024-11-19 06:29:06 +00:00
|
|
|
typedef struct QTimerEvent QTimerEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
#endif
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QObjectData_DynamicMetaObject(const QObjectData* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QObjectData_Delete(QObjectData* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QObject* QObject_new();
|
|
|
|
QObject* QObject_new2(QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QObject_MetaObject(const QObject* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QObject_Metacast(QObject* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QObject_Tr(const char* s);
|
|
|
|
struct miqt_string QObject_TrUtf8(const char* s);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QObject_Event(QObject* self, QEvent* event);
|
|
|
|
bool QObject_EventFilter(QObject* self, QObject* watched, QEvent* event);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QObject_ObjectName(const QObject* self);
|
|
|
|
void QObject_SetObjectName(QObject* self, struct miqt_string name);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QObject_IsWidgetType(const QObject* self);
|
|
|
|
bool QObject_IsWindowType(const QObject* self);
|
|
|
|
bool QObject_SignalsBlocked(const QObject* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QObject_BlockSignals(QObject* self, bool b);
|
2024-09-11 05:41:09 +00:00
|
|
|
QThread* QObject_Thread(const QObject* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QObject_MoveToThread(QObject* self, QThread* thread);
|
2024-08-29 07:01:51 +00:00
|
|
|
int QObject_StartTimer(QObject* self, int interval);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QObject_KillTimer(QObject* self, int id);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of QObject* */ QObject_Children(const QObject* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QObject_SetParent(QObject* self, QObject* parent);
|
|
|
|
void QObject_InstallEventFilter(QObject* self, QObject* filterObj);
|
|
|
|
void QObject_RemoveEventFilter(QObject* self, QObject* obj);
|
2024-08-29 07:01:51 +00:00
|
|
|
QMetaObject__Connection* QObject_Connect(QObject* sender, QMetaMethod* signal, QObject* receiver, QMetaMethod* method);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject__Connection* QObject_Connect2(const QObject* self, QObject* sender, const char* signal, const char* member);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QObject_Disconnect(QObject* sender, QMetaMethod* signal, QObject* receiver, QMetaMethod* member);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QObject_DisconnectWithQMetaObjectConnection(QMetaObject__Connection* param1);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QObject_DumpObjectTree(QObject* self);
|
|
|
|
void QObject_DumpObjectInfo(QObject* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QObject_DumpObjectTree2(const QObject* self);
|
|
|
|
void QObject_DumpObjectInfo2(const QObject* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QObject_SetProperty(QObject* self, const char* name, QVariant* value);
|
2024-09-11 05:41:09 +00:00
|
|
|
QVariant* QObject_Property(const QObject* self, const char* name);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QObject_DynamicPropertyNames(const QObject* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
unsigned int QObject_RegisterUserData();
|
|
|
|
void QObject_SetUserData(QObject* self, unsigned int id, QObjectUserData* data);
|
2024-09-11 05:41:09 +00:00
|
|
|
QObjectUserData* QObject_UserData(const QObject* self, unsigned int id);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QObject_Destroyed(QObject* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QObject_connect_Destroyed(QObject* self, intptr_t slot);
|
2024-09-11 05:41:09 +00:00
|
|
|
QObject* QObject_Parent(const QObject* self);
|
|
|
|
bool QObject_Inherits(const QObject* self, const char* classname);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QObject_DeleteLater(QObject* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QObject_TimerEvent(QObject* self, QTimerEvent* event);
|
|
|
|
void QObject_ChildEvent(QObject* self, QChildEvent* event);
|
|
|
|
void QObject_CustomEvent(QObject* self, QEvent* event);
|
|
|
|
void QObject_ConnectNotify(QObject* self, QMetaMethod* signal);
|
|
|
|
void QObject_DisconnectNotify(QObject* self, QMetaMethod* signal);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QObject_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QObject_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QObject_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QObject_TrUtf83(const char* s, const char* c, int n);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QObject_StartTimer2(QObject* self, int interval, int timerType);
|
|
|
|
QMetaObject__Connection* QObject_Connect5(QObject* sender, QMetaMethod* signal, QObject* receiver, QMetaMethod* method, int typeVal);
|
|
|
|
QMetaObject__Connection* QObject_Connect4(const QObject* self, QObject* sender, const char* signal, const char* member, int typeVal);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QObject_Destroyed1(QObject* self, QObject* param1);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QObject_connect_Destroyed1(QObject* self, intptr_t slot);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QObject_override_virtual_Event(void* self, intptr_t slot);
|
|
|
|
bool QObject_virtualbase_Event(void* self, QEvent* event);
|
|
|
|
void QObject_override_virtual_EventFilter(void* self, intptr_t slot);
|
|
|
|
bool QObject_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event);
|
|
|
|
void QObject_override_virtual_TimerEvent(void* self, intptr_t slot);
|
|
|
|
void QObject_virtualbase_TimerEvent(void* self, QTimerEvent* event);
|
|
|
|
void QObject_override_virtual_ChildEvent(void* self, intptr_t slot);
|
|
|
|
void QObject_virtualbase_ChildEvent(void* self, QChildEvent* event);
|
|
|
|
void QObject_override_virtual_CustomEvent(void* self, intptr_t slot);
|
|
|
|
void QObject_virtualbase_CustomEvent(void* self, QEvent* event);
|
|
|
|
void QObject_override_virtual_ConnectNotify(void* self, intptr_t slot);
|
|
|
|
void QObject_virtualbase_ConnectNotify(void* self, QMetaMethod* signal);
|
|
|
|
void QObject_override_virtual_DisconnectNotify(void* self, intptr_t slot);
|
|
|
|
void QObject_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal);
|
|
|
|
void QObject_Delete(QObject* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QObjectUserData* QObjectUserData_new();
|
2024-11-19 06:29:06 +00:00
|
|
|
void QObjectUserData_Delete(QObjectUserData* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QSignalBlocker* QSignalBlocker_new(QObject* o);
|
|
|
|
QSignalBlocker* QSignalBlocker_new2(QObject* o);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSignalBlocker_Reblock(QSignalBlocker* self);
|
|
|
|
void QSignalBlocker_Unblock(QSignalBlocker* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QSignalBlocker_Delete(QSignalBlocker* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|