2024-08-29 07:01:51 +00:00
|
|
|
#include <QEvent>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QGesture>
|
|
|
|
#include <QGestureRecognizer>
|
|
|
|
#include <QObject>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qgesturerecognizer.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qgesturerecognizer.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
QGesture* QGestureRecognizer_Create(QGestureRecognizer* self, QObject* target) {
|
|
|
|
return self->create(target);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
int QGestureRecognizer_Recognize(QGestureRecognizer* self, QGesture* state, QObject* watched, QEvent* event) {
|
|
|
|
QGestureRecognizer::Result ret = self->recognize(state, watched, event);
|
|
|
|
return static_cast<int>(ret);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGestureRecognizer_Reset(QGestureRecognizer* self, QGesture* state) {
|
|
|
|
self->reset(state);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QGestureRecognizer_RegisterRecognizer(QGestureRecognizer* recognizer) {
|
|
|
|
Qt::GestureType ret = QGestureRecognizer::registerRecognizer(recognizer);
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGestureRecognizer_UnregisterRecognizer(uintptr_t typeVal) {
|
|
|
|
QGestureRecognizer::unregisterRecognizer(static_cast<Qt::GestureType>(typeVal));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGestureRecognizer_OperatorAssign(QGestureRecognizer* self, QGestureRecognizer* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGestureRecognizer_Delete(QGestureRecognizer* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|