miqt/qt6/gen_qbasictimer.cpp
2024-10-21 19:10:31 +13:00

39 lines
839 B
C++

#include <QBasicTimer>
#include <QObject>
#include <qbasictimer.h>
#include "gen_qbasictimer.h"
#include "_cgo_export.h"
QBasicTimer* QBasicTimer_new() {
return new QBasicTimer();
}
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();
}
void QBasicTimer_Delete(QBasicTimer* self) {
delete self;
}