2024-08-25 04:08:24 +00:00
|
|
|
#include <QBasicTimer>
|
|
|
|
#include <QObject>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qbasictimer.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qbasictimer.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QBasicTimer_new(QBasicTimer* param1, QBasicTimer** outptr_QBasicTimer) {
|
|
|
|
QBasicTimer* ret = new QBasicTimer(*param1);
|
|
|
|
*outptr_QBasicTimer = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QBasicTimer_new2(QBasicTimer** outptr_QBasicTimer) {
|
|
|
|
QBasicTimer* ret = new QBasicTimer();
|
|
|
|
*outptr_QBasicTimer = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_OperatorAssign(QBasicTimer* self, QBasicTimer* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Swap(QBasicTimer* self, QBasicTimer* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QBasicTimer_IsActive(const QBasicTimer* self) {
|
|
|
|
return self->isActive();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QBasicTimer_TimerId(const QBasicTimer* self) {
|
|
|
|
return self->timerId();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Start(QBasicTimer* self, int msec, QObject* obj) {
|
|
|
|
self->start(static_cast<int>(msec), obj);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QBasicTimer_Start2(QBasicTimer* self, int msec, int timerType, QObject* obj) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->start(static_cast<int>(msec), static_cast<Qt::TimerType>(timerType), obj);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
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-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|