2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QSTATEMACHINE_H
|
|
|
|
#define GEN_QSTATEMACHINE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QAbstractAnimation;
|
|
|
|
class QAbstractState;
|
|
|
|
class QEvent;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QStateMachine;
|
2024-08-29 07:01:51 +00:00
|
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QStateMachine__SignalEvent)
|
|
|
|
typedef QStateMachine::SignalEvent QStateMachine__SignalEvent;
|
|
|
|
#else
|
|
|
|
class QStateMachine__SignalEvent;
|
|
|
|
#endif
|
|
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QStateMachine__WrappedEvent)
|
|
|
|
typedef QStateMachine::WrappedEvent QStateMachine__WrappedEvent;
|
|
|
|
#else
|
|
|
|
class QStateMachine__WrappedEvent;
|
|
|
|
#endif
|
2024-08-25 04:08:24 +00:00
|
|
|
#else
|
|
|
|
typedef struct QAbstractAnimation QAbstractAnimation;
|
|
|
|
typedef struct QAbstractState QAbstractState;
|
|
|
|
typedef struct QEvent QEvent;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QStateMachine QStateMachine;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QStateMachine__SignalEvent QStateMachine__SignalEvent;
|
|
|
|
typedef struct QStateMachine__WrappedEvent QStateMachine__WrappedEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
QStateMachine* QStateMachine_new();
|
2024-08-29 07:01:51 +00:00
|
|
|
QStateMachine* QStateMachine_new2(uintptr_t childMode);
|
|
|
|
QStateMachine* QStateMachine_new3(QObject* parent);
|
|
|
|
QStateMachine* QStateMachine_new4(uintptr_t childMode, QObject* parent);
|
2024-08-25 04:08:24 +00:00
|
|
|
QMetaObject* QStateMachine_MetaObject(QStateMachine* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QStateMachine_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QStateMachine_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QStateMachine_AddState(QStateMachine* self, QAbstractState* state);
|
|
|
|
void QStateMachine_RemoveState(QStateMachine* self, QAbstractState* state);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QStateMachine_Error(QStateMachine* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QStateMachine_ErrorString(QStateMachine* self, char** _out, int* _out_Strlen);
|
|
|
|
void QStateMachine_ClearError(QStateMachine* self);
|
|
|
|
bool QStateMachine_IsRunning(QStateMachine* self);
|
|
|
|
bool QStateMachine_IsAnimated(QStateMachine* self);
|
|
|
|
void QStateMachine_SetAnimated(QStateMachine* self, bool enabled);
|
|
|
|
void QStateMachine_AddDefaultAnimation(QStateMachine* self, QAbstractAnimation* animation);
|
|
|
|
void QStateMachine_DefaultAnimations(QStateMachine* self, QAbstractAnimation*** _out, size_t* _out_len);
|
|
|
|
void QStateMachine_RemoveDefaultAnimation(QStateMachine* self, QAbstractAnimation* animation);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QStateMachine_GlobalRestorePolicy(QStateMachine* self);
|
|
|
|
void QStateMachine_SetGlobalRestorePolicy(QStateMachine* self, uintptr_t restorePolicy);
|
|
|
|
void QStateMachine_PostEvent(QStateMachine* self, QEvent* event);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QStateMachine_PostDelayedEvent(QStateMachine* self, QEvent* event, int delay);
|
|
|
|
bool QStateMachine_CancelDelayedEvent(QStateMachine* self, int id);
|
|
|
|
bool QStateMachine_EventFilter(QStateMachine* self, QObject* watched, QEvent* event);
|
|
|
|
void QStateMachine_Start(QStateMachine* self);
|
|
|
|
void QStateMachine_Stop(QStateMachine* self);
|
|
|
|
void QStateMachine_SetRunning(QStateMachine* self, bool running);
|
|
|
|
void QStateMachine_RunningChanged(QStateMachine* self, bool running);
|
|
|
|
void QStateMachine_connect_RunningChanged(QStateMachine* self, void* slot);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QStateMachine_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QStateMachine_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QStateMachine_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QStateMachine_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QStateMachine_PostEvent2(QStateMachine* self, QEvent* event, uintptr_t priority);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QStateMachine_Delete(QStateMachine* self);
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QStateMachine__SignalEvent* QStateMachine__SignalEvent_new(QStateMachine__SignalEvent* param1);
|
|
|
|
QObject* QStateMachine__SignalEvent_Sender(QStateMachine__SignalEvent* self);
|
|
|
|
int QStateMachine__SignalEvent_SignalIndex(QStateMachine__SignalEvent* self);
|
|
|
|
void QStateMachine__SignalEvent_Delete(QStateMachine__SignalEvent* self);
|
|
|
|
|
|
|
|
QStateMachine__WrappedEvent* QStateMachine__WrappedEvent_new(QObject* object, QEvent* event);
|
|
|
|
QStateMachine__WrappedEvent* QStateMachine__WrappedEvent_new2(QStateMachine__WrappedEvent* param1);
|
|
|
|
QObject* QStateMachine__WrappedEvent_Object(QStateMachine__WrappedEvent* self);
|
|
|
|
QEvent* QStateMachine__WrappedEvent_Event(QStateMachine__WrappedEvent* self);
|
|
|
|
void QStateMachine__WrappedEvent_Delete(QStateMachine__WrappedEvent* self);
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|