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-10-16 05:07:56 +00:00
|
|
|
#include <qgesturerecognizer.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qgesturerecognizer.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
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) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QGestureRecognizer::Result _ret = self->recognize(state, watched, event);
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGestureRecognizer_Reset(QGestureRecognizer* self, QGesture* state) {
|
|
|
|
self->reset(state);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QGestureRecognizer_RegisterRecognizer(QGestureRecognizer* recognizer) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::GestureType _ret = QGestureRecognizer::registerRecognizer(recognizer);
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QGestureRecognizer_UnregisterRecognizer(int typeVal) {
|
2024-08-29 07:01:51 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|