#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qgesture.h" #ifdef __cplusplus extern "C" { #endif bool miqt_exec_callback_QGesture_Event(void*, intptr_t, QEvent*); bool miqt_exec_callback_QGesture_EventFilter(void*, intptr_t, QObject*, QEvent*); void miqt_exec_callback_QGesture_TimerEvent(void*, intptr_t, QTimerEvent*); void miqt_exec_callback_QGesture_ChildEvent(void*, intptr_t, QChildEvent*); void miqt_exec_callback_QGesture_CustomEvent(void*, intptr_t, QEvent*); void miqt_exec_callback_QGesture_ConnectNotify(void*, intptr_t, QMetaMethod*); void miqt_exec_callback_QGesture_DisconnectNotify(void*, intptr_t, QMetaMethod*); bool miqt_exec_callback_QPanGesture_Event(void*, intptr_t, QEvent*); bool miqt_exec_callback_QPanGesture_EventFilter(void*, intptr_t, QObject*, QEvent*); void miqt_exec_callback_QPanGesture_TimerEvent(void*, intptr_t, QTimerEvent*); void miqt_exec_callback_QPanGesture_ChildEvent(void*, intptr_t, QChildEvent*); void miqt_exec_callback_QPanGesture_CustomEvent(void*, intptr_t, QEvent*); void miqt_exec_callback_QPanGesture_ConnectNotify(void*, intptr_t, QMetaMethod*); void miqt_exec_callback_QPanGesture_DisconnectNotify(void*, intptr_t, QMetaMethod*); bool miqt_exec_callback_QPinchGesture_Event(void*, intptr_t, QEvent*); bool miqt_exec_callback_QPinchGesture_EventFilter(void*, intptr_t, QObject*, QEvent*); void miqt_exec_callback_QPinchGesture_TimerEvent(void*, intptr_t, QTimerEvent*); void miqt_exec_callback_QPinchGesture_ChildEvent(void*, intptr_t, QChildEvent*); void miqt_exec_callback_QPinchGesture_CustomEvent(void*, intptr_t, QEvent*); void miqt_exec_callback_QPinchGesture_ConnectNotify(void*, intptr_t, QMetaMethod*); void miqt_exec_callback_QPinchGesture_DisconnectNotify(void*, intptr_t, QMetaMethod*); bool miqt_exec_callback_QSwipeGesture_Event(void*, intptr_t, QEvent*); bool miqt_exec_callback_QSwipeGesture_EventFilter(void*, intptr_t, QObject*, QEvent*); void miqt_exec_callback_QSwipeGesture_TimerEvent(void*, intptr_t, QTimerEvent*); void miqt_exec_callback_QSwipeGesture_ChildEvent(void*, intptr_t, QChildEvent*); void miqt_exec_callback_QSwipeGesture_CustomEvent(void*, intptr_t, QEvent*); void miqt_exec_callback_QSwipeGesture_ConnectNotify(void*, intptr_t, QMetaMethod*); void miqt_exec_callback_QSwipeGesture_DisconnectNotify(void*, intptr_t, QMetaMethod*); bool miqt_exec_callback_QTapGesture_Event(void*, intptr_t, QEvent*); bool miqt_exec_callback_QTapGesture_EventFilter(void*, intptr_t, QObject*, QEvent*); void miqt_exec_callback_QTapGesture_TimerEvent(void*, intptr_t, QTimerEvent*); void miqt_exec_callback_QTapGesture_ChildEvent(void*, intptr_t, QChildEvent*); void miqt_exec_callback_QTapGesture_CustomEvent(void*, intptr_t, QEvent*); void miqt_exec_callback_QTapGesture_ConnectNotify(void*, intptr_t, QMetaMethod*); void miqt_exec_callback_QTapGesture_DisconnectNotify(void*, intptr_t, QMetaMethod*); bool miqt_exec_callback_QTapAndHoldGesture_Event(void*, intptr_t, QEvent*); bool miqt_exec_callback_QTapAndHoldGesture_EventFilter(void*, intptr_t, QObject*, QEvent*); void miqt_exec_callback_QTapAndHoldGesture_TimerEvent(void*, intptr_t, QTimerEvent*); void miqt_exec_callback_QTapAndHoldGesture_ChildEvent(void*, intptr_t, QChildEvent*); void miqt_exec_callback_QTapAndHoldGesture_CustomEvent(void*, intptr_t, QEvent*); void miqt_exec_callback_QTapAndHoldGesture_ConnectNotify(void*, intptr_t, QMetaMethod*); void miqt_exec_callback_QTapAndHoldGesture_DisconnectNotify(void*, intptr_t, QMetaMethod*); void miqt_exec_callback_QGestureEvent_SetAccepted(void*, intptr_t, bool); QEvent* miqt_exec_callback_QGestureEvent_Clone(void*, intptr_t); #ifdef __cplusplus } /* extern C */ #endif class MiqtVirtualQGesture final : public QGesture { public: MiqtVirtualQGesture(): QGesture() {}; MiqtVirtualQGesture(QObject* parent): QGesture(parent) {}; virtual ~MiqtVirtualQGesture() override = 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(&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(&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); } }; QGesture* QGesture_new() { return new MiqtVirtualQGesture(); } QGesture* QGesture_new2(QObject* parent) { return new MiqtVirtualQGesture(parent); } void QGesture_virtbase(QGesture* src, QObject** outptr_QObject) { *outptr_QObject = static_cast(src); } 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(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(_ret); } int QGesture_State(const QGesture* self) { Qt::GestureState _ret = self->state(); return static_cast(_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(policy)); } int QGesture_GestureCancelPolicy(const QGesture* self) { QGesture::GestureCancelPolicy _ret = self->gestureCancelPolicy(); return static_cast(_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(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(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } bool QGesture_override_virtual_Event(void* self, intptr_t slot) { MiqtVirtualQGesture* self_cast = dynamic_cast( (QGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__Event = slot; return true; } bool QGesture_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQGesture*)(self) )->virtualbase_Event(event); } bool QGesture_override_virtual_EventFilter(void* self, intptr_t slot) { MiqtVirtualQGesture* self_cast = dynamic_cast( (QGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__EventFilter = slot; return true; } bool QGesture_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQGesture*)(self) )->virtualbase_EventFilter(watched, event); } bool QGesture_override_virtual_TimerEvent(void* self, intptr_t slot) { MiqtVirtualQGesture* self_cast = dynamic_cast( (QGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__TimerEvent = slot; return true; } void QGesture_virtualbase_TimerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQGesture*)(self) )->virtualbase_TimerEvent(event); } bool QGesture_override_virtual_ChildEvent(void* self, intptr_t slot) { MiqtVirtualQGesture* self_cast = dynamic_cast( (QGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ChildEvent = slot; return true; } void QGesture_virtualbase_ChildEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQGesture*)(self) )->virtualbase_ChildEvent(event); } bool QGesture_override_virtual_CustomEvent(void* self, intptr_t slot) { MiqtVirtualQGesture* self_cast = dynamic_cast( (QGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__CustomEvent = slot; return true; } void QGesture_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQGesture*)(self) )->virtualbase_CustomEvent(event); } bool QGesture_override_virtual_ConnectNotify(void* self, intptr_t slot) { MiqtVirtualQGesture* self_cast = dynamic_cast( (QGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ConnectNotify = slot; return true; } void QGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQGesture*)(self) )->virtualbase_ConnectNotify(signal); } bool QGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot) { MiqtVirtualQGesture* self_cast = dynamic_cast( (QGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__DisconnectNotify = slot; return true; } void QGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQGesture*)(self) )->virtualbase_DisconnectNotify(signal); } void QGesture_Delete(QGesture* self) { delete self; } class MiqtVirtualQPanGesture final : public QPanGesture { public: MiqtVirtualQPanGesture(): QPanGesture() {}; MiqtVirtualQPanGesture(QObject* parent): QPanGesture(parent) {}; virtual ~MiqtVirtualQPanGesture() override = 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 QPanGesture::event(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QPanGesture_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* event) { return QPanGesture::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 QPanGesture::eventFilter(watched, event); } QObject* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QPanGesture_EventFilter(this, handle__EventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_EventFilter(QObject* watched, QEvent* event) { return QPanGesture::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) { QPanGesture::timerEvent(event); return; } QTimerEvent* sigval1 = event; miqt_exec_callback_QPanGesture_TimerEvent(this, handle__TimerEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_TimerEvent(QTimerEvent* event) { QPanGesture::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) { QPanGesture::childEvent(event); return; } QChildEvent* sigval1 = event; miqt_exec_callback_QPanGesture_ChildEvent(this, handle__ChildEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ChildEvent(QChildEvent* event) { QPanGesture::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) { QPanGesture::customEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QPanGesture_CustomEvent(this, handle__CustomEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_CustomEvent(QEvent* event) { QPanGesture::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) { QPanGesture::connectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QPanGesture_ConnectNotify(this, handle__ConnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_ConnectNotify(QMetaMethod* signal) { QPanGesture::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) { QPanGesture::disconnectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QPanGesture_DisconnectNotify(this, handle__DisconnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_DisconnectNotify(QMetaMethod* signal) { QPanGesture::disconnectNotify(*signal); } }; QPanGesture* QPanGesture_new() { return new MiqtVirtualQPanGesture(); } QPanGesture* QPanGesture_new2(QObject* parent) { return new MiqtVirtualQPanGesture(parent); } void QPanGesture_virtbase(QPanGesture* src, QGesture** outptr_QGesture) { *outptr_QGesture = static_cast(src); } 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(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(_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(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(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(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } bool QPanGesture_override_virtual_Event(void* self, intptr_t slot) { MiqtVirtualQPanGesture* self_cast = dynamic_cast( (QPanGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__Event = slot; return true; } bool QPanGesture_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQPanGesture*)(self) )->virtualbase_Event(event); } bool QPanGesture_override_virtual_EventFilter(void* self, intptr_t slot) { MiqtVirtualQPanGesture* self_cast = dynamic_cast( (QPanGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__EventFilter = slot; return true; } bool QPanGesture_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQPanGesture*)(self) )->virtualbase_EventFilter(watched, event); } bool QPanGesture_override_virtual_TimerEvent(void* self, intptr_t slot) { MiqtVirtualQPanGesture* self_cast = dynamic_cast( (QPanGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__TimerEvent = slot; return true; } void QPanGesture_virtualbase_TimerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQPanGesture*)(self) )->virtualbase_TimerEvent(event); } bool QPanGesture_override_virtual_ChildEvent(void* self, intptr_t slot) { MiqtVirtualQPanGesture* self_cast = dynamic_cast( (QPanGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ChildEvent = slot; return true; } void QPanGesture_virtualbase_ChildEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQPanGesture*)(self) )->virtualbase_ChildEvent(event); } bool QPanGesture_override_virtual_CustomEvent(void* self, intptr_t slot) { MiqtVirtualQPanGesture* self_cast = dynamic_cast( (QPanGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__CustomEvent = slot; return true; } void QPanGesture_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQPanGesture*)(self) )->virtualbase_CustomEvent(event); } bool QPanGesture_override_virtual_ConnectNotify(void* self, intptr_t slot) { MiqtVirtualQPanGesture* self_cast = dynamic_cast( (QPanGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ConnectNotify = slot; return true; } void QPanGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQPanGesture*)(self) )->virtualbase_ConnectNotify(signal); } bool QPanGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot) { MiqtVirtualQPanGesture* self_cast = dynamic_cast( (QPanGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__DisconnectNotify = slot; return true; } void QPanGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQPanGesture*)(self) )->virtualbase_DisconnectNotify(signal); } void QPanGesture_Delete(QPanGesture* self) { delete self; } class MiqtVirtualQPinchGesture final : public QPinchGesture { public: MiqtVirtualQPinchGesture(): QPinchGesture() {}; MiqtVirtualQPinchGesture(QObject* parent): QPinchGesture(parent) {}; virtual ~MiqtVirtualQPinchGesture() override = 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 QPinchGesture::event(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QPinchGesture_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* event) { return QPinchGesture::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 QPinchGesture::eventFilter(watched, event); } QObject* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QPinchGesture_EventFilter(this, handle__EventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_EventFilter(QObject* watched, QEvent* event) { return QPinchGesture::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) { QPinchGesture::timerEvent(event); return; } QTimerEvent* sigval1 = event; miqt_exec_callback_QPinchGesture_TimerEvent(this, handle__TimerEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_TimerEvent(QTimerEvent* event) { QPinchGesture::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) { QPinchGesture::childEvent(event); return; } QChildEvent* sigval1 = event; miqt_exec_callback_QPinchGesture_ChildEvent(this, handle__ChildEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ChildEvent(QChildEvent* event) { QPinchGesture::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) { QPinchGesture::customEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QPinchGesture_CustomEvent(this, handle__CustomEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_CustomEvent(QEvent* event) { QPinchGesture::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) { QPinchGesture::connectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QPinchGesture_ConnectNotify(this, handle__ConnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_ConnectNotify(QMetaMethod* signal) { QPinchGesture::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) { QPinchGesture::disconnectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QPinchGesture_DisconnectNotify(this, handle__DisconnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_DisconnectNotify(QMetaMethod* signal) { QPinchGesture::disconnectNotify(*signal); } }; QPinchGesture* QPinchGesture_new() { return new MiqtVirtualQPinchGesture(); } QPinchGesture* QPinchGesture_new2(QObject* parent) { return new MiqtVirtualQPinchGesture(parent); } void QPinchGesture_virtbase(QPinchGesture* src, QGesture** outptr_QGesture) { *outptr_QGesture = static_cast(src); } 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(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(_ret); } void QPinchGesture_SetTotalChangeFlags(QPinchGesture* self, int value) { self->setTotalChangeFlags(static_cast(value)); } int QPinchGesture_ChangeFlags(const QPinchGesture* self) { QPinchGesture::ChangeFlags _ret = self->changeFlags(); return static_cast(_ret); } void QPinchGesture_SetChangeFlags(QPinchGesture* self, int value) { self->setChangeFlags(static_cast(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(_ret); } double QPinchGesture_LastScaleFactor(const QPinchGesture* self) { qreal _ret = self->lastScaleFactor(); return static_cast(_ret); } double QPinchGesture_ScaleFactor(const QPinchGesture* self) { qreal _ret = self->scaleFactor(); return static_cast(_ret); } void QPinchGesture_SetTotalScaleFactor(QPinchGesture* self, double value) { self->setTotalScaleFactor(static_cast(value)); } void QPinchGesture_SetLastScaleFactor(QPinchGesture* self, double value) { self->setLastScaleFactor(static_cast(value)); } void QPinchGesture_SetScaleFactor(QPinchGesture* self, double value) { self->setScaleFactor(static_cast(value)); } double QPinchGesture_TotalRotationAngle(const QPinchGesture* self) { qreal _ret = self->totalRotationAngle(); return static_cast(_ret); } double QPinchGesture_LastRotationAngle(const QPinchGesture* self) { qreal _ret = self->lastRotationAngle(); return static_cast(_ret); } double QPinchGesture_RotationAngle(const QPinchGesture* self) { qreal _ret = self->rotationAngle(); return static_cast(_ret); } void QPinchGesture_SetTotalRotationAngle(QPinchGesture* self, double value) { self->setTotalRotationAngle(static_cast(value)); } void QPinchGesture_SetLastRotationAngle(QPinchGesture* self, double value) { self->setLastRotationAngle(static_cast(value)); } void QPinchGesture_SetRotationAngle(QPinchGesture* self, double value) { self->setRotationAngle(static_cast(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(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(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } bool QPinchGesture_override_virtual_Event(void* self, intptr_t slot) { MiqtVirtualQPinchGesture* self_cast = dynamic_cast( (QPinchGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__Event = slot; return true; } bool QPinchGesture_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQPinchGesture*)(self) )->virtualbase_Event(event); } bool QPinchGesture_override_virtual_EventFilter(void* self, intptr_t slot) { MiqtVirtualQPinchGesture* self_cast = dynamic_cast( (QPinchGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__EventFilter = slot; return true; } bool QPinchGesture_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQPinchGesture*)(self) )->virtualbase_EventFilter(watched, event); } bool QPinchGesture_override_virtual_TimerEvent(void* self, intptr_t slot) { MiqtVirtualQPinchGesture* self_cast = dynamic_cast( (QPinchGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__TimerEvent = slot; return true; } void QPinchGesture_virtualbase_TimerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQPinchGesture*)(self) )->virtualbase_TimerEvent(event); } bool QPinchGesture_override_virtual_ChildEvent(void* self, intptr_t slot) { MiqtVirtualQPinchGesture* self_cast = dynamic_cast( (QPinchGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ChildEvent = slot; return true; } void QPinchGesture_virtualbase_ChildEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQPinchGesture*)(self) )->virtualbase_ChildEvent(event); } bool QPinchGesture_override_virtual_CustomEvent(void* self, intptr_t slot) { MiqtVirtualQPinchGesture* self_cast = dynamic_cast( (QPinchGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__CustomEvent = slot; return true; } void QPinchGesture_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQPinchGesture*)(self) )->virtualbase_CustomEvent(event); } bool QPinchGesture_override_virtual_ConnectNotify(void* self, intptr_t slot) { MiqtVirtualQPinchGesture* self_cast = dynamic_cast( (QPinchGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ConnectNotify = slot; return true; } void QPinchGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQPinchGesture*)(self) )->virtualbase_ConnectNotify(signal); } bool QPinchGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot) { MiqtVirtualQPinchGesture* self_cast = dynamic_cast( (QPinchGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__DisconnectNotify = slot; return true; } void QPinchGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQPinchGesture*)(self) )->virtualbase_DisconnectNotify(signal); } void QPinchGesture_Delete(QPinchGesture* self) { delete self; } class MiqtVirtualQSwipeGesture final : public QSwipeGesture { public: MiqtVirtualQSwipeGesture(): QSwipeGesture() {}; MiqtVirtualQSwipeGesture(QObject* parent): QSwipeGesture(parent) {}; virtual ~MiqtVirtualQSwipeGesture() override = 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 QSwipeGesture::event(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QSwipeGesture_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* event) { return QSwipeGesture::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 QSwipeGesture::eventFilter(watched, event); } QObject* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QSwipeGesture_EventFilter(this, handle__EventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_EventFilter(QObject* watched, QEvent* event) { return QSwipeGesture::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) { QSwipeGesture::timerEvent(event); return; } QTimerEvent* sigval1 = event; miqt_exec_callback_QSwipeGesture_TimerEvent(this, handle__TimerEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_TimerEvent(QTimerEvent* event) { QSwipeGesture::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) { QSwipeGesture::childEvent(event); return; } QChildEvent* sigval1 = event; miqt_exec_callback_QSwipeGesture_ChildEvent(this, handle__ChildEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ChildEvent(QChildEvent* event) { QSwipeGesture::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) { QSwipeGesture::customEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QSwipeGesture_CustomEvent(this, handle__CustomEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_CustomEvent(QEvent* event) { QSwipeGesture::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) { QSwipeGesture::connectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QSwipeGesture_ConnectNotify(this, handle__ConnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_ConnectNotify(QMetaMethod* signal) { QSwipeGesture::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) { QSwipeGesture::disconnectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QSwipeGesture_DisconnectNotify(this, handle__DisconnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_DisconnectNotify(QMetaMethod* signal) { QSwipeGesture::disconnectNotify(*signal); } }; QSwipeGesture* QSwipeGesture_new() { return new MiqtVirtualQSwipeGesture(); } QSwipeGesture* QSwipeGesture_new2(QObject* parent) { return new MiqtVirtualQSwipeGesture(parent); } void QSwipeGesture_virtbase(QSwipeGesture* src, QGesture** outptr_QGesture) { *outptr_QGesture = static_cast(src); } 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(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(_ret); } int QSwipeGesture_VerticalDirection(const QSwipeGesture* self) { QSwipeGesture::SwipeDirection _ret = self->verticalDirection(); return static_cast(_ret); } double QSwipeGesture_SwipeAngle(const QSwipeGesture* self) { qreal _ret = self->swipeAngle(); return static_cast(_ret); } void QSwipeGesture_SetSwipeAngle(QSwipeGesture* self, double value) { self->setSwipeAngle(static_cast(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(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(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } bool QSwipeGesture_override_virtual_Event(void* self, intptr_t slot) { MiqtVirtualQSwipeGesture* self_cast = dynamic_cast( (QSwipeGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__Event = slot; return true; } bool QSwipeGesture_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQSwipeGesture*)(self) )->virtualbase_Event(event); } bool QSwipeGesture_override_virtual_EventFilter(void* self, intptr_t slot) { MiqtVirtualQSwipeGesture* self_cast = dynamic_cast( (QSwipeGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__EventFilter = slot; return true; } bool QSwipeGesture_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQSwipeGesture*)(self) )->virtualbase_EventFilter(watched, event); } bool QSwipeGesture_override_virtual_TimerEvent(void* self, intptr_t slot) { MiqtVirtualQSwipeGesture* self_cast = dynamic_cast( (QSwipeGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__TimerEvent = slot; return true; } void QSwipeGesture_virtualbase_TimerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQSwipeGesture*)(self) )->virtualbase_TimerEvent(event); } bool QSwipeGesture_override_virtual_ChildEvent(void* self, intptr_t slot) { MiqtVirtualQSwipeGesture* self_cast = dynamic_cast( (QSwipeGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ChildEvent = slot; return true; } void QSwipeGesture_virtualbase_ChildEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQSwipeGesture*)(self) )->virtualbase_ChildEvent(event); } bool QSwipeGesture_override_virtual_CustomEvent(void* self, intptr_t slot) { MiqtVirtualQSwipeGesture* self_cast = dynamic_cast( (QSwipeGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__CustomEvent = slot; return true; } void QSwipeGesture_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQSwipeGesture*)(self) )->virtualbase_CustomEvent(event); } bool QSwipeGesture_override_virtual_ConnectNotify(void* self, intptr_t slot) { MiqtVirtualQSwipeGesture* self_cast = dynamic_cast( (QSwipeGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ConnectNotify = slot; return true; } void QSwipeGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQSwipeGesture*)(self) )->virtualbase_ConnectNotify(signal); } bool QSwipeGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot) { MiqtVirtualQSwipeGesture* self_cast = dynamic_cast( (QSwipeGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__DisconnectNotify = slot; return true; } void QSwipeGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQSwipeGesture*)(self) )->virtualbase_DisconnectNotify(signal); } void QSwipeGesture_Delete(QSwipeGesture* self) { delete self; } class MiqtVirtualQTapGesture final : public QTapGesture { public: MiqtVirtualQTapGesture(): QTapGesture() {}; MiqtVirtualQTapGesture(QObject* parent): QTapGesture(parent) {}; virtual ~MiqtVirtualQTapGesture() override = 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 QTapGesture::event(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QTapGesture_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* event) { return QTapGesture::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 QTapGesture::eventFilter(watched, event); } QObject* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QTapGesture_EventFilter(this, handle__EventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_EventFilter(QObject* watched, QEvent* event) { return QTapGesture::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) { QTapGesture::timerEvent(event); return; } QTimerEvent* sigval1 = event; miqt_exec_callback_QTapGesture_TimerEvent(this, handle__TimerEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_TimerEvent(QTimerEvent* event) { QTapGesture::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) { QTapGesture::childEvent(event); return; } QChildEvent* sigval1 = event; miqt_exec_callback_QTapGesture_ChildEvent(this, handle__ChildEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ChildEvent(QChildEvent* event) { QTapGesture::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) { QTapGesture::customEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QTapGesture_CustomEvent(this, handle__CustomEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_CustomEvent(QEvent* event) { QTapGesture::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) { QTapGesture::connectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QTapGesture_ConnectNotify(this, handle__ConnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_ConnectNotify(QMetaMethod* signal) { QTapGesture::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) { QTapGesture::disconnectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QTapGesture_DisconnectNotify(this, handle__DisconnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_DisconnectNotify(QMetaMethod* signal) { QTapGesture::disconnectNotify(*signal); } }; QTapGesture* QTapGesture_new() { return new MiqtVirtualQTapGesture(); } QTapGesture* QTapGesture_new2(QObject* parent) { return new MiqtVirtualQTapGesture(parent); } void QTapGesture_virtbase(QTapGesture* src, QGesture** outptr_QGesture) { *outptr_QGesture = static_cast(src); } 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(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(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(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } bool QTapGesture_override_virtual_Event(void* self, intptr_t slot) { MiqtVirtualQTapGesture* self_cast = dynamic_cast( (QTapGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__Event = slot; return true; } bool QTapGesture_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQTapGesture*)(self) )->virtualbase_Event(event); } bool QTapGesture_override_virtual_EventFilter(void* self, intptr_t slot) { MiqtVirtualQTapGesture* self_cast = dynamic_cast( (QTapGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__EventFilter = slot; return true; } bool QTapGesture_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQTapGesture*)(self) )->virtualbase_EventFilter(watched, event); } bool QTapGesture_override_virtual_TimerEvent(void* self, intptr_t slot) { MiqtVirtualQTapGesture* self_cast = dynamic_cast( (QTapGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__TimerEvent = slot; return true; } void QTapGesture_virtualbase_TimerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQTapGesture*)(self) )->virtualbase_TimerEvent(event); } bool QTapGesture_override_virtual_ChildEvent(void* self, intptr_t slot) { MiqtVirtualQTapGesture* self_cast = dynamic_cast( (QTapGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ChildEvent = slot; return true; } void QTapGesture_virtualbase_ChildEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQTapGesture*)(self) )->virtualbase_ChildEvent(event); } bool QTapGesture_override_virtual_CustomEvent(void* self, intptr_t slot) { MiqtVirtualQTapGesture* self_cast = dynamic_cast( (QTapGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__CustomEvent = slot; return true; } void QTapGesture_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQTapGesture*)(self) )->virtualbase_CustomEvent(event); } bool QTapGesture_override_virtual_ConnectNotify(void* self, intptr_t slot) { MiqtVirtualQTapGesture* self_cast = dynamic_cast( (QTapGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ConnectNotify = slot; return true; } void QTapGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTapGesture*)(self) )->virtualbase_ConnectNotify(signal); } bool QTapGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot) { MiqtVirtualQTapGesture* self_cast = dynamic_cast( (QTapGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__DisconnectNotify = slot; return true; } void QTapGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTapGesture*)(self) )->virtualbase_DisconnectNotify(signal); } void QTapGesture_Delete(QTapGesture* self) { delete self; } class MiqtVirtualQTapAndHoldGesture final : public QTapAndHoldGesture { public: MiqtVirtualQTapAndHoldGesture(): QTapAndHoldGesture() {}; MiqtVirtualQTapAndHoldGesture(QObject* parent): QTapAndHoldGesture(parent) {}; virtual ~MiqtVirtualQTapAndHoldGesture() override = 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 QTapAndHoldGesture::event(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QTapAndHoldGesture_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* event) { return QTapAndHoldGesture::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 QTapAndHoldGesture::eventFilter(watched, event); } QObject* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QTapAndHoldGesture_EventFilter(this, handle__EventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_EventFilter(QObject* watched, QEvent* event) { return QTapAndHoldGesture::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) { QTapAndHoldGesture::timerEvent(event); return; } QTimerEvent* sigval1 = event; miqt_exec_callback_QTapAndHoldGesture_TimerEvent(this, handle__TimerEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_TimerEvent(QTimerEvent* event) { QTapAndHoldGesture::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) { QTapAndHoldGesture::childEvent(event); return; } QChildEvent* sigval1 = event; miqt_exec_callback_QTapAndHoldGesture_ChildEvent(this, handle__ChildEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ChildEvent(QChildEvent* event) { QTapAndHoldGesture::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) { QTapAndHoldGesture::customEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QTapAndHoldGesture_CustomEvent(this, handle__CustomEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_CustomEvent(QEvent* event) { QTapAndHoldGesture::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) { QTapAndHoldGesture::connectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QTapAndHoldGesture_ConnectNotify(this, handle__ConnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_ConnectNotify(QMetaMethod* signal) { QTapAndHoldGesture::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) { QTapAndHoldGesture::disconnectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QTapAndHoldGesture_DisconnectNotify(this, handle__DisconnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_DisconnectNotify(QMetaMethod* signal) { QTapAndHoldGesture::disconnectNotify(*signal); } }; QTapAndHoldGesture* QTapAndHoldGesture_new() { return new MiqtVirtualQTapAndHoldGesture(); } QTapAndHoldGesture* QTapAndHoldGesture_new2(QObject* parent) { return new MiqtVirtualQTapAndHoldGesture(parent); } void QTapAndHoldGesture_virtbase(QTapAndHoldGesture* src, QGesture** outptr_QGesture) { *outptr_QGesture = static_cast(src); } 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(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(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(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(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } bool QTapAndHoldGesture_override_virtual_Event(void* self, intptr_t slot) { MiqtVirtualQTapAndHoldGesture* self_cast = dynamic_cast( (QTapAndHoldGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__Event = slot; return true; } bool QTapAndHoldGesture_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQTapAndHoldGesture*)(self) )->virtualbase_Event(event); } bool QTapAndHoldGesture_override_virtual_EventFilter(void* self, intptr_t slot) { MiqtVirtualQTapAndHoldGesture* self_cast = dynamic_cast( (QTapAndHoldGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__EventFilter = slot; return true; } bool QTapAndHoldGesture_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQTapAndHoldGesture*)(self) )->virtualbase_EventFilter(watched, event); } bool QTapAndHoldGesture_override_virtual_TimerEvent(void* self, intptr_t slot) { MiqtVirtualQTapAndHoldGesture* self_cast = dynamic_cast( (QTapAndHoldGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__TimerEvent = slot; return true; } void QTapAndHoldGesture_virtualbase_TimerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQTapAndHoldGesture*)(self) )->virtualbase_TimerEvent(event); } bool QTapAndHoldGesture_override_virtual_ChildEvent(void* self, intptr_t slot) { MiqtVirtualQTapAndHoldGesture* self_cast = dynamic_cast( (QTapAndHoldGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ChildEvent = slot; return true; } void QTapAndHoldGesture_virtualbase_ChildEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQTapAndHoldGesture*)(self) )->virtualbase_ChildEvent(event); } bool QTapAndHoldGesture_override_virtual_CustomEvent(void* self, intptr_t slot) { MiqtVirtualQTapAndHoldGesture* self_cast = dynamic_cast( (QTapAndHoldGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__CustomEvent = slot; return true; } void QTapAndHoldGesture_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQTapAndHoldGesture*)(self) )->virtualbase_CustomEvent(event); } bool QTapAndHoldGesture_override_virtual_ConnectNotify(void* self, intptr_t slot) { MiqtVirtualQTapAndHoldGesture* self_cast = dynamic_cast( (QTapAndHoldGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__ConnectNotify = slot; return true; } void QTapAndHoldGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTapAndHoldGesture*)(self) )->virtualbase_ConnectNotify(signal); } bool QTapAndHoldGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot) { MiqtVirtualQTapAndHoldGesture* self_cast = dynamic_cast( (QTapAndHoldGesture*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__DisconnectNotify = slot; return true; } void QTapAndHoldGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTapAndHoldGesture*)(self) )->virtualbase_DisconnectNotify(signal); } void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self) { delete self; } class MiqtVirtualQGestureEvent final : public QGestureEvent { public: MiqtVirtualQGestureEvent(const QList& gestures): QGestureEvent(gestures) {}; MiqtVirtualQGestureEvent(const QGestureEvent& param1): QGestureEvent(param1) {}; virtual ~MiqtVirtualQGestureEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetAccepted = 0; // Subclass to allow providing a Go implementation virtual void setAccepted(bool accepted) override { if (handle__SetAccepted == 0) { QGestureEvent::setAccepted(accepted); return; } bool sigval1 = accepted; miqt_exec_callback_QGestureEvent_SetAccepted(this, handle__SetAccepted, sigval1); } // Wrapper to allow calling protected method void virtualbase_SetAccepted(bool accepted) { QGestureEvent::setAccepted(accepted); } // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; // Subclass to allow providing a Go implementation virtual QEvent* clone() const override { if (handle__Clone == 0) { return QGestureEvent::clone(); } QEvent* callback_return_value = miqt_exec_callback_QGestureEvent_Clone(const_cast(this), handle__Clone); return callback_return_value; } // Wrapper to allow calling protected method QEvent* virtualbase_Clone() const { return QGestureEvent::clone(); } }; QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures) { QList gestures_QList; gestures_QList.reserve(gestures.len); QGesture** gestures_arr = static_cast(gestures.data); for(size_t i = 0; i < gestures.len; ++i) { gestures_QList.push_back(gestures_arr[i]); } return new MiqtVirtualQGestureEvent(gestures_QList); } QGestureEvent* QGestureEvent_new2(QGestureEvent* param1) { return new MiqtVirtualQGestureEvent(*param1); } void QGestureEvent_virtbase(QGestureEvent* src, QEvent** outptr_QEvent) { *outptr_QEvent = static_cast(src); } struct miqt_array /* of QGesture* */ QGestureEvent_Gestures(const QGestureEvent* self) { QList _ret = self->gestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(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(_arr); return _out; } QGesture* QGestureEvent_Gesture(const QGestureEvent* self, int typeVal) { return self->gesture(static_cast(typeVal)); } struct miqt_array /* of QGesture* */ QGestureEvent_ActiveGestures(const QGestureEvent* self) { QList _ret = self->activeGestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(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(_arr); return _out; } struct miqt_array /* of QGesture* */ QGestureEvent_CanceledGestures(const QGestureEvent* self) { QList _ret = self->canceledGestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(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(_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(param1), param2); } void QGestureEvent_AcceptWithQtGestureType(QGestureEvent* self, int param1) { self->accept(static_cast(param1)); } void QGestureEvent_IgnoreWithQtGestureType(QGestureEvent* self, int param1) { self->ignore(static_cast(param1)); } bool QGestureEvent_IsAcceptedWithQtGestureType(const QGestureEvent* self, int param1) { return self->isAccepted(static_cast(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)); } bool QGestureEvent_override_virtual_SetAccepted(void* self, intptr_t slot) { MiqtVirtualQGestureEvent* self_cast = dynamic_cast( (QGestureEvent*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__SetAccepted = slot; return true; } void QGestureEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQGestureEvent*)(self) )->virtualbase_SetAccepted(accepted); } bool QGestureEvent_override_virtual_Clone(void* self, intptr_t slot) { MiqtVirtualQGestureEvent* self_cast = dynamic_cast( (QGestureEvent*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__Clone = slot; return true; } QEvent* QGestureEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQGestureEvent*)(self) )->virtualbase_Clone(); } void QGestureEvent_Delete(QGestureEvent* self) { delete self; }