mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
64 lines
2.2 KiB
C++
64 lines
2.2 KiB
C++
#ifndef GEN_QSTATE_H
|
|
#define GEN_QSTATE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#include "binding.h"
|
|
|
|
#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();
|
|
QState* QState_new2(uintptr_t childMode);
|
|
QState* QState_new3(QState* parent);
|
|
QState* QState_new4(uintptr_t childMode, QState* parent);
|
|
QMetaObject* QState_MetaObject(const QState* self);
|
|
struct miqt_string* QState_Tr(const char* s);
|
|
struct miqt_string* QState_TrUtf8(const char* s);
|
|
QAbstractState* QState_ErrorState(const QState* self);
|
|
void QState_SetErrorState(QState* self, QAbstractState* state);
|
|
void QState_AddTransition(QState* self, QAbstractTransition* transition);
|
|
QSignalTransition* QState_AddTransition2(QState* self, QObject* sender, const char* signal, QAbstractState* target);
|
|
QAbstractTransition* QState_AddTransitionWithTarget(QState* self, QAbstractState* target);
|
|
void QState_RemoveTransition(QState* self, QAbstractTransition* transition);
|
|
struct miqt_array* QState_Transitions(const QState* self);
|
|
QAbstractState* QState_InitialState(const QState* self);
|
|
void QState_SetInitialState(QState* self, QAbstractState* state);
|
|
uintptr_t QState_ChildMode(const QState* self);
|
|
void QState_SetChildMode(QState* self, uintptr_t mode);
|
|
void QState_AssignProperty(QState* self, QObject* object, const char* name, QVariant* value);
|
|
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);
|
|
void QState_Delete(QState* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|