2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QSTATE_H
|
|
|
|
#define GEN_QSTATE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QAbstractState;
|
|
|
|
class QAbstractTransition;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QSignalTransition;
|
|
|
|
class QState;
|
|
|
|
class QVariant;
|
|
|
|
#else
|
|
|
|
typedef struct QAbstractState QAbstractState;
|
|
|
|
typedef struct QAbstractTransition QAbstractTransition;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QSignalTransition QSignalTransition;
|
|
|
|
typedef struct QState QState;
|
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QState* QState_new();
|
2024-09-18 00:12:02 +00:00
|
|
|
QState* QState_new2(int childMode);
|
2024-08-29 07:01:51 +00:00
|
|
|
QState* QState_new3(QState* parent);
|
2024-09-18 00:12:02 +00:00
|
|
|
QState* QState_new4(int childMode, QState* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QState_MetaObject(const QState* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QState_Tr(const char* s);
|
|
|
|
struct miqt_string* QState_TrUtf8(const char* s);
|
2024-09-11 05:41:09 +00:00
|
|
|
QAbstractState* QState_ErrorState(const QState* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QState_SetErrorState(QState* self, QAbstractState* state);
|
|
|
|
void QState_AddTransition(QState* self, QAbstractTransition* transition);
|
2024-08-29 07:01:51 +00:00
|
|
|
QSignalTransition* QState_AddTransition2(QState* self, QObject* sender, const char* signal, QAbstractState* target);
|
2024-08-25 04:08:24 +00:00
|
|
|
QAbstractTransition* QState_AddTransitionWithTarget(QState* self, QAbstractState* target);
|
|
|
|
void QState_RemoveTransition(QState* self, QAbstractTransition* transition);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QState_Transitions(const QState* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
QAbstractState* QState_InitialState(const QState* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QState_SetInitialState(QState* self, QAbstractState* state);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QState_ChildMode(const QState* self);
|
|
|
|
void QState_SetChildMode(QState* self, int mode);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QState_AssignProperty(QState* self, QObject* object, const char* name, QVariant* value);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QState_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QState_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QState_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QState_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QState_Delete(QState* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|