mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
1151 lines
36 KiB
C++
1151 lines
36 KiB
C++
#include <QChildEvent>
|
|
#include <QEvent>
|
|
#include <QGesture>
|
|
#include <QGestureEvent>
|
|
#include <QList>
|
|
#include <QMetaMethod>
|
|
#include <QMetaObject>
|
|
#include <QObject>
|
|
#include <QPanGesture>
|
|
#include <QPinchGesture>
|
|
#include <QPointF>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <QSwipeGesture>
|
|
#include <QTapAndHoldGesture>
|
|
#include <QTapGesture>
|
|
#include <QTimerEvent>
|
|
#include <QWidget>
|
|
#include <qgesture.h>
|
|
#include "gen_qgesture.h"
|
|
#include "_cgo_export.h"
|
|
|
|
class MiqtVirtualQGesture : public virtual QGesture {
|
|
public:
|
|
|
|
MiqtVirtualQGesture(): QGesture() {};
|
|
MiqtVirtualQGesture(QObject* parent): QGesture(parent) {};
|
|
|
|
virtual ~MiqtVirtualQGesture() = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__Event = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool event(QEvent* event) override {
|
|
if (handle__Event == 0) {
|
|
return QGesture::event(event);
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QGesture_Event(this, handle__Event, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_Event(QEvent* event) {
|
|
|
|
return QGesture::event(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__EventFilter = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
if (handle__EventFilter == 0) {
|
|
return QGesture::eventFilter(watched, event);
|
|
}
|
|
|
|
QObject* sigval1 = watched;
|
|
QEvent* sigval2 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QGesture_EventFilter(this, handle__EventFilter, sigval1, sigval2);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_EventFilter(QObject* watched, QEvent* event) {
|
|
|
|
return QGesture::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__TimerEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
if (handle__TimerEvent == 0) {
|
|
QGesture::timerEvent(event);
|
|
return;
|
|
}
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGesture_TimerEvent(this, handle__TimerEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_TimerEvent(QTimerEvent* event) {
|
|
|
|
QGesture::timerEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__ChildEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
if (handle__ChildEvent == 0) {
|
|
QGesture::childEvent(event);
|
|
return;
|
|
}
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGesture_ChildEvent(this, handle__ChildEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_ChildEvent(QChildEvent* event) {
|
|
|
|
QGesture::childEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__CustomEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void customEvent(QEvent* event) override {
|
|
if (handle__CustomEvent == 0) {
|
|
QGesture::customEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGesture_CustomEvent(this, handle__CustomEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_CustomEvent(QEvent* event) {
|
|
|
|
QGesture::customEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__ConnectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
if (handle__ConnectNotify == 0) {
|
|
QGesture::connectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QGesture_ConnectNotify(this, handle__ConnectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_ConnectNotify(QMetaMethod* signal) {
|
|
|
|
QGesture::connectNotify(*signal);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__DisconnectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
if (handle__DisconnectNotify == 0) {
|
|
QGesture::disconnectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QGesture_DisconnectNotify(this, handle__DisconnectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_DisconnectNotify(QMetaMethod* signal) {
|
|
|
|
QGesture::disconnectNotify(*signal);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
void QGesture_new(QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
MiqtVirtualQGesture* ret = new MiqtVirtualQGesture();
|
|
*outptr_QGesture = ret;
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
void QGesture_new2(QObject* parent, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
MiqtVirtualQGesture* ret = new MiqtVirtualQGesture(parent);
|
|
*outptr_QGesture = ret;
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
QMetaObject* QGesture_MetaObject(const QGesture* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGesture_Metacast(QGesture* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QGesture_Tr(const char* s) {
|
|
QString _ret = QGesture::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGesture_TrUtf8(const char* s) {
|
|
QString _ret = QGesture::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
int QGesture_GestureType(const QGesture* self) {
|
|
Qt::GestureType _ret = self->gestureType();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int QGesture_State(const QGesture* self) {
|
|
Qt::GestureState _ret = self->state();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
QPointF* QGesture_HotSpot(const QGesture* self) {
|
|
return new QPointF(self->hotSpot());
|
|
}
|
|
|
|
void QGesture_SetHotSpot(QGesture* self, QPointF* value) {
|
|
self->setHotSpot(*value);
|
|
}
|
|
|
|
bool QGesture_HasHotSpot(const QGesture* self) {
|
|
return self->hasHotSpot();
|
|
}
|
|
|
|
void QGesture_UnsetHotSpot(QGesture* self) {
|
|
self->unsetHotSpot();
|
|
}
|
|
|
|
void QGesture_SetGestureCancelPolicy(QGesture* self, int policy) {
|
|
self->setGestureCancelPolicy(static_cast<QGesture::GestureCancelPolicy>(policy));
|
|
}
|
|
|
|
int QGesture_GestureCancelPolicy(const QGesture* self) {
|
|
QGesture::GestureCancelPolicy _ret = self->gestureCancelPolicy();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
struct miqt_string QGesture_Tr2(const char* s, const char* c) {
|
|
QString _ret = QGesture::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGesture_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGesture::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGesture_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QGesture::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGesture_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGesture::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QGesture_override_virtual_Event(void* self, intptr_t slot) {
|
|
dynamic_cast<MiqtVirtualQGesture*>( (QGesture*)(self) )->handle__Event = slot;
|
|
}
|
|
|
|
bool QGesture_virtualbase_Event(void* self, QEvent* event) {
|
|
return ( (MiqtVirtualQGesture*)(self) )->virtualbase_Event(event);
|
|
}
|
|
|
|
void QGesture_override_virtual_EventFilter(void* self, intptr_t slot) {
|
|
dynamic_cast<MiqtVirtualQGesture*>( (QGesture*)(self) )->handle__EventFilter = slot;
|
|
}
|
|
|
|
bool QGesture_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) {
|
|
return ( (MiqtVirtualQGesture*)(self) )->virtualbase_EventFilter(watched, event);
|
|
}
|
|
|
|
void QGesture_override_virtual_TimerEvent(void* self, intptr_t slot) {
|
|
dynamic_cast<MiqtVirtualQGesture*>( (QGesture*)(self) )->handle__TimerEvent = slot;
|
|
}
|
|
|
|
void QGesture_virtualbase_TimerEvent(void* self, QTimerEvent* event) {
|
|
( (MiqtVirtualQGesture*)(self) )->virtualbase_TimerEvent(event);
|
|
}
|
|
|
|
void QGesture_override_virtual_ChildEvent(void* self, intptr_t slot) {
|
|
dynamic_cast<MiqtVirtualQGesture*>( (QGesture*)(self) )->handle__ChildEvent = slot;
|
|
}
|
|
|
|
void QGesture_virtualbase_ChildEvent(void* self, QChildEvent* event) {
|
|
( (MiqtVirtualQGesture*)(self) )->virtualbase_ChildEvent(event);
|
|
}
|
|
|
|
void QGesture_override_virtual_CustomEvent(void* self, intptr_t slot) {
|
|
dynamic_cast<MiqtVirtualQGesture*>( (QGesture*)(self) )->handle__CustomEvent = slot;
|
|
}
|
|
|
|
void QGesture_virtualbase_CustomEvent(void* self, QEvent* event) {
|
|
( (MiqtVirtualQGesture*)(self) )->virtualbase_CustomEvent(event);
|
|
}
|
|
|
|
void QGesture_override_virtual_ConnectNotify(void* self, intptr_t slot) {
|
|
dynamic_cast<MiqtVirtualQGesture*>( (QGesture*)(self) )->handle__ConnectNotify = slot;
|
|
}
|
|
|
|
void QGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQGesture*)(self) )->virtualbase_ConnectNotify(signal);
|
|
}
|
|
|
|
void QGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot) {
|
|
dynamic_cast<MiqtVirtualQGesture*>( (QGesture*)(self) )->handle__DisconnectNotify = slot;
|
|
}
|
|
|
|
void QGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQGesture*)(self) )->virtualbase_DisconnectNotify(signal);
|
|
}
|
|
|
|
void QGesture_Delete(QGesture* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<MiqtVirtualQGesture*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QPanGesture_new(QPanGesture** outptr_QPanGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QPanGesture* ret = new QPanGesture();
|
|
*outptr_QPanGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
void QPanGesture_new2(QObject* parent, QPanGesture** outptr_QPanGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QPanGesture* ret = new QPanGesture(parent);
|
|
*outptr_QPanGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
QMetaObject* QPanGesture_MetaObject(const QPanGesture* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QPanGesture_Metacast(QPanGesture* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QPanGesture_Tr(const char* s) {
|
|
QString _ret = QPanGesture::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QPanGesture_TrUtf8(const char* s) {
|
|
QString _ret = QPanGesture::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
QPointF* QPanGesture_LastOffset(const QPanGesture* self) {
|
|
return new QPointF(self->lastOffset());
|
|
}
|
|
|
|
QPointF* QPanGesture_Offset(const QPanGesture* self) {
|
|
return new QPointF(self->offset());
|
|
}
|
|
|
|
QPointF* QPanGesture_Delta(const QPanGesture* self) {
|
|
return new QPointF(self->delta());
|
|
}
|
|
|
|
double QPanGesture_Acceleration(const QPanGesture* self) {
|
|
qreal _ret = self->acceleration();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QPanGesture_SetLastOffset(QPanGesture* self, QPointF* value) {
|
|
self->setLastOffset(*value);
|
|
}
|
|
|
|
void QPanGesture_SetOffset(QPanGesture* self, QPointF* value) {
|
|
self->setOffset(*value);
|
|
}
|
|
|
|
void QPanGesture_SetAcceleration(QPanGesture* self, double value) {
|
|
self->setAcceleration(static_cast<qreal>(value));
|
|
}
|
|
|
|
struct miqt_string QPanGesture_Tr2(const char* s, const char* c) {
|
|
QString _ret = QPanGesture::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QPanGesture_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QPanGesture::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QPanGesture_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QPanGesture::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QPanGesture_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QPanGesture::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QPanGesture_Delete(QPanGesture* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QPanGesture*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QPinchGesture_new(QPinchGesture** outptr_QPinchGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QPinchGesture* ret = new QPinchGesture();
|
|
*outptr_QPinchGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
void QPinchGesture_new2(QObject* parent, QPinchGesture** outptr_QPinchGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QPinchGesture* ret = new QPinchGesture(parent);
|
|
*outptr_QPinchGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
QMetaObject* QPinchGesture_MetaObject(const QPinchGesture* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QPinchGesture_Metacast(QPinchGesture* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QPinchGesture_Tr(const char* s) {
|
|
QString _ret = QPinchGesture::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QPinchGesture_TrUtf8(const char* s) {
|
|
QString _ret = QPinchGesture::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
int QPinchGesture_TotalChangeFlags(const QPinchGesture* self) {
|
|
QPinchGesture::ChangeFlags _ret = self->totalChangeFlags();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QPinchGesture_SetTotalChangeFlags(QPinchGesture* self, int value) {
|
|
self->setTotalChangeFlags(static_cast<QPinchGesture::ChangeFlags>(value));
|
|
}
|
|
|
|
int QPinchGesture_ChangeFlags(const QPinchGesture* self) {
|
|
QPinchGesture::ChangeFlags _ret = self->changeFlags();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QPinchGesture_SetChangeFlags(QPinchGesture* self, int value) {
|
|
self->setChangeFlags(static_cast<QPinchGesture::ChangeFlags>(value));
|
|
}
|
|
|
|
QPointF* QPinchGesture_StartCenterPoint(const QPinchGesture* self) {
|
|
return new QPointF(self->startCenterPoint());
|
|
}
|
|
|
|
QPointF* QPinchGesture_LastCenterPoint(const QPinchGesture* self) {
|
|
return new QPointF(self->lastCenterPoint());
|
|
}
|
|
|
|
QPointF* QPinchGesture_CenterPoint(const QPinchGesture* self) {
|
|
return new QPointF(self->centerPoint());
|
|
}
|
|
|
|
void QPinchGesture_SetStartCenterPoint(QPinchGesture* self, QPointF* value) {
|
|
self->setStartCenterPoint(*value);
|
|
}
|
|
|
|
void QPinchGesture_SetLastCenterPoint(QPinchGesture* self, QPointF* value) {
|
|
self->setLastCenterPoint(*value);
|
|
}
|
|
|
|
void QPinchGesture_SetCenterPoint(QPinchGesture* self, QPointF* value) {
|
|
self->setCenterPoint(*value);
|
|
}
|
|
|
|
double QPinchGesture_TotalScaleFactor(const QPinchGesture* self) {
|
|
qreal _ret = self->totalScaleFactor();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
double QPinchGesture_LastScaleFactor(const QPinchGesture* self) {
|
|
qreal _ret = self->lastScaleFactor();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
double QPinchGesture_ScaleFactor(const QPinchGesture* self) {
|
|
qreal _ret = self->scaleFactor();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QPinchGesture_SetTotalScaleFactor(QPinchGesture* self, double value) {
|
|
self->setTotalScaleFactor(static_cast<qreal>(value));
|
|
}
|
|
|
|
void QPinchGesture_SetLastScaleFactor(QPinchGesture* self, double value) {
|
|
self->setLastScaleFactor(static_cast<qreal>(value));
|
|
}
|
|
|
|
void QPinchGesture_SetScaleFactor(QPinchGesture* self, double value) {
|
|
self->setScaleFactor(static_cast<qreal>(value));
|
|
}
|
|
|
|
double QPinchGesture_TotalRotationAngle(const QPinchGesture* self) {
|
|
qreal _ret = self->totalRotationAngle();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
double QPinchGesture_LastRotationAngle(const QPinchGesture* self) {
|
|
qreal _ret = self->lastRotationAngle();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
double QPinchGesture_RotationAngle(const QPinchGesture* self) {
|
|
qreal _ret = self->rotationAngle();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QPinchGesture_SetTotalRotationAngle(QPinchGesture* self, double value) {
|
|
self->setTotalRotationAngle(static_cast<qreal>(value));
|
|
}
|
|
|
|
void QPinchGesture_SetLastRotationAngle(QPinchGesture* self, double value) {
|
|
self->setLastRotationAngle(static_cast<qreal>(value));
|
|
}
|
|
|
|
void QPinchGesture_SetRotationAngle(QPinchGesture* self, double value) {
|
|
self->setRotationAngle(static_cast<qreal>(value));
|
|
}
|
|
|
|
struct miqt_string QPinchGesture_Tr2(const char* s, const char* c) {
|
|
QString _ret = QPinchGesture::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QPinchGesture_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QPinchGesture::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QPinchGesture_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QPinchGesture::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QPinchGesture_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QPinchGesture::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QPinchGesture_Delete(QPinchGesture* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QPinchGesture*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QSwipeGesture_new(QSwipeGesture** outptr_QSwipeGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QSwipeGesture* ret = new QSwipeGesture();
|
|
*outptr_QSwipeGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
void QSwipeGesture_new2(QObject* parent, QSwipeGesture** outptr_QSwipeGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QSwipeGesture* ret = new QSwipeGesture(parent);
|
|
*outptr_QSwipeGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
QMetaObject* QSwipeGesture_MetaObject(const QSwipeGesture* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QSwipeGesture_Metacast(QSwipeGesture* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QSwipeGesture_Tr(const char* s) {
|
|
QString _ret = QSwipeGesture::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QSwipeGesture_TrUtf8(const char* s) {
|
|
QString _ret = QSwipeGesture::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
int QSwipeGesture_HorizontalDirection(const QSwipeGesture* self) {
|
|
QSwipeGesture::SwipeDirection _ret = self->horizontalDirection();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int QSwipeGesture_VerticalDirection(const QSwipeGesture* self) {
|
|
QSwipeGesture::SwipeDirection _ret = self->verticalDirection();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
double QSwipeGesture_SwipeAngle(const QSwipeGesture* self) {
|
|
qreal _ret = self->swipeAngle();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QSwipeGesture_SetSwipeAngle(QSwipeGesture* self, double value) {
|
|
self->setSwipeAngle(static_cast<qreal>(value));
|
|
}
|
|
|
|
struct miqt_string QSwipeGesture_Tr2(const char* s, const char* c) {
|
|
QString _ret = QSwipeGesture::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QSwipeGesture_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QSwipeGesture::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QSwipeGesture_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QSwipeGesture::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QSwipeGesture_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QSwipeGesture::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QSwipeGesture_Delete(QSwipeGesture* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QSwipeGesture*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QTapGesture_new(QTapGesture** outptr_QTapGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QTapGesture* ret = new QTapGesture();
|
|
*outptr_QTapGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
void QTapGesture_new2(QObject* parent, QTapGesture** outptr_QTapGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QTapGesture* ret = new QTapGesture(parent);
|
|
*outptr_QTapGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
QMetaObject* QTapGesture_MetaObject(const QTapGesture* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QTapGesture_Metacast(QTapGesture* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QTapGesture_Tr(const char* s) {
|
|
QString _ret = QTapGesture::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QTapGesture_TrUtf8(const char* s) {
|
|
QString _ret = QTapGesture::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
QPointF* QTapGesture_Position(const QTapGesture* self) {
|
|
return new QPointF(self->position());
|
|
}
|
|
|
|
void QTapGesture_SetPosition(QTapGesture* self, QPointF* pos) {
|
|
self->setPosition(*pos);
|
|
}
|
|
|
|
struct miqt_string QTapGesture_Tr2(const char* s, const char* c) {
|
|
QString _ret = QTapGesture::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QTapGesture_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QTapGesture::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QTapGesture_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QTapGesture::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QTapGesture_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QTapGesture::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QTapGesture_Delete(QTapGesture* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QTapGesture*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QTapAndHoldGesture_new(QTapAndHoldGesture** outptr_QTapAndHoldGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QTapAndHoldGesture* ret = new QTapAndHoldGesture();
|
|
*outptr_QTapAndHoldGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
void QTapAndHoldGesture_new2(QObject* parent, QTapAndHoldGesture** outptr_QTapAndHoldGesture, QGesture** outptr_QGesture, QObject** outptr_QObject) {
|
|
QTapAndHoldGesture* ret = new QTapAndHoldGesture(parent);
|
|
*outptr_QTapAndHoldGesture = ret;
|
|
*outptr_QGesture = static_cast<QGesture*>(ret);
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
}
|
|
|
|
QMetaObject* QTapAndHoldGesture_MetaObject(const QTapAndHoldGesture* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QTapAndHoldGesture_Metacast(QTapAndHoldGesture* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QTapAndHoldGesture_Tr(const char* s) {
|
|
QString _ret = QTapAndHoldGesture::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QTapAndHoldGesture_TrUtf8(const char* s) {
|
|
QString _ret = QTapAndHoldGesture::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
QPointF* QTapAndHoldGesture_Position(const QTapAndHoldGesture* self) {
|
|
return new QPointF(self->position());
|
|
}
|
|
|
|
void QTapAndHoldGesture_SetPosition(QTapAndHoldGesture* self, QPointF* pos) {
|
|
self->setPosition(*pos);
|
|
}
|
|
|
|
void QTapAndHoldGesture_SetTimeout(int msecs) {
|
|
QTapAndHoldGesture::setTimeout(static_cast<int>(msecs));
|
|
}
|
|
|
|
int QTapAndHoldGesture_Timeout() {
|
|
return QTapAndHoldGesture::timeout();
|
|
}
|
|
|
|
struct miqt_string QTapAndHoldGesture_Tr2(const char* s, const char* c) {
|
|
QString _ret = QTapAndHoldGesture::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QTapAndHoldGesture_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QTapAndHoldGesture::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QTapAndHoldGesture_TrUtf82(const char* s, const char* c) {
|
|
QString _ret = QTapAndHoldGesture::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QTapAndHoldGesture_TrUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QTapAndHoldGesture::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QTapAndHoldGesture*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures, QGestureEvent** outptr_QGestureEvent, QEvent** outptr_QEvent) {
|
|
QList<QGesture *> gestures_QList;
|
|
gestures_QList.reserve(gestures.len);
|
|
QGesture** gestures_arr = static_cast<QGesture**>(gestures.data);
|
|
for(size_t i = 0; i < gestures.len; ++i) {
|
|
gestures_QList.push_back(gestures_arr[i]);
|
|
}
|
|
QGestureEvent* ret = new QGestureEvent(gestures_QList);
|
|
*outptr_QGestureEvent = ret;
|
|
*outptr_QEvent = static_cast<QEvent*>(ret);
|
|
}
|
|
|
|
void QGestureEvent_new2(QGestureEvent* param1, QGestureEvent** outptr_QGestureEvent, QEvent** outptr_QEvent) {
|
|
QGestureEvent* ret = new QGestureEvent(*param1);
|
|
*outptr_QGestureEvent = ret;
|
|
*outptr_QEvent = static_cast<QEvent*>(ret);
|
|
}
|
|
|
|
struct miqt_array /* of QGesture* */ QGestureEvent_Gestures(const QGestureEvent* self) {
|
|
QList<QGesture *> _ret = self->gestures();
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QGesture** _arr = static_cast<QGesture**>(malloc(sizeof(QGesture*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
QGesture* QGestureEvent_Gesture(const QGestureEvent* self, int typeVal) {
|
|
return self->gesture(static_cast<Qt::GestureType>(typeVal));
|
|
}
|
|
|
|
struct miqt_array /* of QGesture* */ QGestureEvent_ActiveGestures(const QGestureEvent* self) {
|
|
QList<QGesture *> _ret = self->activeGestures();
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QGesture** _arr = static_cast<QGesture**>(malloc(sizeof(QGesture*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
struct miqt_array /* of QGesture* */ QGestureEvent_CanceledGestures(const QGestureEvent* self) {
|
|
QList<QGesture *> _ret = self->canceledGestures();
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QGesture** _arr = static_cast<QGesture**>(malloc(sizeof(QGesture*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
void QGestureEvent_SetAccepted(QGestureEvent* self, QGesture* param1, bool param2) {
|
|
self->setAccepted(param1, param2);
|
|
}
|
|
|
|
void QGestureEvent_Accept(QGestureEvent* self, QGesture* param1) {
|
|
self->accept(param1);
|
|
}
|
|
|
|
void QGestureEvent_Ignore(QGestureEvent* self, QGesture* param1) {
|
|
self->ignore(param1);
|
|
}
|
|
|
|
bool QGestureEvent_IsAccepted(const QGestureEvent* self, QGesture* param1) {
|
|
return self->isAccepted(param1);
|
|
}
|
|
|
|
void QGestureEvent_SetAccepted2(QGestureEvent* self, int param1, bool param2) {
|
|
self->setAccepted(static_cast<Qt::GestureType>(param1), param2);
|
|
}
|
|
|
|
void QGestureEvent_AcceptWithQtGestureType(QGestureEvent* self, int param1) {
|
|
self->accept(static_cast<Qt::GestureType>(param1));
|
|
}
|
|
|
|
void QGestureEvent_IgnoreWithQtGestureType(QGestureEvent* self, int param1) {
|
|
self->ignore(static_cast<Qt::GestureType>(param1));
|
|
}
|
|
|
|
bool QGestureEvent_IsAcceptedWithQtGestureType(const QGestureEvent* self, int param1) {
|
|
return self->isAccepted(static_cast<Qt::GestureType>(param1));
|
|
}
|
|
|
|
void QGestureEvent_SetWidget(QGestureEvent* self, QWidget* widget) {
|
|
self->setWidget(widget);
|
|
}
|
|
|
|
QWidget* QGestureEvent_Widget(const QGestureEvent* self) {
|
|
return self->widget();
|
|
}
|
|
|
|
QPointF* QGestureEvent_MapToGraphicsScene(const QGestureEvent* self, QPointF* gesturePoint) {
|
|
return new QPointF(self->mapToGraphicsScene(*gesturePoint));
|
|
}
|
|
|
|
void QGestureEvent_Delete(QGestureEvent* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QGestureEvent*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|