mirror of
https://github.com/mappu/miqt.git
synced 2025-01-03 14:18:37 +00:00
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#ifndef GEN_QTIMER_H
|
|
#define GEN_QTIMER_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QMetaObject;
|
|
class QObject;
|
|
class QTimer;
|
|
#else
|
|
typedef struct QMetaObject QMetaObject;
|
|
typedef struct QObject QObject;
|
|
typedef struct QTimer QTimer;
|
|
#endif
|
|
|
|
QTimer* QTimer_new();
|
|
QTimer* QTimer_new2(QObject* parent);
|
|
QMetaObject* QTimer_MetaObject(QTimer* self);
|
|
void QTimer_Tr(char* s, char** _out, int* _out_Strlen);
|
|
void QTimer_TrUtf8(char* s, char** _out, int* _out_Strlen);
|
|
bool QTimer_IsActive(QTimer* self);
|
|
int QTimer_TimerId(QTimer* self);
|
|
void QTimer_SetInterval(QTimer* self, int msec);
|
|
int QTimer_Interval(QTimer* self);
|
|
int QTimer_RemainingTime(QTimer* self);
|
|
void QTimer_SetSingleShot(QTimer* self, bool singleShot);
|
|
bool QTimer_IsSingleShot(QTimer* self);
|
|
void QTimer_Start(QTimer* self, int msec);
|
|
void QTimer_Start2(QTimer* self);
|
|
void QTimer_Stop(QTimer* self);
|
|
void QTimer_Tr2(char* s, char* c, char** _out, int* _out_Strlen);
|
|
void QTimer_Tr3(char* s, char* c, int n, char** _out, int* _out_Strlen);
|
|
void QTimer_TrUtf82(char* s, char* c, char** _out, int* _out_Strlen);
|
|
void QTimer_TrUtf83(char* s, char* c, int n, char** _out, int* _out_Strlen);
|
|
void QTimer_Delete(QTimer* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|