miqt/qt/gen_qbasictimer.cpp

55 lines
1.1 KiB
C++
Raw Normal View History

#include <QBasicTimer>
#include <QObject>
#include <qbasictimer.h>
2024-08-29 07:01:51 +00:00
#include "gen_qbasictimer.h"
#ifndef _Bool
#define _Bool bool
#endif
#include "_cgo_export.h"
2024-12-07 04:15:57 +00:00
QBasicTimer* QBasicTimer_new(QBasicTimer* param1) {
return new QBasicTimer(*param1);
}
2024-12-07 04:15:57 +00:00
QBasicTimer* QBasicTimer_new2() {
return new QBasicTimer();
}
void QBasicTimer_OperatorAssign(QBasicTimer* self, QBasicTimer* param1) {
self->operator=(*param1);
}
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) {
2024-08-29 07:01:51 +00:00
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;
}
}