2024-10-20 05:21:03 +00:00
|
|
|
#include <QBasicTimer>
|
|
|
|
#include <QObject>
|
|
|
|
#include <qbasictimer.h>
|
|
|
|
#include "gen_qbasictimer.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-10-20 05:21:03 +00:00
|
|
|
#include "_cgo_export.h"
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QBasicTimer* QBasicTimer_new() {
|
|
|
|
return new QBasicTimer();
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Swap(QBasicTimer* self, QBasicTimer* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QBasicTimer_IsActive(const QBasicTimer* self) {
|
|
|
|
return self->isActive();
|
|
|
|
}
|
|
|
|
|
|
|
|
int QBasicTimer_TimerId(const QBasicTimer* self) {
|
|
|
|
return self->timerId();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Start(QBasicTimer* self, int msec, QObject* obj) {
|
|
|
|
self->start(static_cast<int>(msec), obj);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Start2(QBasicTimer* self, int msec, int timerType, QObject* obj) {
|
|
|
|
self->start(static_cast<int>(msec), static_cast<Qt::TimerType>(timerType), obj);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Stop(QBasicTimer* self) {
|
|
|
|
self->stop();
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QBasicTimer_Delete(QBasicTimer* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QBasicTimer*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|