#include #include #include #include #include #include #include #include "gen_qcoreevent.h" #include "_cgo_export.h" class MiqtVirtualQEvent : public virtual QEvent { public: MiqtVirtualQEvent(QEvent::Type typeVal): QEvent(typeVal) {}; virtual ~MiqtVirtualQEvent() = 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) { QEvent::setAccepted(accepted); return; } bool sigval1 = accepted; miqt_exec_callback_QEvent_SetAccepted(this, handle__SetAccepted, sigval1); } // Wrapper to allow calling protected method void virtualbase_SetAccepted(bool accepted) { QEvent::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 QEvent::clone(); } QEvent* callback_return_value = miqt_exec_callback_QEvent_Clone(const_cast(this), handle__Clone); return callback_return_value; } // Wrapper to allow calling protected method QEvent* virtualbase_Clone() const { return QEvent::clone(); } }; void QEvent_new(int typeVal, QEvent** outptr_QEvent) { MiqtVirtualQEvent* ret = new MiqtVirtualQEvent(static_cast(typeVal)); *outptr_QEvent = ret; } int QEvent_Type(const QEvent* self) { QEvent::Type _ret = self->type(); return static_cast(_ret); } bool QEvent_Spontaneous(const QEvent* self) { return self->spontaneous(); } void QEvent_SetAccepted(QEvent* self, bool accepted) { self->setAccepted(accepted); } bool QEvent_IsAccepted(const QEvent* self) { return self->isAccepted(); } void QEvent_Accept(QEvent* self) { self->accept(); } void QEvent_Ignore(QEvent* self) { self->ignore(); } bool QEvent_IsInputEvent(const QEvent* self) { return self->isInputEvent(); } bool QEvent_IsPointerEvent(const QEvent* self) { return self->isPointerEvent(); } bool QEvent_IsSinglePointEvent(const QEvent* self) { return self->isSinglePointEvent(); } int QEvent_RegisterEventType() { return QEvent::registerEventType(); } QEvent* QEvent_Clone(const QEvent* self) { return self->clone(); } int QEvent_RegisterEventType1(int hint) { return QEvent::registerEventType(static_cast(hint)); } void QEvent_override_virtual_SetAccepted(void* self, intptr_t slot) { dynamic_cast( (QEvent*)(self) )->handle__SetAccepted = slot; } void QEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQEvent*)(self) )->virtualbase_SetAccepted(accepted); } void QEvent_override_virtual_Clone(void* self, intptr_t slot) { dynamic_cast( (QEvent*)(self) )->handle__Clone = slot; } QEvent* QEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQEvent*)(self) )->virtualbase_Clone(); } void QEvent_Delete(QEvent* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQTimerEvent : public virtual QTimerEvent { public: MiqtVirtualQTimerEvent(int timerId): QTimerEvent(timerId) {}; virtual ~MiqtVirtualQTimerEvent() = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; // Subclass to allow providing a Go implementation virtual QTimerEvent* clone() const override { if (handle__Clone == 0) { return QTimerEvent::clone(); } QTimerEvent* callback_return_value = miqt_exec_callback_QTimerEvent_Clone(const_cast(this), handle__Clone); return callback_return_value; } // Wrapper to allow calling protected method QTimerEvent* virtualbase_Clone() const { return QTimerEvent::clone(); } // 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) { QTimerEvent::setAccepted(accepted); return; } bool sigval1 = accepted; miqt_exec_callback_QTimerEvent_SetAccepted(this, handle__SetAccepted, sigval1); } // Wrapper to allow calling protected method void virtualbase_SetAccepted(bool accepted) { QTimerEvent::setAccepted(accepted); } }; void QTimerEvent_new(int timerId, QTimerEvent** outptr_QTimerEvent, QEvent** outptr_QEvent) { MiqtVirtualQTimerEvent* ret = new MiqtVirtualQTimerEvent(static_cast(timerId)); *outptr_QTimerEvent = ret; *outptr_QEvent = static_cast(ret); } QTimerEvent* QTimerEvent_Clone(const QTimerEvent* self) { return self->clone(); } int QTimerEvent_TimerId(const QTimerEvent* self) { return self->timerId(); } void QTimerEvent_override_virtual_Clone(void* self, intptr_t slot) { dynamic_cast( (QTimerEvent*)(self) )->handle__Clone = slot; } QTimerEvent* QTimerEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQTimerEvent*)(self) )->virtualbase_Clone(); } void QTimerEvent_override_virtual_SetAccepted(void* self, intptr_t slot) { dynamic_cast( (QTimerEvent*)(self) )->handle__SetAccepted = slot; } void QTimerEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQTimerEvent*)(self) )->virtualbase_SetAccepted(accepted); } void QTimerEvent_Delete(QTimerEvent* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQChildEvent : public virtual QChildEvent { public: MiqtVirtualQChildEvent(QEvent::Type typeVal, QObject* child): QChildEvent(typeVal, child) {}; virtual ~MiqtVirtualQChildEvent() = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; // Subclass to allow providing a Go implementation virtual QChildEvent* clone() const override { if (handle__Clone == 0) { return QChildEvent::clone(); } QChildEvent* callback_return_value = miqt_exec_callback_QChildEvent_Clone(const_cast(this), handle__Clone); return callback_return_value; } // Wrapper to allow calling protected method QChildEvent* virtualbase_Clone() const { return QChildEvent::clone(); } // 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) { QChildEvent::setAccepted(accepted); return; } bool sigval1 = accepted; miqt_exec_callback_QChildEvent_SetAccepted(this, handle__SetAccepted, sigval1); } // Wrapper to allow calling protected method void virtualbase_SetAccepted(bool accepted) { QChildEvent::setAccepted(accepted); } }; void QChildEvent_new(int typeVal, QObject* child, QChildEvent** outptr_QChildEvent, QEvent** outptr_QEvent) { MiqtVirtualQChildEvent* ret = new MiqtVirtualQChildEvent(static_cast(typeVal), child); *outptr_QChildEvent = ret; *outptr_QEvent = static_cast(ret); } QChildEvent* QChildEvent_Clone(const QChildEvent* self) { return self->clone(); } QObject* QChildEvent_Child(const QChildEvent* self) { return self->child(); } bool QChildEvent_Added(const QChildEvent* self) { return self->added(); } bool QChildEvent_Polished(const QChildEvent* self) { return self->polished(); } bool QChildEvent_Removed(const QChildEvent* self) { return self->removed(); } void QChildEvent_override_virtual_Clone(void* self, intptr_t slot) { dynamic_cast( (QChildEvent*)(self) )->handle__Clone = slot; } QChildEvent* QChildEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQChildEvent*)(self) )->virtualbase_Clone(); } void QChildEvent_override_virtual_SetAccepted(void* self, intptr_t slot) { dynamic_cast( (QChildEvent*)(self) )->handle__SetAccepted = slot; } void QChildEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQChildEvent*)(self) )->virtualbase_SetAccepted(accepted); } void QChildEvent_Delete(QChildEvent* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQDynamicPropertyChangeEvent : public virtual QDynamicPropertyChangeEvent { public: MiqtVirtualQDynamicPropertyChangeEvent(const QByteArray& name): QDynamicPropertyChangeEvent(name) {}; virtual ~MiqtVirtualQDynamicPropertyChangeEvent() = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; // Subclass to allow providing a Go implementation virtual QDynamicPropertyChangeEvent* clone() const override { if (handle__Clone == 0) { return QDynamicPropertyChangeEvent::clone(); } QDynamicPropertyChangeEvent* callback_return_value = miqt_exec_callback_QDynamicPropertyChangeEvent_Clone(const_cast(this), handle__Clone); return callback_return_value; } // Wrapper to allow calling protected method QDynamicPropertyChangeEvent* virtualbase_Clone() const { return QDynamicPropertyChangeEvent::clone(); } // 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) { QDynamicPropertyChangeEvent::setAccepted(accepted); return; } bool sigval1 = accepted; miqt_exec_callback_QDynamicPropertyChangeEvent_SetAccepted(this, handle__SetAccepted, sigval1); } // Wrapper to allow calling protected method void virtualbase_SetAccepted(bool accepted) { QDynamicPropertyChangeEvent::setAccepted(accepted); } }; void QDynamicPropertyChangeEvent_new(struct miqt_string name, QDynamicPropertyChangeEvent** outptr_QDynamicPropertyChangeEvent, QEvent** outptr_QEvent) { QByteArray name_QByteArray(name.data, name.len); MiqtVirtualQDynamicPropertyChangeEvent* ret = new MiqtVirtualQDynamicPropertyChangeEvent(name_QByteArray); *outptr_QDynamicPropertyChangeEvent = ret; *outptr_QEvent = static_cast(ret); } QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_Clone(const QDynamicPropertyChangeEvent* self) { return self->clone(); } struct miqt_string QDynamicPropertyChangeEvent_PropertyName(const QDynamicPropertyChangeEvent* self) { QByteArray _qb = self->propertyName(); struct miqt_string _ms; _ms.len = _qb.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _qb.data(), _ms.len); return _ms; } void QDynamicPropertyChangeEvent_override_virtual_Clone(void* self, intptr_t slot) { dynamic_cast( (QDynamicPropertyChangeEvent*)(self) )->handle__Clone = slot; } QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQDynamicPropertyChangeEvent*)(self) )->virtualbase_Clone(); } void QDynamicPropertyChangeEvent_override_virtual_SetAccepted(void* self, intptr_t slot) { dynamic_cast( (QDynamicPropertyChangeEvent*)(self) )->handle__SetAccepted = slot; } void QDynamicPropertyChangeEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQDynamicPropertyChangeEvent*)(self) )->virtualbase_SetAccepted(accepted); } void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }