2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QTIMER_H
|
|
|
|
#define GEN_QTIMER_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#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);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QTimer_MetaObject(const QTimer* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QTimer_Metacast(QTimer* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimer_Tr(const char* s);
|
|
|
|
struct miqt_string QTimer_TrUtf8(const char* s);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTimer_IsActive(const QTimer* self);
|
|
|
|
int QTimer_TimerId(const QTimer* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTimer_SetInterval(QTimer* self, int msec);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QTimer_Interval(const QTimer* self);
|
|
|
|
int QTimer_RemainingTime(const QTimer* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QTimer_SetTimerType(QTimer* self, int atype);
|
|
|
|
int QTimer_TimerType(const QTimer* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTimer_SetSingleShot(QTimer* self, bool singleShot);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTimer_IsSingleShot(const QTimer* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTimer_Start(QTimer* self, int msec);
|
|
|
|
void QTimer_Start2(QTimer* self);
|
|
|
|
void QTimer_Stop(QTimer* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimer_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QTimer_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QTimer_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QTimer_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTimer_Delete(QTimer* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|