miqt/qt/gen_qgesturerecognizer.cpp

39 lines
1.1 KiB
C++
Raw Normal View History

2024-08-29 07:01:51 +00:00
#include <QEvent>
#include <QGesture>
#include <QGestureRecognizer>
#include <QObject>
#include <qgesturerecognizer.h>
2024-08-29 07:01:51 +00:00
#include "gen_qgesturerecognizer.h"
#include "_cgo_export.h"
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-29 07:01:51 +00:00
}
void QGestureRecognizer_Reset(QGestureRecognizer* self, QGesture* state) {
self->reset(state);
}
int QGestureRecognizer_RegisterRecognizer(QGestureRecognizer* recognizer) {
Qt::GestureType _ret = QGestureRecognizer::registerRecognizer(recognizer);
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
void QGestureRecognizer_UnregisterRecognizer(int typeVal) {
2024-08-29 07:01:51 +00:00
QGestureRecognizer::unregisterRecognizer(static_cast<Qt::GestureType>(typeVal));
}
void QGestureRecognizer_OperatorAssign(QGestureRecognizer* self, QGestureRecognizer* param1) {
self->operator=(*param1);
}
void QGestureRecognizer_Delete(QGestureRecognizer* self) {
delete self;
}