2024-08-25 16:08:24 +12:00
|
|
|
#include <QBasicTimer>
|
|
|
|
#include <QObject>
|
2024-10-16 18:07:56 +13:00
|
|
|
#include <qbasictimer.h>
|
2024-08-29 19:01:51 +12:00
|
|
|
#include "gen_qbasictimer.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-08-25 16:08:24 +12:00
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QBasicTimer* QBasicTimer_new(QBasicTimer* param1) {
|
|
|
|
return new QBasicTimer(*param1);
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QBasicTimer* QBasicTimer_new2() {
|
|
|
|
return new QBasicTimer();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_OperatorAssign(QBasicTimer* self, QBasicTimer* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Swap(QBasicTimer* self, QBasicTimer* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
bool QBasicTimer_IsActive(const QBasicTimer* self) {
|
|
|
|
return self->isActive();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QBasicTimer_TimerId(const QBasicTimer* self) {
|
|
|
|
return self->timerId();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Start(QBasicTimer* self, int msec, QObject* obj) {
|
|
|
|
self->start(static_cast<int>(msec), obj);
|
|
|
|
}
|
|
|
|
|
2024-09-18 12:12:02 +12:00
|
|
|
void QBasicTimer_Start2(QBasicTimer* self, int msec, int timerType, QObject* obj) {
|
2024-08-29 19:01:51 +12:00
|
|
|
self->start(static_cast<int>(msec), static_cast<Qt::TimerType>(timerType), obj);
|
|
|
|
}
|
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
void QBasicTimer_Stop(QBasicTimer* self) {
|
|
|
|
self->stop();
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
void QBasicTimer_Delete(QBasicTimer* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QBasicTimer*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|