mirror of
https://github.com/mappu/miqt.git
synced 2025-01-03 14:18:37 +00:00
48 lines
913 B
C++
48 lines
913 B
C++
|
#include "gen_qbasictimer.h"
|
||
|
#include "qbasictimer.h"
|
||
|
|
||
|
#include <QBasicTimer>
|
||
|
#include <QObject>
|
||
|
|
||
|
|
||
|
extern "C" {
|
||
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
||
|
}
|
||
|
|
||
|
QBasicTimer* QBasicTimer_new(QBasicTimer* param1) {
|
||
|
return new QBasicTimer(*param1);
|
||
|
}
|
||
|
|
||
|
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(QBasicTimer* self) {
|
||
|
return self->isActive();
|
||
|
}
|
||
|
|
||
|
int QBasicTimer_TimerId(QBasicTimer* self) {
|
||
|
return self->timerId();
|
||
|
}
|
||
|
|
||
|
void QBasicTimer_Start(QBasicTimer* self, int msec, QObject* obj) {
|
||
|
self->start(static_cast<int>(msec), obj);
|
||
|
}
|
||
|
|
||
|
void QBasicTimer_Stop(QBasicTimer* self) {
|
||
|
self->stop();
|
||
|
}
|
||
|
|
||
|
void QBasicTimer_Delete(QBasicTimer* self) {
|
||
|
delete self;
|
||
|
}
|
||
|
|