mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
65 lines
2.2 KiB
C++
65 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 "../libmiqt/libmiqt.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(int childMode);
|
|
QState* QState_new3(QState* parent);
|
|
QState* QState_new4(int childMode, QState* parent);
|
|
QMetaObject* QState_MetaObject(const QState* self);
|
|
void* QState_Metacast(QState* self, const char* param1);
|
|
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);
|
|
int QState_ChildMode(const QState* self);
|
|
void QState_SetChildMode(QState* self, int 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
|