#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qgraphicsitem.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" class MiqtVirtualQGraphicsItem : public virtual QGraphicsItem { public: MiqtVirtualQGraphicsItem(): QGraphicsItem() {}; MiqtVirtualQGraphicsItem(QGraphicsItem* parent): QGraphicsItem(parent) {}; virtual ~MiqtVirtualQGraphicsItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; // Subclass to allow providing a Go implementation virtual void advance(int phase) override { if (handle__Advance == 0) { QGraphicsItem::advance(phase); return; } int sigval1 = phase; miqt_exec_callback_QGraphicsItem_Advance(this, handle__Advance, sigval1); } // Wrapper to allow calling protected method void virtualbase_Advance(int phase) { QGraphicsItem::advance(static_cast(phase)); } // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QRectF(); // Pure virtual, there is no base we can call } QRectF* callback_return_value = miqt_exec_callback_QGraphicsItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithItem = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithItem == 0) { return QGraphicsItem::collidesWithItem(other, mode); } QGraphicsItem* sigval1 = (QGraphicsItem*) other; Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsItem_CollidesWithItem(const_cast(this), handle__CollidesWithItem, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithItem(QGraphicsItem* other, int mode) const { return QGraphicsItem::collidesWithItem(other, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithPath = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithPath == 0) { return QGraphicsItem::collidesWithPath(path, mode); } const QPainterPath& path_ret = path; // Cast returned reference into pointer QPainterPath* sigval1 = const_cast(&path_ret); Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsItem_CollidesWithPath(const_cast(this), handle__CollidesWithPath, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithPath(QPainterPath* path, int mode) const { return QGraphicsItem::collidesWithPath(*path, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { return; // Pure virtual, there is no base we can call } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEventFilter = 0; // Subclass to allow providing a Go implementation virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event) override { if (handle__SceneEventFilter == 0) { return QGraphicsItem::sceneEventFilter(watched, event); } QGraphicsItem* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QGraphicsItem_SceneEventFilter(this, handle__SceneEventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QGraphicsItem::sceneEventFilter(watched, event); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEvent = 0; // Subclass to allow providing a Go implementation virtual bool sceneEvent(QEvent* event) override { if (handle__SceneEvent == 0) { return QGraphicsItem::sceneEvent(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QGraphicsItem_SceneEvent(this, handle__SceneEvent, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEvent(QEvent* event) { return QGraphicsItem::sceneEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ContextMenuEvent = 0; // Subclass to allow providing a Go implementation virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override { if (handle__ContextMenuEvent == 0) { QGraphicsItem::contextMenuEvent(event); return; } QGraphicsSceneContextMenuEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ContextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsItem::contextMenuEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragEnterEvent == 0) { QGraphicsItem::dragEnterEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_DragEnterEvent(this, handle__DragEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragLeaveEvent == 0) { QGraphicsItem::dragLeaveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_DragLeaveEvent(this, handle__DragLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragMoveEvent == 0) { QGraphicsItem::dragMoveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_DragMoveEvent(this, handle__DragMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DropEvent = 0; // Subclass to allow providing a Go implementation virtual void dropEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DropEvent == 0) { QGraphicsItem::dropEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_DropEvent(this, handle__DropEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dropEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusInEvent = 0; // Subclass to allow providing a Go implementation virtual void focusInEvent(QFocusEvent* event) override { if (handle__FocusInEvent == 0) { QGraphicsItem::focusInEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_FocusInEvent(this, handle__FocusInEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusInEvent(QFocusEvent* event) { QGraphicsItem::focusInEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusOutEvent = 0; // Subclass to allow providing a Go implementation virtual void focusOutEvent(QFocusEvent* event) override { if (handle__FocusOutEvent == 0) { QGraphicsItem::focusOutEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_FocusOutEvent(this, handle__FocusOutEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusOutEvent(QFocusEvent* event) { QGraphicsItem::focusOutEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverEnterEvent == 0) { QGraphicsItem::hoverEnterEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_HoverEnterEvent(this, handle__HoverEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverMoveEvent == 0) { QGraphicsItem::hoverMoveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_HoverMoveEvent(this, handle__HoverMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverLeaveEvent == 0) { QGraphicsItem::hoverLeaveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_HoverLeaveEvent(this, handle__HoverLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyPressEvent = 0; // Subclass to allow providing a Go implementation virtual void keyPressEvent(QKeyEvent* event) override { if (handle__KeyPressEvent == 0) { QGraphicsItem::keyPressEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_KeyPressEvent(this, handle__KeyPressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyPressEvent(QKeyEvent* event) { QGraphicsItem::keyPressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void keyReleaseEvent(QKeyEvent* event) override { if (handle__KeyReleaseEvent == 0) { QGraphicsItem::keyReleaseEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyReleaseEvent(QKeyEvent* event) { QGraphicsItem::keyReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MousePressEvent = 0; // Subclass to allow providing a Go implementation virtual void mousePressEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MousePressEvent == 0) { QGraphicsItem::mousePressEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_MousePressEvent(this, handle__MousePressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mousePressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseMoveEvent == 0) { QGraphicsItem::mouseMoveEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseReleaseEvent == 0) { QGraphicsItem::mouseReleaseEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseDoubleClickEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseDoubleClickEvent == 0) { QGraphicsItem::mouseDoubleClickEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseDoubleClickEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__WheelEvent = 0; // Subclass to allow providing a Go implementation virtual void wheelEvent(QGraphicsSceneWheelEvent* event) override { if (handle__WheelEvent == 0) { QGraphicsItem::wheelEvent(event); return; } QGraphicsSceneWheelEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_WheelEvent(this, handle__WheelEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_WheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsItem::wheelEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodEvent = 0; // Subclass to allow providing a Go implementation virtual void inputMethodEvent(QInputMethodEvent* event) override { if (handle__InputMethodEvent == 0) { QGraphicsItem::inputMethodEvent(event); return; } QInputMethodEvent* sigval1 = event; miqt_exec_callback_QGraphicsItem_InputMethodEvent(this, handle__InputMethodEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_InputMethodEvent(QInputMethodEvent* event) { QGraphicsItem::inputMethodEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; // Subclass to allow providing a Go implementation virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const override { if (handle__InputMethodQuery == 0) { return QGraphicsItem::inputMethodQuery(query); } Qt::InputMethodQuery query_ret = query; int sigval1 = static_cast(query_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsItem_InputMethodQuery(const_cast(this), handle__InputMethodQuery, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_InputMethodQuery(int query) const { return new QVariant(QGraphicsItem::inputMethodQuery(static_cast(query))); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemChange = 0; // Subclass to allow providing a Go implementation virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) override { if (handle__ItemChange == 0) { return QGraphicsItem::itemChange(change, value); } QGraphicsItem::GraphicsItemChange change_ret = change; int sigval1 = static_cast(change_ret); const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&value_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsItem_ItemChange(this, handle__ItemChange, sigval1, sigval2); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_ItemChange(int change, QVariant* value) { return new QVariant(QGraphicsItem::itemChange(static_cast(change), *value)); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsItem::extension(*variant)); } }; QGraphicsItem* QGraphicsItem_new() { return new MiqtVirtualQGraphicsItem(); } QGraphicsItem* QGraphicsItem_new2(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsItem(parent); } QGraphicsScene* QGraphicsItem_Scene(const QGraphicsItem* self) { return self->scene(); } QGraphicsItem* QGraphicsItem_ParentItem(const QGraphicsItem* self) { return self->parentItem(); } QGraphicsItem* QGraphicsItem_TopLevelItem(const QGraphicsItem* self) { return self->topLevelItem(); } QGraphicsObject* QGraphicsItem_ParentObject(const QGraphicsItem* self) { return self->parentObject(); } QGraphicsWidget* QGraphicsItem_ParentWidget(const QGraphicsItem* self) { return self->parentWidget(); } QGraphicsWidget* QGraphicsItem_TopLevelWidget(const QGraphicsItem* self) { return self->topLevelWidget(); } QGraphicsWidget* QGraphicsItem_Window(const QGraphicsItem* self) { return self->window(); } QGraphicsItem* QGraphicsItem_Panel(const QGraphicsItem* self) { return self->panel(); } void QGraphicsItem_SetParentItem(QGraphicsItem* self, QGraphicsItem* parent) { self->setParentItem(parent); } struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_ChildItems(const QGraphicsItem* self) { QList _ret = self->childItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _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; } bool QGraphicsItem_IsWidget(const QGraphicsItem* self) { return self->isWidget(); } bool QGraphicsItem_IsWindow(const QGraphicsItem* self) { return self->isWindow(); } bool QGraphicsItem_IsPanel(const QGraphicsItem* self) { return self->isPanel(); } QGraphicsObject* QGraphicsItem_ToGraphicsObject(QGraphicsItem* self) { return self->toGraphicsObject(); } QGraphicsObject* QGraphicsItem_ToGraphicsObject2(const QGraphicsItem* self) { return (QGraphicsObject*) self->toGraphicsObject(); } QGraphicsItemGroup* QGraphicsItem_Group(const QGraphicsItem* self) { return self->group(); } void QGraphicsItem_SetGroup(QGraphicsItem* self, QGraphicsItemGroup* group) { self->setGroup(group); } int QGraphicsItem_Flags(const QGraphicsItem* self) { QGraphicsItem::GraphicsItemFlags _ret = self->flags(); return static_cast(_ret); } void QGraphicsItem_SetFlag(QGraphicsItem* self, int flag) { self->setFlag(static_cast(flag)); } void QGraphicsItem_SetFlags(QGraphicsItem* self, int flags) { self->setFlags(static_cast(flags)); } int QGraphicsItem_CacheMode(const QGraphicsItem* self) { QGraphicsItem::CacheMode _ret = self->cacheMode(); return static_cast(_ret); } void QGraphicsItem_SetCacheMode(QGraphicsItem* self, int mode) { self->setCacheMode(static_cast(mode)); } int QGraphicsItem_PanelModality(const QGraphicsItem* self) { QGraphicsItem::PanelModality _ret = self->panelModality(); return static_cast(_ret); } void QGraphicsItem_SetPanelModality(QGraphicsItem* self, int panelModality) { self->setPanelModality(static_cast(panelModality)); } bool QGraphicsItem_IsBlockedByModalPanel(const QGraphicsItem* self) { return self->isBlockedByModalPanel(); } struct miqt_string QGraphicsItem_ToolTip(const QGraphicsItem* self) { QString _ret = self->toolTip(); // 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; } void QGraphicsItem_SetToolTip(QGraphicsItem* self, struct miqt_string toolTip) { QString toolTip_QString = QString::fromUtf8(toolTip.data, toolTip.len); self->setToolTip(toolTip_QString); } QCursor* QGraphicsItem_Cursor(const QGraphicsItem* self) { return new QCursor(self->cursor()); } void QGraphicsItem_SetCursor(QGraphicsItem* self, QCursor* cursor) { self->setCursor(*cursor); } bool QGraphicsItem_HasCursor(const QGraphicsItem* self) { return self->hasCursor(); } void QGraphicsItem_UnsetCursor(QGraphicsItem* self) { self->unsetCursor(); } bool QGraphicsItem_IsVisible(const QGraphicsItem* self) { return self->isVisible(); } bool QGraphicsItem_IsVisibleTo(const QGraphicsItem* self, QGraphicsItem* parent) { return self->isVisibleTo(parent); } void QGraphicsItem_SetVisible(QGraphicsItem* self, bool visible) { self->setVisible(visible); } void QGraphicsItem_Hide(QGraphicsItem* self) { self->hide(); } void QGraphicsItem_Show(QGraphicsItem* self) { self->show(); } bool QGraphicsItem_IsEnabled(const QGraphicsItem* self) { return self->isEnabled(); } void QGraphicsItem_SetEnabled(QGraphicsItem* self, bool enabled) { self->setEnabled(enabled); } bool QGraphicsItem_IsSelected(const QGraphicsItem* self) { return self->isSelected(); } void QGraphicsItem_SetSelected(QGraphicsItem* self, bool selected) { self->setSelected(selected); } bool QGraphicsItem_AcceptDrops(const QGraphicsItem* self) { return self->acceptDrops(); } void QGraphicsItem_SetAcceptDrops(QGraphicsItem* self, bool on) { self->setAcceptDrops(on); } double QGraphicsItem_Opacity(const QGraphicsItem* self) { qreal _ret = self->opacity(); return static_cast(_ret); } double QGraphicsItem_EffectiveOpacity(const QGraphicsItem* self) { qreal _ret = self->effectiveOpacity(); return static_cast(_ret); } void QGraphicsItem_SetOpacity(QGraphicsItem* self, double opacity) { self->setOpacity(static_cast(opacity)); } QGraphicsEffect* QGraphicsItem_GraphicsEffect(const QGraphicsItem* self) { return self->graphicsEffect(); } void QGraphicsItem_SetGraphicsEffect(QGraphicsItem* self, QGraphicsEffect* effect) { self->setGraphicsEffect(effect); } int QGraphicsItem_AcceptedMouseButtons(const QGraphicsItem* self) { Qt::MouseButtons _ret = self->acceptedMouseButtons(); return static_cast(_ret); } void QGraphicsItem_SetAcceptedMouseButtons(QGraphicsItem* self, int buttons) { self->setAcceptedMouseButtons(static_cast(buttons)); } bool QGraphicsItem_AcceptHoverEvents(const QGraphicsItem* self) { return self->acceptHoverEvents(); } void QGraphicsItem_SetAcceptHoverEvents(QGraphicsItem* self, bool enabled) { self->setAcceptHoverEvents(enabled); } bool QGraphicsItem_AcceptTouchEvents(const QGraphicsItem* self) { return self->acceptTouchEvents(); } void QGraphicsItem_SetAcceptTouchEvents(QGraphicsItem* self, bool enabled) { self->setAcceptTouchEvents(enabled); } bool QGraphicsItem_FiltersChildEvents(const QGraphicsItem* self) { return self->filtersChildEvents(); } void QGraphicsItem_SetFiltersChildEvents(QGraphicsItem* self, bool enabled) { self->setFiltersChildEvents(enabled); } bool QGraphicsItem_HandlesChildEvents(const QGraphicsItem* self) { return self->handlesChildEvents(); } void QGraphicsItem_SetHandlesChildEvents(QGraphicsItem* self, bool enabled) { self->setHandlesChildEvents(enabled); } bool QGraphicsItem_IsActive(const QGraphicsItem* self) { return self->isActive(); } void QGraphicsItem_SetActive(QGraphicsItem* self, bool active) { self->setActive(active); } bool QGraphicsItem_HasFocus(const QGraphicsItem* self) { return self->hasFocus(); } void QGraphicsItem_SetFocus(QGraphicsItem* self) { self->setFocus(); } void QGraphicsItem_ClearFocus(QGraphicsItem* self) { self->clearFocus(); } QGraphicsItem* QGraphicsItem_FocusProxy(const QGraphicsItem* self) { return self->focusProxy(); } void QGraphicsItem_SetFocusProxy(QGraphicsItem* self, QGraphicsItem* item) { self->setFocusProxy(item); } QGraphicsItem* QGraphicsItem_FocusItem(const QGraphicsItem* self) { return self->focusItem(); } QGraphicsItem* QGraphicsItem_FocusScopeItem(const QGraphicsItem* self) { return self->focusScopeItem(); } void QGraphicsItem_GrabMouse(QGraphicsItem* self) { self->grabMouse(); } void QGraphicsItem_UngrabMouse(QGraphicsItem* self) { self->ungrabMouse(); } void QGraphicsItem_GrabKeyboard(QGraphicsItem* self) { self->grabKeyboard(); } void QGraphicsItem_UngrabKeyboard(QGraphicsItem* self) { self->ungrabKeyboard(); } QPointF* QGraphicsItem_Pos(const QGraphicsItem* self) { return new QPointF(self->pos()); } double QGraphicsItem_X(const QGraphicsItem* self) { qreal _ret = self->x(); return static_cast(_ret); } void QGraphicsItem_SetX(QGraphicsItem* self, double x) { self->setX(static_cast(x)); } double QGraphicsItem_Y(const QGraphicsItem* self) { qreal _ret = self->y(); return static_cast(_ret); } void QGraphicsItem_SetY(QGraphicsItem* self, double y) { self->setY(static_cast(y)); } QPointF* QGraphicsItem_ScenePos(const QGraphicsItem* self) { return new QPointF(self->scenePos()); } void QGraphicsItem_SetPos(QGraphicsItem* self, QPointF* pos) { self->setPos(*pos); } void QGraphicsItem_SetPos2(QGraphicsItem* self, double x, double y) { self->setPos(static_cast(x), static_cast(y)); } void QGraphicsItem_MoveBy(QGraphicsItem* self, double dx, double dy) { self->moveBy(static_cast(dx), static_cast(dy)); } void QGraphicsItem_EnsureVisible(QGraphicsItem* self) { self->ensureVisible(); } void QGraphicsItem_EnsureVisible2(QGraphicsItem* self, double x, double y, double w, double h) { self->ensureVisible(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } QTransform* QGraphicsItem_Transform(const QGraphicsItem* self) { return new QTransform(self->transform()); } QTransform* QGraphicsItem_SceneTransform(const QGraphicsItem* self) { return new QTransform(self->sceneTransform()); } QTransform* QGraphicsItem_DeviceTransform(const QGraphicsItem* self, QTransform* viewportTransform) { return new QTransform(self->deviceTransform(*viewportTransform)); } QTransform* QGraphicsItem_ItemTransform(const QGraphicsItem* self, QGraphicsItem* other) { return new QTransform(self->itemTransform(other)); } void QGraphicsItem_SetTransform(QGraphicsItem* self, QTransform* matrix) { self->setTransform(*matrix); } void QGraphicsItem_ResetTransform(QGraphicsItem* self) { self->resetTransform(); } void QGraphicsItem_SetRotation(QGraphicsItem* self, double angle) { self->setRotation(static_cast(angle)); } double QGraphicsItem_Rotation(const QGraphicsItem* self) { qreal _ret = self->rotation(); return static_cast(_ret); } void QGraphicsItem_SetScale(QGraphicsItem* self, double scale) { self->setScale(static_cast(scale)); } double QGraphicsItem_Scale(const QGraphicsItem* self) { qreal _ret = self->scale(); return static_cast(_ret); } struct miqt_array /* of QGraphicsTransform* */ QGraphicsItem_Transformations(const QGraphicsItem* self) { QList _ret = self->transformations(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsTransform** _arr = static_cast(malloc(sizeof(QGraphicsTransform*) * _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 QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations) { QList transformations_QList; transformations_QList.reserve(transformations.len); QGraphicsTransform** transformations_arr = static_cast(transformations.data); for(size_t i = 0; i < transformations.len; ++i) { transformations_QList.push_back(transformations_arr[i]); } self->setTransformations(transformations_QList); } QPointF* QGraphicsItem_TransformOriginPoint(const QGraphicsItem* self) { return new QPointF(self->transformOriginPoint()); } void QGraphicsItem_SetTransformOriginPoint(QGraphicsItem* self, QPointF* origin) { self->setTransformOriginPoint(*origin); } void QGraphicsItem_SetTransformOriginPoint2(QGraphicsItem* self, double ax, double ay) { self->setTransformOriginPoint(static_cast(ax), static_cast(ay)); } void QGraphicsItem_Advance(QGraphicsItem* self, int phase) { self->advance(static_cast(phase)); } double QGraphicsItem_ZValue(const QGraphicsItem* self) { qreal _ret = self->zValue(); return static_cast(_ret); } void QGraphicsItem_SetZValue(QGraphicsItem* self, double z) { self->setZValue(static_cast(z)); } void QGraphicsItem_StackBefore(QGraphicsItem* self, QGraphicsItem* sibling) { self->stackBefore(sibling); } QRectF* QGraphicsItem_BoundingRect(const QGraphicsItem* self) { return new QRectF(self->boundingRect()); } QRectF* QGraphicsItem_ChildrenBoundingRect(const QGraphicsItem* self) { return new QRectF(self->childrenBoundingRect()); } QRectF* QGraphicsItem_SceneBoundingRect(const QGraphicsItem* self) { return new QRectF(self->sceneBoundingRect()); } QPainterPath* QGraphicsItem_Shape(const QGraphicsItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsItem_IsClipped(const QGraphicsItem* self) { return self->isClipped(); } QPainterPath* QGraphicsItem_ClipPath(const QGraphicsItem* self) { return new QPainterPath(self->clipPath()); } bool QGraphicsItem_Contains(const QGraphicsItem* self, QPointF* point) { return self->contains(*point); } bool QGraphicsItem_CollidesWithItem(const QGraphicsItem* self, QGraphicsItem* other, int mode) { return self->collidesWithItem(other, static_cast(mode)); } bool QGraphicsItem_CollidesWithPath(const QGraphicsItem* self, QPainterPath* path, int mode) { return self->collidesWithPath(*path, static_cast(mode)); } struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems(const QGraphicsItem* self) { QList _ret = self->collidingItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _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; } bool QGraphicsItem_IsObscured(const QGraphicsItem* self) { return self->isObscured(); } bool QGraphicsItem_IsObscured2(const QGraphicsItem* self, double x, double y, double w, double h) { return self->isObscured(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } bool QGraphicsItem_IsObscuredBy(const QGraphicsItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsItem_OpaqueArea(const QGraphicsItem* self) { return new QPainterPath(self->opaqueArea()); } QRegion* QGraphicsItem_BoundingRegion(const QGraphicsItem* self, QTransform* itemToDeviceTransform) { return new QRegion(self->boundingRegion(*itemToDeviceTransform)); } double QGraphicsItem_BoundingRegionGranularity(const QGraphicsItem* self) { qreal _ret = self->boundingRegionGranularity(); return static_cast(_ret); } void QGraphicsItem_SetBoundingRegionGranularity(QGraphicsItem* self, double granularity) { self->setBoundingRegionGranularity(static_cast(granularity)); } void QGraphicsItem_Paint(QGraphicsItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } void QGraphicsItem_Update(QGraphicsItem* self) { self->update(); } void QGraphicsItem_Update2(QGraphicsItem* self, double x, double y, double width, double height) { self->update(static_cast(x), static_cast(y), static_cast(width), static_cast(height)); } void QGraphicsItem_Scroll(QGraphicsItem* self, double dx, double dy) { self->scroll(static_cast(dx), static_cast(dy)); } QPointF* QGraphicsItem_MapToItem(const QGraphicsItem* self, QGraphicsItem* item, QPointF* point) { return new QPointF(self->mapToItem(item, *point)); } QPointF* QGraphicsItem_MapToParent(const QGraphicsItem* self, QPointF* point) { return new QPointF(self->mapToParent(*point)); } QPointF* QGraphicsItem_MapToScene(const QGraphicsItem* self, QPointF* point) { return new QPointF(self->mapToScene(*point)); } QRectF* QGraphicsItem_MapRectToItem(const QGraphicsItem* self, QGraphicsItem* item, QRectF* rect) { return new QRectF(self->mapRectToItem(item, *rect)); } QRectF* QGraphicsItem_MapRectToParent(const QGraphicsItem* self, QRectF* rect) { return new QRectF(self->mapRectToParent(*rect)); } QRectF* QGraphicsItem_MapRectToScene(const QGraphicsItem* self, QRectF* rect) { return new QRectF(self->mapRectToScene(*rect)); } QPainterPath* QGraphicsItem_MapToItem4(const QGraphicsItem* self, QGraphicsItem* item, QPainterPath* path) { return new QPainterPath(self->mapToItem(item, *path)); } QPainterPath* QGraphicsItem_MapToParentWithPath(const QGraphicsItem* self, QPainterPath* path) { return new QPainterPath(self->mapToParent(*path)); } QPainterPath* QGraphicsItem_MapToSceneWithPath(const QGraphicsItem* self, QPainterPath* path) { return new QPainterPath(self->mapToScene(*path)); } QPointF* QGraphicsItem_MapFromItem(const QGraphicsItem* self, QGraphicsItem* item, QPointF* point) { return new QPointF(self->mapFromItem(item, *point)); } QPointF* QGraphicsItem_MapFromParent(const QGraphicsItem* self, QPointF* point) { return new QPointF(self->mapFromParent(*point)); } QPointF* QGraphicsItem_MapFromScene(const QGraphicsItem* self, QPointF* point) { return new QPointF(self->mapFromScene(*point)); } QRectF* QGraphicsItem_MapRectFromItem(const QGraphicsItem* self, QGraphicsItem* item, QRectF* rect) { return new QRectF(self->mapRectFromItem(item, *rect)); } QRectF* QGraphicsItem_MapRectFromParent(const QGraphicsItem* self, QRectF* rect) { return new QRectF(self->mapRectFromParent(*rect)); } QRectF* QGraphicsItem_MapRectFromScene(const QGraphicsItem* self, QRectF* rect) { return new QRectF(self->mapRectFromScene(*rect)); } QPainterPath* QGraphicsItem_MapFromItem4(const QGraphicsItem* self, QGraphicsItem* item, QPainterPath* path) { return new QPainterPath(self->mapFromItem(item, *path)); } QPainterPath* QGraphicsItem_MapFromParentWithPath(const QGraphicsItem* self, QPainterPath* path) { return new QPainterPath(self->mapFromParent(*path)); } QPainterPath* QGraphicsItem_MapFromSceneWithPath(const QGraphicsItem* self, QPainterPath* path) { return new QPainterPath(self->mapFromScene(*path)); } QPointF* QGraphicsItem_MapToItem5(const QGraphicsItem* self, QGraphicsItem* item, double x, double y) { return new QPointF(self->mapToItem(item, static_cast(x), static_cast(y))); } QPointF* QGraphicsItem_MapToParent2(const QGraphicsItem* self, double x, double y) { return new QPointF(self->mapToParent(static_cast(x), static_cast(y))); } QPointF* QGraphicsItem_MapToScene2(const QGraphicsItem* self, double x, double y) { return new QPointF(self->mapToScene(static_cast(x), static_cast(y))); } QRectF* QGraphicsItem_MapRectToItem2(const QGraphicsItem* self, QGraphicsItem* item, double x, double y, double w, double h) { return new QRectF(self->mapRectToItem(item, static_cast(x), static_cast(y), static_cast(w), static_cast(h))); } QRectF* QGraphicsItem_MapRectToParent2(const QGraphicsItem* self, double x, double y, double w, double h) { return new QRectF(self->mapRectToParent(static_cast(x), static_cast(y), static_cast(w), static_cast(h))); } QRectF* QGraphicsItem_MapRectToScene2(const QGraphicsItem* self, double x, double y, double w, double h) { return new QRectF(self->mapRectToScene(static_cast(x), static_cast(y), static_cast(w), static_cast(h))); } QPointF* QGraphicsItem_MapFromItem5(const QGraphicsItem* self, QGraphicsItem* item, double x, double y) { return new QPointF(self->mapFromItem(item, static_cast(x), static_cast(y))); } QPointF* QGraphicsItem_MapFromParent2(const QGraphicsItem* self, double x, double y) { return new QPointF(self->mapFromParent(static_cast(x), static_cast(y))); } QPointF* QGraphicsItem_MapFromScene2(const QGraphicsItem* self, double x, double y) { return new QPointF(self->mapFromScene(static_cast(x), static_cast(y))); } QRectF* QGraphicsItem_MapRectFromItem2(const QGraphicsItem* self, QGraphicsItem* item, double x, double y, double w, double h) { return new QRectF(self->mapRectFromItem(item, static_cast(x), static_cast(y), static_cast(w), static_cast(h))); } QRectF* QGraphicsItem_MapRectFromParent2(const QGraphicsItem* self, double x, double y, double w, double h) { return new QRectF(self->mapRectFromParent(static_cast(x), static_cast(y), static_cast(w), static_cast(h))); } QRectF* QGraphicsItem_MapRectFromScene2(const QGraphicsItem* self, double x, double y, double w, double h) { return new QRectF(self->mapRectFromScene(static_cast(x), static_cast(y), static_cast(w), static_cast(h))); } bool QGraphicsItem_IsAncestorOf(const QGraphicsItem* self, QGraphicsItem* child) { return self->isAncestorOf(child); } QGraphicsItem* QGraphicsItem_CommonAncestorItem(const QGraphicsItem* self, QGraphicsItem* other) { return self->commonAncestorItem(other); } bool QGraphicsItem_IsUnderMouse(const QGraphicsItem* self) { return self->isUnderMouse(); } QVariant* QGraphicsItem_Data(const QGraphicsItem* self, int key) { return new QVariant(self->data(static_cast(key))); } void QGraphicsItem_SetData(QGraphicsItem* self, int key, QVariant* value) { self->setData(static_cast(key), *value); } int QGraphicsItem_InputMethodHints(const QGraphicsItem* self) { Qt::InputMethodHints _ret = self->inputMethodHints(); return static_cast(_ret); } void QGraphicsItem_SetInputMethodHints(QGraphicsItem* self, int hints) { self->setInputMethodHints(static_cast(hints)); } int QGraphicsItem_Type(const QGraphicsItem* self) { return self->type(); } void QGraphicsItem_InstallSceneEventFilter(QGraphicsItem* self, QGraphicsItem* filterItem) { self->installSceneEventFilter(filterItem); } void QGraphicsItem_RemoveSceneEventFilter(QGraphicsItem* self, QGraphicsItem* filterItem) { self->removeSceneEventFilter(filterItem); } void QGraphicsItem_SetFlag2(QGraphicsItem* self, int flag, bool enabled) { self->setFlag(static_cast(flag), enabled); } void QGraphicsItem_SetCacheMode2(QGraphicsItem* self, int mode, QSize* cacheSize) { self->setCacheMode(static_cast(mode), *cacheSize); } void QGraphicsItem_SetFocus1(QGraphicsItem* self, int focusReason) { self->setFocus(static_cast(focusReason)); } void QGraphicsItem_EnsureVisible1(QGraphicsItem* self, QRectF* rect) { self->ensureVisible(*rect); } void QGraphicsItem_EnsureVisible22(QGraphicsItem* self, QRectF* rect, int xmargin) { self->ensureVisible(*rect, static_cast(xmargin)); } void QGraphicsItem_EnsureVisible3(QGraphicsItem* self, QRectF* rect, int xmargin, int ymargin) { self->ensureVisible(*rect, static_cast(xmargin), static_cast(ymargin)); } void QGraphicsItem_EnsureVisible5(QGraphicsItem* self, double x, double y, double w, double h, int xmargin) { self->ensureVisible(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(xmargin)); } void QGraphicsItem_EnsureVisible6(QGraphicsItem* self, double x, double y, double w, double h, int xmargin, int ymargin) { self->ensureVisible(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(xmargin), static_cast(ymargin)); } QTransform* QGraphicsItem_ItemTransform2(const QGraphicsItem* self, QGraphicsItem* other, bool* ok) { return new QTransform(self->itemTransform(other, ok)); } void QGraphicsItem_SetTransform2(QGraphicsItem* self, QTransform* matrix, bool combine) { self->setTransform(*matrix, combine); } struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode) { QList _ret = self->collidingItems(static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _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; } bool QGraphicsItem_IsObscured1(const QGraphicsItem* self, QRectF* rect) { return self->isObscured(*rect); } void QGraphicsItem_Update1(QGraphicsItem* self, QRectF* rect) { self->update(*rect); } void QGraphicsItem_Scroll3(QGraphicsItem* self, double dx, double dy, QRectF* rect) { self->scroll(static_cast(dx), static_cast(dy), *rect); } void QGraphicsItem_override_virtual_Advance(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__Advance = slot; } void QGraphicsItem_virtualbase_Advance(void* self, int phase) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_Advance(phase); } void QGraphicsItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__BoundingRect = slot; } void QGraphicsItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_Shape(); } void QGraphicsItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__Contains = slot; } bool QGraphicsItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_Contains(point); } void QGraphicsItem_override_virtual_CollidesWithItem(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__CollidesWithItem = slot; } bool QGraphicsItem_virtualbase_CollidesWithItem(const void* self, QGraphicsItem* other, int mode) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_CollidesWithItem(other, mode); } void QGraphicsItem_override_virtual_CollidesWithPath(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__CollidesWithPath = slot; } bool QGraphicsItem_virtualbase_CollidesWithPath(const void* self, QPainterPath* path, int mode) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_CollidesWithPath(path, mode); } void QGraphicsItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__Paint = slot; } void QGraphicsItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__Type = slot; } int QGraphicsItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_Type(); } void QGraphicsItem_override_virtual_SceneEventFilter(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__SceneEventFilter = slot; } bool QGraphicsItem_virtualbase_SceneEventFilter(void* self, QGraphicsItem* watched, QEvent* event) { return ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_SceneEventFilter(watched, event); } void QGraphicsItem_override_virtual_SceneEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__SceneEvent = slot; } bool QGraphicsItem_virtualbase_SceneEvent(void* self, QEvent* event) { return ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_SceneEvent(event); } void QGraphicsItem_override_virtual_ContextMenuEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__ContextMenuEvent = slot; } void QGraphicsItem_virtualbase_ContextMenuEvent(void* self, QGraphicsSceneContextMenuEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_ContextMenuEvent(event); } void QGraphicsItem_override_virtual_DragEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__DragEnterEvent = slot; } void QGraphicsItem_virtualbase_DragEnterEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_DragEnterEvent(event); } void QGraphicsItem_override_virtual_DragLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__DragLeaveEvent = slot; } void QGraphicsItem_virtualbase_DragLeaveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_DragLeaveEvent(event); } void QGraphicsItem_override_virtual_DragMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__DragMoveEvent = slot; } void QGraphicsItem_virtualbase_DragMoveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_DragMoveEvent(event); } void QGraphicsItem_override_virtual_DropEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__DropEvent = slot; } void QGraphicsItem_virtualbase_DropEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_DropEvent(event); } void QGraphicsItem_override_virtual_FocusInEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__FocusInEvent = slot; } void QGraphicsItem_virtualbase_FocusInEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_FocusInEvent(event); } void QGraphicsItem_override_virtual_FocusOutEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__FocusOutEvent = slot; } void QGraphicsItem_virtualbase_FocusOutEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_FocusOutEvent(event); } void QGraphicsItem_override_virtual_HoverEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__HoverEnterEvent = slot; } void QGraphicsItem_virtualbase_HoverEnterEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_HoverEnterEvent(event); } void QGraphicsItem_override_virtual_HoverMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__HoverMoveEvent = slot; } void QGraphicsItem_virtualbase_HoverMoveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_HoverMoveEvent(event); } void QGraphicsItem_override_virtual_HoverLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__HoverLeaveEvent = slot; } void QGraphicsItem_virtualbase_HoverLeaveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_HoverLeaveEvent(event); } void QGraphicsItem_override_virtual_KeyPressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__KeyPressEvent = slot; } void QGraphicsItem_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_KeyPressEvent(event); } void QGraphicsItem_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__KeyReleaseEvent = slot; } void QGraphicsItem_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_KeyReleaseEvent(event); } void QGraphicsItem_override_virtual_MousePressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__MousePressEvent = slot; } void QGraphicsItem_virtualbase_MousePressEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_MousePressEvent(event); } void QGraphicsItem_override_virtual_MouseMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__MouseMoveEvent = slot; } void QGraphicsItem_virtualbase_MouseMoveEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_MouseMoveEvent(event); } void QGraphicsItem_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__MouseReleaseEvent = slot; } void QGraphicsItem_virtualbase_MouseReleaseEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_MouseReleaseEvent(event); } void QGraphicsItem_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__MouseDoubleClickEvent = slot; } void QGraphicsItem_virtualbase_MouseDoubleClickEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_MouseDoubleClickEvent(event); } void QGraphicsItem_override_virtual_WheelEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__WheelEvent = slot; } void QGraphicsItem_virtualbase_WheelEvent(void* self, QGraphicsSceneWheelEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_WheelEvent(event); } void QGraphicsItem_override_virtual_InputMethodEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__InputMethodEvent = slot; } void QGraphicsItem_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_InputMethodEvent(event); } void QGraphicsItem_override_virtual_InputMethodQuery(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__InputMethodQuery = slot; } QVariant* QGraphicsItem_virtualbase_InputMethodQuery(const void* self, int query) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_InputMethodQuery(query); } void QGraphicsItem_override_virtual_ItemChange(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__ItemChange = slot; } QVariant* QGraphicsItem_virtualbase_ItemChange(void* self, int change, QVariant* value) { return ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_ItemChange(change, value); } void QGraphicsItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__SetExtension = slot; } void QGraphicsItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsItem_Delete(QGraphicsItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsObject : public virtual QGraphicsObject { public: MiqtVirtualQGraphicsObject(): QGraphicsObject() {}; MiqtVirtualQGraphicsObject(QGraphicsItem* parent): QGraphicsObject(parent) {}; virtual ~MiqtVirtualQGraphicsObject() = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; // Subclass to allow providing a Go implementation virtual bool event(QEvent* ev) override { if (handle__Event == 0) { return QGraphicsObject::event(ev); } QEvent* sigval1 = ev; bool callback_return_value = miqt_exec_callback_QGraphicsObject_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* ev) { return QGraphicsObject::event(ev); } // 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 QGraphicsObject::eventFilter(watched, event); } QObject* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QGraphicsObject_EventFilter(this, handle__EventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_EventFilter(QObject* watched, QEvent* event) { return QGraphicsObject::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) { QGraphicsObject::timerEvent(event); return; } QTimerEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_TimerEvent(this, handle__TimerEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_TimerEvent(QTimerEvent* event) { QGraphicsObject::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) { QGraphicsObject::childEvent(event); return; } QChildEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_ChildEvent(this, handle__ChildEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ChildEvent(QChildEvent* event) { QGraphicsObject::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) { QGraphicsObject::customEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_CustomEvent(this, handle__CustomEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_CustomEvent(QEvent* event) { QGraphicsObject::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) { QGraphicsObject::connectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QGraphicsObject_ConnectNotify(this, handle__ConnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_ConnectNotify(QMetaMethod* signal) { QGraphicsObject::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) { QGraphicsObject::disconnectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QGraphicsObject_DisconnectNotify(this, handle__DisconnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_DisconnectNotify(QMetaMethod* signal) { QGraphicsObject::disconnectNotify(*signal); } // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; // Subclass to allow providing a Go implementation virtual void advance(int phase) override { if (handle__Advance == 0) { QGraphicsObject::advance(phase); return; } int sigval1 = phase; miqt_exec_callback_QGraphicsObject_Advance(this, handle__Advance, sigval1); } // Wrapper to allow calling protected method void virtualbase_Advance(int phase) { QGraphicsObject::advance(static_cast(phase)); } // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QRectF(); // Pure virtual, there is no base we can call } QRectF* callback_return_value = miqt_exec_callback_QGraphicsObject_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsObject::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsObject_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsObject::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsObject::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsObject_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsObject::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithItem = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithItem == 0) { return QGraphicsObject::collidesWithItem(other, mode); } QGraphicsItem* sigval1 = (QGraphicsItem*) other; Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsObject_CollidesWithItem(const_cast(this), handle__CollidesWithItem, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithItem(QGraphicsItem* other, int mode) const { return QGraphicsObject::collidesWithItem(other, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithPath = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithPath == 0) { return QGraphicsObject::collidesWithPath(path, mode); } const QPainterPath& path_ret = path; // Cast returned reference into pointer QPainterPath* sigval1 = const_cast(&path_ret); Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsObject_CollidesWithPath(const_cast(this), handle__CollidesWithPath, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithPath(QPainterPath* path, int mode) const { return QGraphicsObject::collidesWithPath(*path, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsObject::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsObject_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsObject::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsObject::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsObject_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsObject::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { return; // Pure virtual, there is no base we can call } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsObject_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsObject::type(); } int callback_return_value = miqt_exec_callback_QGraphicsObject_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsObject::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEventFilter = 0; // Subclass to allow providing a Go implementation virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event) override { if (handle__SceneEventFilter == 0) { return QGraphicsObject::sceneEventFilter(watched, event); } QGraphicsItem* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QGraphicsObject_SceneEventFilter(this, handle__SceneEventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QGraphicsObject::sceneEventFilter(watched, event); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEvent = 0; // Subclass to allow providing a Go implementation virtual bool sceneEvent(QEvent* event) override { if (handle__SceneEvent == 0) { return QGraphicsObject::sceneEvent(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QGraphicsObject_SceneEvent(this, handle__SceneEvent, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEvent(QEvent* event) { return QGraphicsObject::sceneEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ContextMenuEvent = 0; // Subclass to allow providing a Go implementation virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override { if (handle__ContextMenuEvent == 0) { QGraphicsObject::contextMenuEvent(event); return; } QGraphicsSceneContextMenuEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ContextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsObject::contextMenuEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragEnterEvent == 0) { QGraphicsObject::dragEnterEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_DragEnterEvent(this, handle__DragEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsObject::dragEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragLeaveEvent == 0) { QGraphicsObject::dragLeaveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_DragLeaveEvent(this, handle__DragLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsObject::dragLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragMoveEvent == 0) { QGraphicsObject::dragMoveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_DragMoveEvent(this, handle__DragMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsObject::dragMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DropEvent = 0; // Subclass to allow providing a Go implementation virtual void dropEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DropEvent == 0) { QGraphicsObject::dropEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_DropEvent(this, handle__DropEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsObject::dropEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusInEvent = 0; // Subclass to allow providing a Go implementation virtual void focusInEvent(QFocusEvent* event) override { if (handle__FocusInEvent == 0) { QGraphicsObject::focusInEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_FocusInEvent(this, handle__FocusInEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusInEvent(QFocusEvent* event) { QGraphicsObject::focusInEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusOutEvent = 0; // Subclass to allow providing a Go implementation virtual void focusOutEvent(QFocusEvent* event) override { if (handle__FocusOutEvent == 0) { QGraphicsObject::focusOutEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_FocusOutEvent(this, handle__FocusOutEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusOutEvent(QFocusEvent* event) { QGraphicsObject::focusOutEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverEnterEvent == 0) { QGraphicsObject::hoverEnterEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_HoverEnterEvent(this, handle__HoverEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsObject::hoverEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverMoveEvent == 0) { QGraphicsObject::hoverMoveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_HoverMoveEvent(this, handle__HoverMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsObject::hoverMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverLeaveEvent == 0) { QGraphicsObject::hoverLeaveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_HoverLeaveEvent(this, handle__HoverLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsObject::hoverLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyPressEvent = 0; // Subclass to allow providing a Go implementation virtual void keyPressEvent(QKeyEvent* event) override { if (handle__KeyPressEvent == 0) { QGraphicsObject::keyPressEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_KeyPressEvent(this, handle__KeyPressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyPressEvent(QKeyEvent* event) { QGraphicsObject::keyPressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void keyReleaseEvent(QKeyEvent* event) override { if (handle__KeyReleaseEvent == 0) { QGraphicsObject::keyReleaseEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyReleaseEvent(QKeyEvent* event) { QGraphicsObject::keyReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MousePressEvent = 0; // Subclass to allow providing a Go implementation virtual void mousePressEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MousePressEvent == 0) { QGraphicsObject::mousePressEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_MousePressEvent(this, handle__MousePressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsObject::mousePressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseMoveEvent == 0) { QGraphicsObject::mouseMoveEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsObject::mouseMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseReleaseEvent == 0) { QGraphicsObject::mouseReleaseEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsObject::mouseReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseDoubleClickEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseDoubleClickEvent == 0) { QGraphicsObject::mouseDoubleClickEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsObject::mouseDoubleClickEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__WheelEvent = 0; // Subclass to allow providing a Go implementation virtual void wheelEvent(QGraphicsSceneWheelEvent* event) override { if (handle__WheelEvent == 0) { QGraphicsObject::wheelEvent(event); return; } QGraphicsSceneWheelEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_WheelEvent(this, handle__WheelEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_WheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsObject::wheelEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodEvent = 0; // Subclass to allow providing a Go implementation virtual void inputMethodEvent(QInputMethodEvent* event) override { if (handle__InputMethodEvent == 0) { QGraphicsObject::inputMethodEvent(event); return; } QInputMethodEvent* sigval1 = event; miqt_exec_callback_QGraphicsObject_InputMethodEvent(this, handle__InputMethodEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_InputMethodEvent(QInputMethodEvent* event) { QGraphicsObject::inputMethodEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; // Subclass to allow providing a Go implementation virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const override { if (handle__InputMethodQuery == 0) { return QGraphicsObject::inputMethodQuery(query); } Qt::InputMethodQuery query_ret = query; int sigval1 = static_cast(query_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsObject_InputMethodQuery(const_cast(this), handle__InputMethodQuery, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_InputMethodQuery(int query) const { return new QVariant(QGraphicsObject::inputMethodQuery(static_cast(query))); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemChange = 0; // Subclass to allow providing a Go implementation virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) override { if (handle__ItemChange == 0) { return QGraphicsObject::itemChange(change, value); } QGraphicsItem::GraphicsItemChange change_ret = change; int sigval1 = static_cast(change_ret); const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&value_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsObject_ItemChange(this, handle__ItemChange, sigval1, sigval2); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_ItemChange(int change, QVariant* value) { return new QVariant(QGraphicsObject::itemChange(static_cast(change), *value)); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsObject::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsObject_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsObject::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsObject::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsObject_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsObject::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsObject::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsObject_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsObject::extension(*variant)); } }; QGraphicsObject* QGraphicsObject_new() { return new MiqtVirtualQGraphicsObject(); } QGraphicsObject* QGraphicsObject_new2(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsObject(parent); } void QGraphicsObject_virtbase(QGraphicsObject* src, QObject** outptr_QObject, QGraphicsItem** outptr_QGraphicsItem) { *outptr_QObject = static_cast(src); *outptr_QGraphicsItem = static_cast(src); } QMetaObject* QGraphicsObject_MetaObject(const QGraphicsObject* self) { return (QMetaObject*) self->metaObject(); } void* QGraphicsObject_Metacast(QGraphicsObject* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QGraphicsObject_Tr(const char* s) { QString _ret = QGraphicsObject::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; } void QGraphicsObject_GrabGesture(QGraphicsObject* self, int typeVal) { self->grabGesture(static_cast(typeVal)); } void QGraphicsObject_UngrabGesture(QGraphicsObject* self, int typeVal) { self->ungrabGesture(static_cast(typeVal)); } void QGraphicsObject_ParentChanged(QGraphicsObject* self) { self->parentChanged(); } void QGraphicsObject_connect_ParentChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::parentChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_ParentChanged(slot); }); } void QGraphicsObject_OpacityChanged(QGraphicsObject* self) { self->opacityChanged(); } void QGraphicsObject_connect_OpacityChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::opacityChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_OpacityChanged(slot); }); } void QGraphicsObject_VisibleChanged(QGraphicsObject* self) { self->visibleChanged(); } void QGraphicsObject_connect_VisibleChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::visibleChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_VisibleChanged(slot); }); } void QGraphicsObject_EnabledChanged(QGraphicsObject* self) { self->enabledChanged(); } void QGraphicsObject_connect_EnabledChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::enabledChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_EnabledChanged(slot); }); } void QGraphicsObject_XChanged(QGraphicsObject* self) { self->xChanged(); } void QGraphicsObject_connect_XChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::xChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_XChanged(slot); }); } void QGraphicsObject_YChanged(QGraphicsObject* self) { self->yChanged(); } void QGraphicsObject_connect_YChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::yChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_YChanged(slot); }); } void QGraphicsObject_ZChanged(QGraphicsObject* self) { self->zChanged(); } void QGraphicsObject_connect_ZChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::zChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_ZChanged(slot); }); } void QGraphicsObject_RotationChanged(QGraphicsObject* self) { self->rotationChanged(); } void QGraphicsObject_connect_RotationChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::rotationChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_RotationChanged(slot); }); } void QGraphicsObject_ScaleChanged(QGraphicsObject* self) { self->scaleChanged(); } void QGraphicsObject_connect_ScaleChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::scaleChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_ScaleChanged(slot); }); } void QGraphicsObject_ChildrenChanged(QGraphicsObject* self) { self->childrenChanged(); } void QGraphicsObject_connect_ChildrenChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::childrenChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_ChildrenChanged(slot); }); } void QGraphicsObject_WidthChanged(QGraphicsObject* self) { self->widthChanged(); } void QGraphicsObject_connect_WidthChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::widthChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_WidthChanged(slot); }); } void QGraphicsObject_HeightChanged(QGraphicsObject* self) { self->heightChanged(); } void QGraphicsObject_connect_HeightChanged(QGraphicsObject* self, intptr_t slot) { MiqtVirtualQGraphicsObject::connect(self, static_cast(&QGraphicsObject::heightChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_HeightChanged(slot); }); } struct miqt_string QGraphicsObject_Tr2(const char* s, const char* c) { QString _ret = QGraphicsObject::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 QGraphicsObject_Tr3(const char* s, const char* c, int n) { QString _ret = QGraphicsObject::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; } void QGraphicsObject_GrabGesture2(QGraphicsObject* self, int typeVal, int flags) { self->grabGesture(static_cast(typeVal), static_cast(flags)); } void QGraphicsObject_override_virtual_Event(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__Event = slot; } bool QGraphicsObject_virtualbase_Event(void* self, QEvent* ev) { return ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_Event(ev); } void QGraphicsObject_override_virtual_EventFilter(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__EventFilter = slot; } bool QGraphicsObject_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_EventFilter(watched, event); } void QGraphicsObject_override_virtual_TimerEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__TimerEvent = slot; } void QGraphicsObject_virtualbase_TimerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_TimerEvent(event); } void QGraphicsObject_override_virtual_ChildEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__ChildEvent = slot; } void QGraphicsObject_virtualbase_ChildEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_ChildEvent(event); } void QGraphicsObject_override_virtual_CustomEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__CustomEvent = slot; } void QGraphicsObject_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_CustomEvent(event); } void QGraphicsObject_override_virtual_ConnectNotify(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__ConnectNotify = slot; } void QGraphicsObject_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_ConnectNotify(signal); } void QGraphicsObject_override_virtual_DisconnectNotify(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__DisconnectNotify = slot; } void QGraphicsObject_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_DisconnectNotify(signal); } void QGraphicsObject_override_virtual_Advance(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__Advance = slot; } void QGraphicsObject_virtualbase_Advance(void* self, int phase) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_Advance(phase); } void QGraphicsObject_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__BoundingRect = slot; } void QGraphicsObject_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsObject_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_Shape(); } void QGraphicsObject_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__Contains = slot; } bool QGraphicsObject_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_Contains(point); } void QGraphicsObject_override_virtual_CollidesWithItem(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__CollidesWithItem = slot; } bool QGraphicsObject_virtualbase_CollidesWithItem(const void* self, QGraphicsItem* other, int mode) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_CollidesWithItem(other, mode); } void QGraphicsObject_override_virtual_CollidesWithPath(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__CollidesWithPath = slot; } bool QGraphicsObject_virtualbase_CollidesWithPath(const void* self, QPainterPath* path, int mode) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_CollidesWithPath(path, mode); } void QGraphicsObject_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsObject_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsObject_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsObject_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsObject_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__Paint = slot; } void QGraphicsObject_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__Type = slot; } int QGraphicsObject_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_Type(); } void QGraphicsObject_override_virtual_SceneEventFilter(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__SceneEventFilter = slot; } bool QGraphicsObject_virtualbase_SceneEventFilter(void* self, QGraphicsItem* watched, QEvent* event) { return ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_SceneEventFilter(watched, event); } void QGraphicsObject_override_virtual_SceneEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__SceneEvent = slot; } bool QGraphicsObject_virtualbase_SceneEvent(void* self, QEvent* event) { return ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_SceneEvent(event); } void QGraphicsObject_override_virtual_ContextMenuEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__ContextMenuEvent = slot; } void QGraphicsObject_virtualbase_ContextMenuEvent(void* self, QGraphicsSceneContextMenuEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_ContextMenuEvent(event); } void QGraphicsObject_override_virtual_DragEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__DragEnterEvent = slot; } void QGraphicsObject_virtualbase_DragEnterEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_DragEnterEvent(event); } void QGraphicsObject_override_virtual_DragLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__DragLeaveEvent = slot; } void QGraphicsObject_virtualbase_DragLeaveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_DragLeaveEvent(event); } void QGraphicsObject_override_virtual_DragMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__DragMoveEvent = slot; } void QGraphicsObject_virtualbase_DragMoveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_DragMoveEvent(event); } void QGraphicsObject_override_virtual_DropEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__DropEvent = slot; } void QGraphicsObject_virtualbase_DropEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_DropEvent(event); } void QGraphicsObject_override_virtual_FocusInEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__FocusInEvent = slot; } void QGraphicsObject_virtualbase_FocusInEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_FocusInEvent(event); } void QGraphicsObject_override_virtual_FocusOutEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__FocusOutEvent = slot; } void QGraphicsObject_virtualbase_FocusOutEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_FocusOutEvent(event); } void QGraphicsObject_override_virtual_HoverEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__HoverEnterEvent = slot; } void QGraphicsObject_virtualbase_HoverEnterEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_HoverEnterEvent(event); } void QGraphicsObject_override_virtual_HoverMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__HoverMoveEvent = slot; } void QGraphicsObject_virtualbase_HoverMoveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_HoverMoveEvent(event); } void QGraphicsObject_override_virtual_HoverLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__HoverLeaveEvent = slot; } void QGraphicsObject_virtualbase_HoverLeaveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_HoverLeaveEvent(event); } void QGraphicsObject_override_virtual_KeyPressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__KeyPressEvent = slot; } void QGraphicsObject_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_KeyPressEvent(event); } void QGraphicsObject_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__KeyReleaseEvent = slot; } void QGraphicsObject_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_KeyReleaseEvent(event); } void QGraphicsObject_override_virtual_MousePressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__MousePressEvent = slot; } void QGraphicsObject_virtualbase_MousePressEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_MousePressEvent(event); } void QGraphicsObject_override_virtual_MouseMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__MouseMoveEvent = slot; } void QGraphicsObject_virtualbase_MouseMoveEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_MouseMoveEvent(event); } void QGraphicsObject_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__MouseReleaseEvent = slot; } void QGraphicsObject_virtualbase_MouseReleaseEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_MouseReleaseEvent(event); } void QGraphicsObject_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__MouseDoubleClickEvent = slot; } void QGraphicsObject_virtualbase_MouseDoubleClickEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_MouseDoubleClickEvent(event); } void QGraphicsObject_override_virtual_WheelEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__WheelEvent = slot; } void QGraphicsObject_virtualbase_WheelEvent(void* self, QGraphicsSceneWheelEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_WheelEvent(event); } void QGraphicsObject_override_virtual_InputMethodEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__InputMethodEvent = slot; } void QGraphicsObject_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_InputMethodEvent(event); } void QGraphicsObject_override_virtual_InputMethodQuery(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__InputMethodQuery = slot; } QVariant* QGraphicsObject_virtualbase_InputMethodQuery(const void* self, int query) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_InputMethodQuery(query); } void QGraphicsObject_override_virtual_ItemChange(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__ItemChange = slot; } QVariant* QGraphicsObject_virtualbase_ItemChange(void* self, int change, QVariant* value) { return ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_ItemChange(change, value); } void QGraphicsObject_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsObject_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsObject_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__SetExtension = slot; } void QGraphicsObject_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsObject*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsObject_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsObject*)(self) )->handle__Extension = slot; } QVariant* QGraphicsObject_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_Extension(variant); } void QGraphicsObject_Delete(QGraphicsObject* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQAbstractGraphicsShapeItem : public virtual QAbstractGraphicsShapeItem { public: MiqtVirtualQAbstractGraphicsShapeItem(): QAbstractGraphicsShapeItem() {}; MiqtVirtualQAbstractGraphicsShapeItem(QGraphicsItem* parent): QAbstractGraphicsShapeItem(parent) {}; virtual ~MiqtVirtualQAbstractGraphicsShapeItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QAbstractGraphicsShapeItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QAbstractGraphicsShapeItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QAbstractGraphicsShapeItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QAbstractGraphicsShapeItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; // Subclass to allow providing a Go implementation virtual void advance(int phase) override { if (handle__Advance == 0) { QAbstractGraphicsShapeItem::advance(phase); return; } int sigval1 = phase; miqt_exec_callback_QAbstractGraphicsShapeItem_Advance(this, handle__Advance, sigval1); } // Wrapper to allow calling protected method void virtualbase_Advance(int phase) { QAbstractGraphicsShapeItem::advance(static_cast(phase)); } // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QRectF(); // Pure virtual, there is no base we can call } QRectF* callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QAbstractGraphicsShapeItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QAbstractGraphicsShapeItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QAbstractGraphicsShapeItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QAbstractGraphicsShapeItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithItem = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithItem == 0) { return QAbstractGraphicsShapeItem::collidesWithItem(other, mode); } QGraphicsItem* sigval1 = (QGraphicsItem*) other; Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_CollidesWithItem(const_cast(this), handle__CollidesWithItem, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithItem(QGraphicsItem* other, int mode) const { return QAbstractGraphicsShapeItem::collidesWithItem(other, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithPath = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithPath == 0) { return QAbstractGraphicsShapeItem::collidesWithPath(path, mode); } const QPainterPath& path_ret = path; // Cast returned reference into pointer QPainterPath* sigval1 = const_cast(&path_ret); Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_CollidesWithPath(const_cast(this), handle__CollidesWithPath, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithPath(QPainterPath* path, int mode) const { return QAbstractGraphicsShapeItem::collidesWithPath(*path, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { return; // Pure virtual, there is no base we can call } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QAbstractGraphicsShapeItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QAbstractGraphicsShapeItem::type(); } int callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QAbstractGraphicsShapeItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEventFilter = 0; // Subclass to allow providing a Go implementation virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event) override { if (handle__SceneEventFilter == 0) { return QAbstractGraphicsShapeItem::sceneEventFilter(watched, event); } QGraphicsItem* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_SceneEventFilter(this, handle__SceneEventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QAbstractGraphicsShapeItem::sceneEventFilter(watched, event); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEvent = 0; // Subclass to allow providing a Go implementation virtual bool sceneEvent(QEvent* event) override { if (handle__SceneEvent == 0) { return QAbstractGraphicsShapeItem::sceneEvent(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_SceneEvent(this, handle__SceneEvent, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEvent(QEvent* event) { return QAbstractGraphicsShapeItem::sceneEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ContextMenuEvent = 0; // Subclass to allow providing a Go implementation virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override { if (handle__ContextMenuEvent == 0) { QAbstractGraphicsShapeItem::contextMenuEvent(event); return; } QGraphicsSceneContextMenuEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ContextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QAbstractGraphicsShapeItem::contextMenuEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragEnterEvent == 0) { QAbstractGraphicsShapeItem::dragEnterEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_DragEnterEvent(this, handle__DragEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragEnterEvent(QGraphicsSceneDragDropEvent* event) { QAbstractGraphicsShapeItem::dragEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragLeaveEvent == 0) { QAbstractGraphicsShapeItem::dragLeaveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_DragLeaveEvent(this, handle__DragLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QAbstractGraphicsShapeItem::dragLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragMoveEvent == 0) { QAbstractGraphicsShapeItem::dragMoveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_DragMoveEvent(this, handle__DragMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragMoveEvent(QGraphicsSceneDragDropEvent* event) { QAbstractGraphicsShapeItem::dragMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DropEvent = 0; // Subclass to allow providing a Go implementation virtual void dropEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DropEvent == 0) { QAbstractGraphicsShapeItem::dropEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_DropEvent(this, handle__DropEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DropEvent(QGraphicsSceneDragDropEvent* event) { QAbstractGraphicsShapeItem::dropEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusInEvent = 0; // Subclass to allow providing a Go implementation virtual void focusInEvent(QFocusEvent* event) override { if (handle__FocusInEvent == 0) { QAbstractGraphicsShapeItem::focusInEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_FocusInEvent(this, handle__FocusInEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusInEvent(QFocusEvent* event) { QAbstractGraphicsShapeItem::focusInEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusOutEvent = 0; // Subclass to allow providing a Go implementation virtual void focusOutEvent(QFocusEvent* event) override { if (handle__FocusOutEvent == 0) { QAbstractGraphicsShapeItem::focusOutEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_FocusOutEvent(this, handle__FocusOutEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusOutEvent(QFocusEvent* event) { QAbstractGraphicsShapeItem::focusOutEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverEnterEvent == 0) { QAbstractGraphicsShapeItem::hoverEnterEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_HoverEnterEvent(this, handle__HoverEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverEnterEvent(QGraphicsSceneHoverEvent* event) { QAbstractGraphicsShapeItem::hoverEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverMoveEvent == 0) { QAbstractGraphicsShapeItem::hoverMoveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_HoverMoveEvent(this, handle__HoverMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverMoveEvent(QGraphicsSceneHoverEvent* event) { QAbstractGraphicsShapeItem::hoverMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverLeaveEvent == 0) { QAbstractGraphicsShapeItem::hoverLeaveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_HoverLeaveEvent(this, handle__HoverLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QAbstractGraphicsShapeItem::hoverLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyPressEvent = 0; // Subclass to allow providing a Go implementation virtual void keyPressEvent(QKeyEvent* event) override { if (handle__KeyPressEvent == 0) { QAbstractGraphicsShapeItem::keyPressEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_KeyPressEvent(this, handle__KeyPressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyPressEvent(QKeyEvent* event) { QAbstractGraphicsShapeItem::keyPressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void keyReleaseEvent(QKeyEvent* event) override { if (handle__KeyReleaseEvent == 0) { QAbstractGraphicsShapeItem::keyReleaseEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyReleaseEvent(QKeyEvent* event) { QAbstractGraphicsShapeItem::keyReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MousePressEvent = 0; // Subclass to allow providing a Go implementation virtual void mousePressEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MousePressEvent == 0) { QAbstractGraphicsShapeItem::mousePressEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_MousePressEvent(this, handle__MousePressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MousePressEvent(QGraphicsSceneMouseEvent* event) { QAbstractGraphicsShapeItem::mousePressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseMoveEvent == 0) { QAbstractGraphicsShapeItem::mouseMoveEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseMoveEvent(QGraphicsSceneMouseEvent* event) { QAbstractGraphicsShapeItem::mouseMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseReleaseEvent == 0) { QAbstractGraphicsShapeItem::mouseReleaseEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QAbstractGraphicsShapeItem::mouseReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseDoubleClickEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseDoubleClickEvent == 0) { QAbstractGraphicsShapeItem::mouseDoubleClickEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QAbstractGraphicsShapeItem::mouseDoubleClickEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__WheelEvent = 0; // Subclass to allow providing a Go implementation virtual void wheelEvent(QGraphicsSceneWheelEvent* event) override { if (handle__WheelEvent == 0) { QAbstractGraphicsShapeItem::wheelEvent(event); return; } QGraphicsSceneWheelEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_WheelEvent(this, handle__WheelEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_WheelEvent(QGraphicsSceneWheelEvent* event) { QAbstractGraphicsShapeItem::wheelEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodEvent = 0; // Subclass to allow providing a Go implementation virtual void inputMethodEvent(QInputMethodEvent* event) override { if (handle__InputMethodEvent == 0) { QAbstractGraphicsShapeItem::inputMethodEvent(event); return; } QInputMethodEvent* sigval1 = event; miqt_exec_callback_QAbstractGraphicsShapeItem_InputMethodEvent(this, handle__InputMethodEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_InputMethodEvent(QInputMethodEvent* event) { QAbstractGraphicsShapeItem::inputMethodEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; // Subclass to allow providing a Go implementation virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const override { if (handle__InputMethodQuery == 0) { return QAbstractGraphicsShapeItem::inputMethodQuery(query); } Qt::InputMethodQuery query_ret = query; int sigval1 = static_cast(query_ret); QVariant* callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_InputMethodQuery(const_cast(this), handle__InputMethodQuery, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_InputMethodQuery(int query) const { return new QVariant(QAbstractGraphicsShapeItem::inputMethodQuery(static_cast(query))); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemChange = 0; // Subclass to allow providing a Go implementation virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) override { if (handle__ItemChange == 0) { return QAbstractGraphicsShapeItem::itemChange(change, value); } QGraphicsItem::GraphicsItemChange change_ret = change; int sigval1 = static_cast(change_ret); const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&value_ret); QVariant* callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_ItemChange(this, handle__ItemChange, sigval1, sigval2); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_ItemChange(int change, QVariant* value) { return new QVariant(QAbstractGraphicsShapeItem::itemChange(static_cast(change), *value)); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QAbstractGraphicsShapeItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QAbstractGraphicsShapeItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QAbstractGraphicsShapeItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QAbstractGraphicsShapeItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QAbstractGraphicsShapeItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QAbstractGraphicsShapeItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QAbstractGraphicsShapeItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QAbstractGraphicsShapeItem::extension(*variant)); } }; QAbstractGraphicsShapeItem* QAbstractGraphicsShapeItem_new() { return new MiqtVirtualQAbstractGraphicsShapeItem(); } QAbstractGraphicsShapeItem* QAbstractGraphicsShapeItem_new2(QGraphicsItem* parent) { return new MiqtVirtualQAbstractGraphicsShapeItem(parent); } void QAbstractGraphicsShapeItem_virtbase(QAbstractGraphicsShapeItem* src, QGraphicsItem** outptr_QGraphicsItem) { *outptr_QGraphicsItem = static_cast(src); } QPen* QAbstractGraphicsShapeItem_Pen(const QAbstractGraphicsShapeItem* self) { return new QPen(self->pen()); } void QAbstractGraphicsShapeItem_SetPen(QAbstractGraphicsShapeItem* self, QPen* pen) { self->setPen(*pen); } QBrush* QAbstractGraphicsShapeItem_Brush(const QAbstractGraphicsShapeItem* self) { return new QBrush(self->brush()); } void QAbstractGraphicsShapeItem_SetBrush(QAbstractGraphicsShapeItem* self, QBrush* brush) { self->setBrush(*brush); } bool QAbstractGraphicsShapeItem_IsObscuredBy(const QAbstractGraphicsShapeItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QAbstractGraphicsShapeItem_OpaqueArea(const QAbstractGraphicsShapeItem* self) { return new QPainterPath(self->opaqueArea()); } void QAbstractGraphicsShapeItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__IsObscuredBy = slot; } bool QAbstractGraphicsShapeItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_IsObscuredBy(item); } void QAbstractGraphicsShapeItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QAbstractGraphicsShapeItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_OpaqueArea(); } void QAbstractGraphicsShapeItem_override_virtual_Advance(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__Advance = slot; } void QAbstractGraphicsShapeItem_virtualbase_Advance(void* self, int phase) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_Advance(phase); } void QAbstractGraphicsShapeItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__BoundingRect = slot; } void QAbstractGraphicsShapeItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__Shape = slot; } QPainterPath* QAbstractGraphicsShapeItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_Shape(); } void QAbstractGraphicsShapeItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__Contains = slot; } bool QAbstractGraphicsShapeItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_Contains(point); } void QAbstractGraphicsShapeItem_override_virtual_CollidesWithItem(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__CollidesWithItem = slot; } bool QAbstractGraphicsShapeItem_virtualbase_CollidesWithItem(const void* self, QGraphicsItem* other, int mode) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_CollidesWithItem(other, mode); } void QAbstractGraphicsShapeItem_override_virtual_CollidesWithPath(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__CollidesWithPath = slot; } bool QAbstractGraphicsShapeItem_virtualbase_CollidesWithPath(const void* self, QPainterPath* path, int mode) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_CollidesWithPath(path, mode); } void QAbstractGraphicsShapeItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__Paint = slot; } void QAbstractGraphicsShapeItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__Type = slot; } int QAbstractGraphicsShapeItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_Type(); } void QAbstractGraphicsShapeItem_override_virtual_SceneEventFilter(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__SceneEventFilter = slot; } bool QAbstractGraphicsShapeItem_virtualbase_SceneEventFilter(void* self, QGraphicsItem* watched, QEvent* event) { return ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_SceneEventFilter(watched, event); } void QAbstractGraphicsShapeItem_override_virtual_SceneEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__SceneEvent = slot; } bool QAbstractGraphicsShapeItem_virtualbase_SceneEvent(void* self, QEvent* event) { return ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_SceneEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_ContextMenuEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__ContextMenuEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_ContextMenuEvent(void* self, QGraphicsSceneContextMenuEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_ContextMenuEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_DragEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__DragEnterEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_DragEnterEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_DragEnterEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_DragLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__DragLeaveEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_DragLeaveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_DragLeaveEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_DragMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__DragMoveEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_DragMoveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_DragMoveEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_DropEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__DropEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_DropEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_DropEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_FocusInEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__FocusInEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_FocusInEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_FocusInEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_FocusOutEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__FocusOutEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_FocusOutEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_FocusOutEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_HoverEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__HoverEnterEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_HoverEnterEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_HoverEnterEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_HoverMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__HoverMoveEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_HoverMoveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_HoverMoveEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_HoverLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__HoverLeaveEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_HoverLeaveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_HoverLeaveEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_KeyPressEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__KeyPressEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_KeyPressEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__KeyReleaseEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_KeyReleaseEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_MousePressEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__MousePressEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_MousePressEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_MousePressEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_MouseMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__MouseMoveEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_MouseMoveEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_MouseMoveEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__MouseReleaseEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_MouseReleaseEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_MouseReleaseEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__MouseDoubleClickEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_MouseDoubleClickEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_MouseDoubleClickEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_WheelEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__WheelEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_WheelEvent(void* self, QGraphicsSceneWheelEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_WheelEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_InputMethodEvent(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__InputMethodEvent = slot; } void QAbstractGraphicsShapeItem_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_InputMethodEvent(event); } void QAbstractGraphicsShapeItem_override_virtual_InputMethodQuery(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__InputMethodQuery = slot; } QVariant* QAbstractGraphicsShapeItem_virtualbase_InputMethodQuery(const void* self, int query) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_InputMethodQuery(query); } void QAbstractGraphicsShapeItem_override_virtual_ItemChange(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__ItemChange = slot; } QVariant* QAbstractGraphicsShapeItem_virtualbase_ItemChange(void* self, int change, QVariant* value) { return ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_ItemChange(change, value); } void QAbstractGraphicsShapeItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__SupportsExtension = slot; } bool QAbstractGraphicsShapeItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_SupportsExtension(extension); } void QAbstractGraphicsShapeItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__SetExtension = slot; } void QAbstractGraphicsShapeItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QAbstractGraphicsShapeItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QAbstractGraphicsShapeItem*)(self) )->handle__Extension = slot; } QVariant* QAbstractGraphicsShapeItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_Extension(variant); } void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsPathItem : public virtual QGraphicsPathItem { public: MiqtVirtualQGraphicsPathItem(): QGraphicsPathItem() {}; MiqtVirtualQGraphicsPathItem(const QPainterPath& path): QGraphicsPathItem(path) {}; MiqtVirtualQGraphicsPathItem(QGraphicsItem* parent): QGraphicsPathItem(parent) {}; MiqtVirtualQGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent): QGraphicsPathItem(path, parent) {}; virtual ~MiqtVirtualQGraphicsPathItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsPathItem::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsPathItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsPathItem::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsPathItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsPathItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsPathItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsPathItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsPathItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsPathItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsPathItem::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsPathItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsPathItem::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsPathItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsPathItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsPathItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsPathItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsPathItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsPathItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsPathItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsPathItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsPathItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsPathItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsPathItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsPathItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsPathItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsPathItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsPathItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsPathItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsPathItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsPathItem::extension(*variant)); } }; QGraphicsPathItem* QGraphicsPathItem_new() { return new MiqtVirtualQGraphicsPathItem(); } QGraphicsPathItem* QGraphicsPathItem_new2(QPainterPath* path) { return new MiqtVirtualQGraphicsPathItem(*path); } QGraphicsPathItem* QGraphicsPathItem_new3(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsPathItem(parent); } QGraphicsPathItem* QGraphicsPathItem_new4(QPainterPath* path, QGraphicsItem* parent) { return new MiqtVirtualQGraphicsPathItem(*path, parent); } void QGraphicsPathItem_virtbase(QGraphicsPathItem* src, QAbstractGraphicsShapeItem** outptr_QAbstractGraphicsShapeItem) { *outptr_QAbstractGraphicsShapeItem = static_cast(src); } QPainterPath* QGraphicsPathItem_Path(const QGraphicsPathItem* self) { return new QPainterPath(self->path()); } void QGraphicsPathItem_SetPath(QGraphicsPathItem* self, QPainterPath* path) { self->setPath(*path); } QRectF* QGraphicsPathItem_BoundingRect(const QGraphicsPathItem* self) { return new QRectF(self->boundingRect()); } QPainterPath* QGraphicsPathItem_Shape(const QGraphicsPathItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsPathItem_Contains(const QGraphicsPathItem* self, QPointF* point) { return self->contains(*point); } void QGraphicsPathItem_Paint(QGraphicsPathItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsPathItem_IsObscuredBy(const QGraphicsPathItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsPathItem_OpaqueArea(const QGraphicsPathItem* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsPathItem_Type(const QGraphicsPathItem* self) { return self->type(); } void QGraphicsPathItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsPathItem_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_BoundingRect(); } void QGraphicsPathItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsPathItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_Shape(); } void QGraphicsPathItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__Contains = slot; } bool QGraphicsPathItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_Contains(point); } void QGraphicsPathItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__Paint = slot; } void QGraphicsPathItem_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsPathItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsPathItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsPathItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsPathItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsPathItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__Type = slot; } int QGraphicsPathItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_Type(); } void QGraphicsPathItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsPathItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsPathItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__SetExtension = slot; } void QGraphicsPathItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsPathItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPathItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsPathItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsPathItem_Delete(QGraphicsPathItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsRectItem : public virtual QGraphicsRectItem { public: MiqtVirtualQGraphicsRectItem(): QGraphicsRectItem() {}; MiqtVirtualQGraphicsRectItem(const QRectF& rect): QGraphicsRectItem(rect) {}; MiqtVirtualQGraphicsRectItem(qreal x, qreal y, qreal w, qreal h): QGraphicsRectItem(x, y, w, h) {}; MiqtVirtualQGraphicsRectItem(QGraphicsItem* parent): QGraphicsRectItem(parent) {}; MiqtVirtualQGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent): QGraphicsRectItem(rect, parent) {}; MiqtVirtualQGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent): QGraphicsRectItem(x, y, w, h, parent) {}; virtual ~MiqtVirtualQGraphicsRectItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsRectItem::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsRectItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsRectItem::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsRectItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsRectItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsRectItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsRectItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsRectItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsRectItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsRectItem::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsRectItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsRectItem::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsRectItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsRectItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsRectItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsRectItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsRectItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsRectItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsRectItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsRectItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsRectItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsRectItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsRectItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsRectItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsRectItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsRectItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsRectItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsRectItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsRectItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsRectItem::extension(*variant)); } }; QGraphicsRectItem* QGraphicsRectItem_new() { return new MiqtVirtualQGraphicsRectItem(); } QGraphicsRectItem* QGraphicsRectItem_new2(QRectF* rect) { return new MiqtVirtualQGraphicsRectItem(*rect); } QGraphicsRectItem* QGraphicsRectItem_new3(double x, double y, double w, double h) { return new MiqtVirtualQGraphicsRectItem(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } QGraphicsRectItem* QGraphicsRectItem_new4(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsRectItem(parent); } QGraphicsRectItem* QGraphicsRectItem_new5(QRectF* rect, QGraphicsItem* parent) { return new MiqtVirtualQGraphicsRectItem(*rect, parent); } QGraphicsRectItem* QGraphicsRectItem_new6(double x, double y, double w, double h, QGraphicsItem* parent) { return new MiqtVirtualQGraphicsRectItem(static_cast(x), static_cast(y), static_cast(w), static_cast(h), parent); } void QGraphicsRectItem_virtbase(QGraphicsRectItem* src, QAbstractGraphicsShapeItem** outptr_QAbstractGraphicsShapeItem) { *outptr_QAbstractGraphicsShapeItem = static_cast(src); } QRectF* QGraphicsRectItem_Rect(const QGraphicsRectItem* self) { return new QRectF(self->rect()); } void QGraphicsRectItem_SetRect(QGraphicsRectItem* self, QRectF* rect) { self->setRect(*rect); } void QGraphicsRectItem_SetRect2(QGraphicsRectItem* self, double x, double y, double w, double h) { self->setRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } QRectF* QGraphicsRectItem_BoundingRect(const QGraphicsRectItem* self) { return new QRectF(self->boundingRect()); } QPainterPath* QGraphicsRectItem_Shape(const QGraphicsRectItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsRectItem_Contains(const QGraphicsRectItem* self, QPointF* point) { return self->contains(*point); } void QGraphicsRectItem_Paint(QGraphicsRectItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsRectItem_IsObscuredBy(const QGraphicsRectItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsRectItem_OpaqueArea(const QGraphicsRectItem* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsRectItem_Type(const QGraphicsRectItem* self) { return self->type(); } void QGraphicsRectItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsRectItem_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_BoundingRect(); } void QGraphicsRectItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsRectItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_Shape(); } void QGraphicsRectItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__Contains = slot; } bool QGraphicsRectItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_Contains(point); } void QGraphicsRectItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__Paint = slot; } void QGraphicsRectItem_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsRectItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsRectItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsRectItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsRectItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsRectItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__Type = slot; } int QGraphicsRectItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_Type(); } void QGraphicsRectItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsRectItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsRectItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__SetExtension = slot; } void QGraphicsRectItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsRectItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsRectItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsRectItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsRectItem_Delete(QGraphicsRectItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsEllipseItem : public virtual QGraphicsEllipseItem { public: MiqtVirtualQGraphicsEllipseItem(): QGraphicsEllipseItem() {}; MiqtVirtualQGraphicsEllipseItem(const QRectF& rect): QGraphicsEllipseItem(rect) {}; MiqtVirtualQGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h): QGraphicsEllipseItem(x, y, w, h) {}; MiqtVirtualQGraphicsEllipseItem(QGraphicsItem* parent): QGraphicsEllipseItem(parent) {}; MiqtVirtualQGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent): QGraphicsEllipseItem(rect, parent) {}; MiqtVirtualQGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent): QGraphicsEllipseItem(x, y, w, h, parent) {}; virtual ~MiqtVirtualQGraphicsEllipseItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsEllipseItem::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsEllipseItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsEllipseItem::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsEllipseItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsEllipseItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsEllipseItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsEllipseItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsEllipseItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsEllipseItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsEllipseItem::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsEllipseItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsEllipseItem::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsEllipseItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsEllipseItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsEllipseItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsEllipseItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsEllipseItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsEllipseItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsEllipseItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsEllipseItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsEllipseItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsEllipseItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsEllipseItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsEllipseItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsEllipseItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsEllipseItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsEllipseItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsEllipseItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsEllipseItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsEllipseItem::extension(*variant)); } }; QGraphicsEllipseItem* QGraphicsEllipseItem_new() { return new MiqtVirtualQGraphicsEllipseItem(); } QGraphicsEllipseItem* QGraphicsEllipseItem_new2(QRectF* rect) { return new MiqtVirtualQGraphicsEllipseItem(*rect); } QGraphicsEllipseItem* QGraphicsEllipseItem_new3(double x, double y, double w, double h) { return new MiqtVirtualQGraphicsEllipseItem(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } QGraphicsEllipseItem* QGraphicsEllipseItem_new4(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsEllipseItem(parent); } QGraphicsEllipseItem* QGraphicsEllipseItem_new5(QRectF* rect, QGraphicsItem* parent) { return new MiqtVirtualQGraphicsEllipseItem(*rect, parent); } QGraphicsEllipseItem* QGraphicsEllipseItem_new6(double x, double y, double w, double h, QGraphicsItem* parent) { return new MiqtVirtualQGraphicsEllipseItem(static_cast(x), static_cast(y), static_cast(w), static_cast(h), parent); } void QGraphicsEllipseItem_virtbase(QGraphicsEllipseItem* src, QAbstractGraphicsShapeItem** outptr_QAbstractGraphicsShapeItem) { *outptr_QAbstractGraphicsShapeItem = static_cast(src); } QRectF* QGraphicsEllipseItem_Rect(const QGraphicsEllipseItem* self) { return new QRectF(self->rect()); } void QGraphicsEllipseItem_SetRect(QGraphicsEllipseItem* self, QRectF* rect) { self->setRect(*rect); } void QGraphicsEllipseItem_SetRect2(QGraphicsEllipseItem* self, double x, double y, double w, double h) { self->setRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } int QGraphicsEllipseItem_StartAngle(const QGraphicsEllipseItem* self) { return self->startAngle(); } void QGraphicsEllipseItem_SetStartAngle(QGraphicsEllipseItem* self, int angle) { self->setStartAngle(static_cast(angle)); } int QGraphicsEllipseItem_SpanAngle(const QGraphicsEllipseItem* self) { return self->spanAngle(); } void QGraphicsEllipseItem_SetSpanAngle(QGraphicsEllipseItem* self, int angle) { self->setSpanAngle(static_cast(angle)); } QRectF* QGraphicsEllipseItem_BoundingRect(const QGraphicsEllipseItem* self) { return new QRectF(self->boundingRect()); } QPainterPath* QGraphicsEllipseItem_Shape(const QGraphicsEllipseItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsEllipseItem_Contains(const QGraphicsEllipseItem* self, QPointF* point) { return self->contains(*point); } void QGraphicsEllipseItem_Paint(QGraphicsEllipseItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsEllipseItem_IsObscuredBy(const QGraphicsEllipseItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsEllipseItem_OpaqueArea(const QGraphicsEllipseItem* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsEllipseItem_Type(const QGraphicsEllipseItem* self) { return self->type(); } void QGraphicsEllipseItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsEllipseItem_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_BoundingRect(); } void QGraphicsEllipseItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsEllipseItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_Shape(); } void QGraphicsEllipseItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__Contains = slot; } bool QGraphicsEllipseItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_Contains(point); } void QGraphicsEllipseItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__Paint = slot; } void QGraphicsEllipseItem_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsEllipseItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsEllipseItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsEllipseItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsEllipseItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsEllipseItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__Type = slot; } int QGraphicsEllipseItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_Type(); } void QGraphicsEllipseItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsEllipseItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsEllipseItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__SetExtension = slot; } void QGraphicsEllipseItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsEllipseItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsEllipseItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsEllipseItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsPolygonItem : public virtual QGraphicsPolygonItem { public: MiqtVirtualQGraphicsPolygonItem(): QGraphicsPolygonItem() {}; MiqtVirtualQGraphicsPolygonItem(QGraphicsItem* parent): QGraphicsPolygonItem(parent) {}; virtual ~MiqtVirtualQGraphicsPolygonItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsPolygonItem::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsPolygonItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsPolygonItem::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsPolygonItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsPolygonItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsPolygonItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsPolygonItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsPolygonItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsPolygonItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsPolygonItem::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsPolygonItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsPolygonItem::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsPolygonItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsPolygonItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsPolygonItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsPolygonItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsPolygonItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsPolygonItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsPolygonItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsPolygonItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsPolygonItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsPolygonItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsPolygonItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsPolygonItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsPolygonItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsPolygonItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsPolygonItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsPolygonItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsPolygonItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsPolygonItem::extension(*variant)); } }; QGraphicsPolygonItem* QGraphicsPolygonItem_new() { return new MiqtVirtualQGraphicsPolygonItem(); } QGraphicsPolygonItem* QGraphicsPolygonItem_new2(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsPolygonItem(parent); } void QGraphicsPolygonItem_virtbase(QGraphicsPolygonItem* src, QAbstractGraphicsShapeItem** outptr_QAbstractGraphicsShapeItem) { *outptr_QAbstractGraphicsShapeItem = static_cast(src); } int QGraphicsPolygonItem_FillRule(const QGraphicsPolygonItem* self) { Qt::FillRule _ret = self->fillRule(); return static_cast(_ret); } void QGraphicsPolygonItem_SetFillRule(QGraphicsPolygonItem* self, int rule) { self->setFillRule(static_cast(rule)); } QRectF* QGraphicsPolygonItem_BoundingRect(const QGraphicsPolygonItem* self) { return new QRectF(self->boundingRect()); } QPainterPath* QGraphicsPolygonItem_Shape(const QGraphicsPolygonItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsPolygonItem_Contains(const QGraphicsPolygonItem* self, QPointF* point) { return self->contains(*point); } void QGraphicsPolygonItem_Paint(QGraphicsPolygonItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsPolygonItem_IsObscuredBy(const QGraphicsPolygonItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsPolygonItem_OpaqueArea(const QGraphicsPolygonItem* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsPolygonItem_Type(const QGraphicsPolygonItem* self) { return self->type(); } void QGraphicsPolygonItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsPolygonItem_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_BoundingRect(); } void QGraphicsPolygonItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsPolygonItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_Shape(); } void QGraphicsPolygonItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__Contains = slot; } bool QGraphicsPolygonItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_Contains(point); } void QGraphicsPolygonItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__Paint = slot; } void QGraphicsPolygonItem_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsPolygonItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsPolygonItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsPolygonItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsPolygonItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsPolygonItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__Type = slot; } int QGraphicsPolygonItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_Type(); } void QGraphicsPolygonItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsPolygonItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsPolygonItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__SetExtension = slot; } void QGraphicsPolygonItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsPolygonItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPolygonItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsPolygonItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsLineItem : public virtual QGraphicsLineItem { public: MiqtVirtualQGraphicsLineItem(): QGraphicsLineItem() {}; MiqtVirtualQGraphicsLineItem(const QLineF& line): QGraphicsLineItem(line) {}; MiqtVirtualQGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2): QGraphicsLineItem(x1, y1, x2, y2) {}; MiqtVirtualQGraphicsLineItem(QGraphicsItem* parent): QGraphicsLineItem(parent) {}; MiqtVirtualQGraphicsLineItem(const QLineF& line, QGraphicsItem* parent): QGraphicsLineItem(line, parent) {}; MiqtVirtualQGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent): QGraphicsLineItem(x1, y1, x2, y2, parent) {}; virtual ~MiqtVirtualQGraphicsLineItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsLineItem::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsLineItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsLineItem::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsLineItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsLineItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsLineItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsLineItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsLineItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsLineItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsLineItem::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsLineItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsLineItem::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsLineItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsLineItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsLineItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsLineItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsLineItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsLineItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsLineItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsLineItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsLineItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsLineItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsLineItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsLineItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsLineItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsLineItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsLineItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsLineItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsLineItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsLineItem::extension(*variant)); } // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; // Subclass to allow providing a Go implementation virtual void advance(int phase) override { if (handle__Advance == 0) { QGraphicsLineItem::advance(phase); return; } int sigval1 = phase; miqt_exec_callback_QGraphicsLineItem_Advance(this, handle__Advance, sigval1); } // Wrapper to allow calling protected method void virtualbase_Advance(int phase) { QGraphicsLineItem::advance(static_cast(phase)); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithItem = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithItem == 0) { return QGraphicsLineItem::collidesWithItem(other, mode); } QGraphicsItem* sigval1 = (QGraphicsItem*) other; Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsLineItem_CollidesWithItem(const_cast(this), handle__CollidesWithItem, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithItem(QGraphicsItem* other, int mode) const { return QGraphicsLineItem::collidesWithItem(other, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithPath = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithPath == 0) { return QGraphicsLineItem::collidesWithPath(path, mode); } const QPainterPath& path_ret = path; // Cast returned reference into pointer QPainterPath* sigval1 = const_cast(&path_ret); Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsLineItem_CollidesWithPath(const_cast(this), handle__CollidesWithPath, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithPath(QPainterPath* path, int mode) const { return QGraphicsLineItem::collidesWithPath(*path, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEventFilter = 0; // Subclass to allow providing a Go implementation virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event) override { if (handle__SceneEventFilter == 0) { return QGraphicsLineItem::sceneEventFilter(watched, event); } QGraphicsItem* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QGraphicsLineItem_SceneEventFilter(this, handle__SceneEventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QGraphicsLineItem::sceneEventFilter(watched, event); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEvent = 0; // Subclass to allow providing a Go implementation virtual bool sceneEvent(QEvent* event) override { if (handle__SceneEvent == 0) { return QGraphicsLineItem::sceneEvent(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QGraphicsLineItem_SceneEvent(this, handle__SceneEvent, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEvent(QEvent* event) { return QGraphicsLineItem::sceneEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ContextMenuEvent = 0; // Subclass to allow providing a Go implementation virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override { if (handle__ContextMenuEvent == 0) { QGraphicsLineItem::contextMenuEvent(event); return; } QGraphicsSceneContextMenuEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ContextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsLineItem::contextMenuEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragEnterEvent == 0) { QGraphicsLineItem::dragEnterEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_DragEnterEvent(this, handle__DragEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsLineItem::dragEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragLeaveEvent == 0) { QGraphicsLineItem::dragLeaveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_DragLeaveEvent(this, handle__DragLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsLineItem::dragLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragMoveEvent == 0) { QGraphicsLineItem::dragMoveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_DragMoveEvent(this, handle__DragMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsLineItem::dragMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DropEvent = 0; // Subclass to allow providing a Go implementation virtual void dropEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DropEvent == 0) { QGraphicsLineItem::dropEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_DropEvent(this, handle__DropEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsLineItem::dropEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusInEvent = 0; // Subclass to allow providing a Go implementation virtual void focusInEvent(QFocusEvent* event) override { if (handle__FocusInEvent == 0) { QGraphicsLineItem::focusInEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_FocusInEvent(this, handle__FocusInEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusInEvent(QFocusEvent* event) { QGraphicsLineItem::focusInEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusOutEvent = 0; // Subclass to allow providing a Go implementation virtual void focusOutEvent(QFocusEvent* event) override { if (handle__FocusOutEvent == 0) { QGraphicsLineItem::focusOutEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_FocusOutEvent(this, handle__FocusOutEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusOutEvent(QFocusEvent* event) { QGraphicsLineItem::focusOutEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverEnterEvent == 0) { QGraphicsLineItem::hoverEnterEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_HoverEnterEvent(this, handle__HoverEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsLineItem::hoverEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverMoveEvent == 0) { QGraphicsLineItem::hoverMoveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_HoverMoveEvent(this, handle__HoverMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsLineItem::hoverMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverLeaveEvent == 0) { QGraphicsLineItem::hoverLeaveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_HoverLeaveEvent(this, handle__HoverLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsLineItem::hoverLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyPressEvent = 0; // Subclass to allow providing a Go implementation virtual void keyPressEvent(QKeyEvent* event) override { if (handle__KeyPressEvent == 0) { QGraphicsLineItem::keyPressEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_KeyPressEvent(this, handle__KeyPressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyPressEvent(QKeyEvent* event) { QGraphicsLineItem::keyPressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void keyReleaseEvent(QKeyEvent* event) override { if (handle__KeyReleaseEvent == 0) { QGraphicsLineItem::keyReleaseEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyReleaseEvent(QKeyEvent* event) { QGraphicsLineItem::keyReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MousePressEvent = 0; // Subclass to allow providing a Go implementation virtual void mousePressEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MousePressEvent == 0) { QGraphicsLineItem::mousePressEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_MousePressEvent(this, handle__MousePressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsLineItem::mousePressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseMoveEvent == 0) { QGraphicsLineItem::mouseMoveEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsLineItem::mouseMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseReleaseEvent == 0) { QGraphicsLineItem::mouseReleaseEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsLineItem::mouseReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseDoubleClickEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseDoubleClickEvent == 0) { QGraphicsLineItem::mouseDoubleClickEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsLineItem::mouseDoubleClickEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__WheelEvent = 0; // Subclass to allow providing a Go implementation virtual void wheelEvent(QGraphicsSceneWheelEvent* event) override { if (handle__WheelEvent == 0) { QGraphicsLineItem::wheelEvent(event); return; } QGraphicsSceneWheelEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_WheelEvent(this, handle__WheelEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_WheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsLineItem::wheelEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodEvent = 0; // Subclass to allow providing a Go implementation virtual void inputMethodEvent(QInputMethodEvent* event) override { if (handle__InputMethodEvent == 0) { QGraphicsLineItem::inputMethodEvent(event); return; } QInputMethodEvent* sigval1 = event; miqt_exec_callback_QGraphicsLineItem_InputMethodEvent(this, handle__InputMethodEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_InputMethodEvent(QInputMethodEvent* event) { QGraphicsLineItem::inputMethodEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; // Subclass to allow providing a Go implementation virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const override { if (handle__InputMethodQuery == 0) { return QGraphicsLineItem::inputMethodQuery(query); } Qt::InputMethodQuery query_ret = query; int sigval1 = static_cast(query_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsLineItem_InputMethodQuery(const_cast(this), handle__InputMethodQuery, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_InputMethodQuery(int query) const { return new QVariant(QGraphicsLineItem::inputMethodQuery(static_cast(query))); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemChange = 0; // Subclass to allow providing a Go implementation virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) override { if (handle__ItemChange == 0) { return QGraphicsLineItem::itemChange(change, value); } QGraphicsItem::GraphicsItemChange change_ret = change; int sigval1 = static_cast(change_ret); const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&value_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsLineItem_ItemChange(this, handle__ItemChange, sigval1, sigval2); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_ItemChange(int change, QVariant* value) { return new QVariant(QGraphicsLineItem::itemChange(static_cast(change), *value)); } }; QGraphicsLineItem* QGraphicsLineItem_new() { return new MiqtVirtualQGraphicsLineItem(); } QGraphicsLineItem* QGraphicsLineItem_new2(QLineF* line) { return new MiqtVirtualQGraphicsLineItem(*line); } QGraphicsLineItem* QGraphicsLineItem_new3(double x1, double y1, double x2, double y2) { return new MiqtVirtualQGraphicsLineItem(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } QGraphicsLineItem* QGraphicsLineItem_new4(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsLineItem(parent); } QGraphicsLineItem* QGraphicsLineItem_new5(QLineF* line, QGraphicsItem* parent) { return new MiqtVirtualQGraphicsLineItem(*line, parent); } QGraphicsLineItem* QGraphicsLineItem_new6(double x1, double y1, double x2, double y2, QGraphicsItem* parent) { return new MiqtVirtualQGraphicsLineItem(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2), parent); } void QGraphicsLineItem_virtbase(QGraphicsLineItem* src, QGraphicsItem** outptr_QGraphicsItem) { *outptr_QGraphicsItem = static_cast(src); } QPen* QGraphicsLineItem_Pen(const QGraphicsLineItem* self) { return new QPen(self->pen()); } void QGraphicsLineItem_SetPen(QGraphicsLineItem* self, QPen* pen) { self->setPen(*pen); } QLineF* QGraphicsLineItem_Line(const QGraphicsLineItem* self) { return new QLineF(self->line()); } void QGraphicsLineItem_SetLine(QGraphicsLineItem* self, QLineF* line) { self->setLine(*line); } void QGraphicsLineItem_SetLine2(QGraphicsLineItem* self, double x1, double y1, double x2, double y2) { self->setLine(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } QRectF* QGraphicsLineItem_BoundingRect(const QGraphicsLineItem* self) { return new QRectF(self->boundingRect()); } QPainterPath* QGraphicsLineItem_Shape(const QGraphicsLineItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsLineItem_Contains(const QGraphicsLineItem* self, QPointF* point) { return self->contains(*point); } void QGraphicsLineItem_Paint(QGraphicsLineItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsLineItem_IsObscuredBy(const QGraphicsLineItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsLineItem_OpaqueArea(const QGraphicsLineItem* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsLineItem_Type(const QGraphicsLineItem* self) { return self->type(); } void QGraphicsLineItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsLineItem_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_BoundingRect(); } void QGraphicsLineItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsLineItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_Shape(); } void QGraphicsLineItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__Contains = slot; } bool QGraphicsLineItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_Contains(point); } void QGraphicsLineItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__Paint = slot; } void QGraphicsLineItem_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsLineItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsLineItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsLineItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsLineItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsLineItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__Type = slot; } int QGraphicsLineItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_Type(); } void QGraphicsLineItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsLineItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsLineItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__SetExtension = slot; } void QGraphicsLineItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsLineItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsLineItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsLineItem_override_virtual_Advance(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__Advance = slot; } void QGraphicsLineItem_virtualbase_Advance(void* self, int phase) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_Advance(phase); } void QGraphicsLineItem_override_virtual_CollidesWithItem(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__CollidesWithItem = slot; } bool QGraphicsLineItem_virtualbase_CollidesWithItem(const void* self, QGraphicsItem* other, int mode) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_CollidesWithItem(other, mode); } void QGraphicsLineItem_override_virtual_CollidesWithPath(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__CollidesWithPath = slot; } bool QGraphicsLineItem_virtualbase_CollidesWithPath(const void* self, QPainterPath* path, int mode) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_CollidesWithPath(path, mode); } void QGraphicsLineItem_override_virtual_SceneEventFilter(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__SceneEventFilter = slot; } bool QGraphicsLineItem_virtualbase_SceneEventFilter(void* self, QGraphicsItem* watched, QEvent* event) { return ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_SceneEventFilter(watched, event); } void QGraphicsLineItem_override_virtual_SceneEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__SceneEvent = slot; } bool QGraphicsLineItem_virtualbase_SceneEvent(void* self, QEvent* event) { return ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_SceneEvent(event); } void QGraphicsLineItem_override_virtual_ContextMenuEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__ContextMenuEvent = slot; } void QGraphicsLineItem_virtualbase_ContextMenuEvent(void* self, QGraphicsSceneContextMenuEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_ContextMenuEvent(event); } void QGraphicsLineItem_override_virtual_DragEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__DragEnterEvent = slot; } void QGraphicsLineItem_virtualbase_DragEnterEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_DragEnterEvent(event); } void QGraphicsLineItem_override_virtual_DragLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__DragLeaveEvent = slot; } void QGraphicsLineItem_virtualbase_DragLeaveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_DragLeaveEvent(event); } void QGraphicsLineItem_override_virtual_DragMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__DragMoveEvent = slot; } void QGraphicsLineItem_virtualbase_DragMoveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_DragMoveEvent(event); } void QGraphicsLineItem_override_virtual_DropEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__DropEvent = slot; } void QGraphicsLineItem_virtualbase_DropEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_DropEvent(event); } void QGraphicsLineItem_override_virtual_FocusInEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__FocusInEvent = slot; } void QGraphicsLineItem_virtualbase_FocusInEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_FocusInEvent(event); } void QGraphicsLineItem_override_virtual_FocusOutEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__FocusOutEvent = slot; } void QGraphicsLineItem_virtualbase_FocusOutEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_FocusOutEvent(event); } void QGraphicsLineItem_override_virtual_HoverEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__HoverEnterEvent = slot; } void QGraphicsLineItem_virtualbase_HoverEnterEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_HoverEnterEvent(event); } void QGraphicsLineItem_override_virtual_HoverMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__HoverMoveEvent = slot; } void QGraphicsLineItem_virtualbase_HoverMoveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_HoverMoveEvent(event); } void QGraphicsLineItem_override_virtual_HoverLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__HoverLeaveEvent = slot; } void QGraphicsLineItem_virtualbase_HoverLeaveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_HoverLeaveEvent(event); } void QGraphicsLineItem_override_virtual_KeyPressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__KeyPressEvent = slot; } void QGraphicsLineItem_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_KeyPressEvent(event); } void QGraphicsLineItem_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__KeyReleaseEvent = slot; } void QGraphicsLineItem_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_KeyReleaseEvent(event); } void QGraphicsLineItem_override_virtual_MousePressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__MousePressEvent = slot; } void QGraphicsLineItem_virtualbase_MousePressEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_MousePressEvent(event); } void QGraphicsLineItem_override_virtual_MouseMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__MouseMoveEvent = slot; } void QGraphicsLineItem_virtualbase_MouseMoveEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_MouseMoveEvent(event); } void QGraphicsLineItem_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__MouseReleaseEvent = slot; } void QGraphicsLineItem_virtualbase_MouseReleaseEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_MouseReleaseEvent(event); } void QGraphicsLineItem_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__MouseDoubleClickEvent = slot; } void QGraphicsLineItem_virtualbase_MouseDoubleClickEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_MouseDoubleClickEvent(event); } void QGraphicsLineItem_override_virtual_WheelEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__WheelEvent = slot; } void QGraphicsLineItem_virtualbase_WheelEvent(void* self, QGraphicsSceneWheelEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_WheelEvent(event); } void QGraphicsLineItem_override_virtual_InputMethodEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__InputMethodEvent = slot; } void QGraphicsLineItem_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event) { ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_InputMethodEvent(event); } void QGraphicsLineItem_override_virtual_InputMethodQuery(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__InputMethodQuery = slot; } QVariant* QGraphicsLineItem_virtualbase_InputMethodQuery(const void* self, int query) { return ( (const MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_InputMethodQuery(query); } void QGraphicsLineItem_override_virtual_ItemChange(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLineItem*)(self) )->handle__ItemChange = slot; } QVariant* QGraphicsLineItem_virtualbase_ItemChange(void* self, int change, QVariant* value) { return ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_ItemChange(change, value); } void QGraphicsLineItem_Delete(QGraphicsLineItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsPixmapItem : public virtual QGraphicsPixmapItem { public: MiqtVirtualQGraphicsPixmapItem(): QGraphicsPixmapItem() {}; MiqtVirtualQGraphicsPixmapItem(const QPixmap& pixmap): QGraphicsPixmapItem(pixmap) {}; MiqtVirtualQGraphicsPixmapItem(QGraphicsItem* parent): QGraphicsPixmapItem(parent) {}; MiqtVirtualQGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent): QGraphicsPixmapItem(pixmap, parent) {}; virtual ~MiqtVirtualQGraphicsPixmapItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsPixmapItem::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsPixmapItem::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsPixmapItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsPixmapItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsPixmapItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsPixmapItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsPixmapItem::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsPixmapItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsPixmapItem::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsPixmapItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsPixmapItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsPixmapItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsPixmapItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsPixmapItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsPixmapItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsPixmapItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsPixmapItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsPixmapItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsPixmapItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsPixmapItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsPixmapItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsPixmapItem::extension(*variant)); } // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; // Subclass to allow providing a Go implementation virtual void advance(int phase) override { if (handle__Advance == 0) { QGraphicsPixmapItem::advance(phase); return; } int sigval1 = phase; miqt_exec_callback_QGraphicsPixmapItem_Advance(this, handle__Advance, sigval1); } // Wrapper to allow calling protected method void virtualbase_Advance(int phase) { QGraphicsPixmapItem::advance(static_cast(phase)); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithItem = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithItem == 0) { return QGraphicsPixmapItem::collidesWithItem(other, mode); } QGraphicsItem* sigval1 = (QGraphicsItem*) other; Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_CollidesWithItem(const_cast(this), handle__CollidesWithItem, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithItem(QGraphicsItem* other, int mode) const { return QGraphicsPixmapItem::collidesWithItem(other, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithPath = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithPath == 0) { return QGraphicsPixmapItem::collidesWithPath(path, mode); } const QPainterPath& path_ret = path; // Cast returned reference into pointer QPainterPath* sigval1 = const_cast(&path_ret); Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_CollidesWithPath(const_cast(this), handle__CollidesWithPath, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithPath(QPainterPath* path, int mode) const { return QGraphicsPixmapItem::collidesWithPath(*path, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEventFilter = 0; // Subclass to allow providing a Go implementation virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event) override { if (handle__SceneEventFilter == 0) { return QGraphicsPixmapItem::sceneEventFilter(watched, event); } QGraphicsItem* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_SceneEventFilter(this, handle__SceneEventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QGraphicsPixmapItem::sceneEventFilter(watched, event); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEvent = 0; // Subclass to allow providing a Go implementation virtual bool sceneEvent(QEvent* event) override { if (handle__SceneEvent == 0) { return QGraphicsPixmapItem::sceneEvent(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_SceneEvent(this, handle__SceneEvent, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEvent(QEvent* event) { return QGraphicsPixmapItem::sceneEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ContextMenuEvent = 0; // Subclass to allow providing a Go implementation virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override { if (handle__ContextMenuEvent == 0) { QGraphicsPixmapItem::contextMenuEvent(event); return; } QGraphicsSceneContextMenuEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ContextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsPixmapItem::contextMenuEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragEnterEvent == 0) { QGraphicsPixmapItem::dragEnterEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_DragEnterEvent(this, handle__DragEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsPixmapItem::dragEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragLeaveEvent == 0) { QGraphicsPixmapItem::dragLeaveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_DragLeaveEvent(this, handle__DragLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsPixmapItem::dragLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragMoveEvent == 0) { QGraphicsPixmapItem::dragMoveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_DragMoveEvent(this, handle__DragMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsPixmapItem::dragMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DropEvent = 0; // Subclass to allow providing a Go implementation virtual void dropEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DropEvent == 0) { QGraphicsPixmapItem::dropEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_DropEvent(this, handle__DropEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsPixmapItem::dropEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusInEvent = 0; // Subclass to allow providing a Go implementation virtual void focusInEvent(QFocusEvent* event) override { if (handle__FocusInEvent == 0) { QGraphicsPixmapItem::focusInEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_FocusInEvent(this, handle__FocusInEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusInEvent(QFocusEvent* event) { QGraphicsPixmapItem::focusInEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusOutEvent = 0; // Subclass to allow providing a Go implementation virtual void focusOutEvent(QFocusEvent* event) override { if (handle__FocusOutEvent == 0) { QGraphicsPixmapItem::focusOutEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_FocusOutEvent(this, handle__FocusOutEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusOutEvent(QFocusEvent* event) { QGraphicsPixmapItem::focusOutEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverEnterEvent == 0) { QGraphicsPixmapItem::hoverEnterEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_HoverEnterEvent(this, handle__HoverEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsPixmapItem::hoverEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverMoveEvent == 0) { QGraphicsPixmapItem::hoverMoveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_HoverMoveEvent(this, handle__HoverMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsPixmapItem::hoverMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverLeaveEvent == 0) { QGraphicsPixmapItem::hoverLeaveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_HoverLeaveEvent(this, handle__HoverLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsPixmapItem::hoverLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyPressEvent = 0; // Subclass to allow providing a Go implementation virtual void keyPressEvent(QKeyEvent* event) override { if (handle__KeyPressEvent == 0) { QGraphicsPixmapItem::keyPressEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_KeyPressEvent(this, handle__KeyPressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyPressEvent(QKeyEvent* event) { QGraphicsPixmapItem::keyPressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void keyReleaseEvent(QKeyEvent* event) override { if (handle__KeyReleaseEvent == 0) { QGraphicsPixmapItem::keyReleaseEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyReleaseEvent(QKeyEvent* event) { QGraphicsPixmapItem::keyReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MousePressEvent = 0; // Subclass to allow providing a Go implementation virtual void mousePressEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MousePressEvent == 0) { QGraphicsPixmapItem::mousePressEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_MousePressEvent(this, handle__MousePressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsPixmapItem::mousePressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseMoveEvent == 0) { QGraphicsPixmapItem::mouseMoveEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsPixmapItem::mouseMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseReleaseEvent == 0) { QGraphicsPixmapItem::mouseReleaseEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsPixmapItem::mouseReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseDoubleClickEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseDoubleClickEvent == 0) { QGraphicsPixmapItem::mouseDoubleClickEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsPixmapItem::mouseDoubleClickEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__WheelEvent = 0; // Subclass to allow providing a Go implementation virtual void wheelEvent(QGraphicsSceneWheelEvent* event) override { if (handle__WheelEvent == 0) { QGraphicsPixmapItem::wheelEvent(event); return; } QGraphicsSceneWheelEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_WheelEvent(this, handle__WheelEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_WheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsPixmapItem::wheelEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodEvent = 0; // Subclass to allow providing a Go implementation virtual void inputMethodEvent(QInputMethodEvent* event) override { if (handle__InputMethodEvent == 0) { QGraphicsPixmapItem::inputMethodEvent(event); return; } QInputMethodEvent* sigval1 = event; miqt_exec_callback_QGraphicsPixmapItem_InputMethodEvent(this, handle__InputMethodEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_InputMethodEvent(QInputMethodEvent* event) { QGraphicsPixmapItem::inputMethodEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; // Subclass to allow providing a Go implementation virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const override { if (handle__InputMethodQuery == 0) { return QGraphicsPixmapItem::inputMethodQuery(query); } Qt::InputMethodQuery query_ret = query; int sigval1 = static_cast(query_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_InputMethodQuery(const_cast(this), handle__InputMethodQuery, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_InputMethodQuery(int query) const { return new QVariant(QGraphicsPixmapItem::inputMethodQuery(static_cast(query))); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemChange = 0; // Subclass to allow providing a Go implementation virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) override { if (handle__ItemChange == 0) { return QGraphicsPixmapItem::itemChange(change, value); } QGraphicsItem::GraphicsItemChange change_ret = change; int sigval1 = static_cast(change_ret); const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&value_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsPixmapItem_ItemChange(this, handle__ItemChange, sigval1, sigval2); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_ItemChange(int change, QVariant* value) { return new QVariant(QGraphicsPixmapItem::itemChange(static_cast(change), *value)); } }; QGraphicsPixmapItem* QGraphicsPixmapItem_new() { return new MiqtVirtualQGraphicsPixmapItem(); } QGraphicsPixmapItem* QGraphicsPixmapItem_new2(QPixmap* pixmap) { return new MiqtVirtualQGraphicsPixmapItem(*pixmap); } QGraphicsPixmapItem* QGraphicsPixmapItem_new3(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsPixmapItem(parent); } QGraphicsPixmapItem* QGraphicsPixmapItem_new4(QPixmap* pixmap, QGraphicsItem* parent) { return new MiqtVirtualQGraphicsPixmapItem(*pixmap, parent); } void QGraphicsPixmapItem_virtbase(QGraphicsPixmapItem* src, QGraphicsItem** outptr_QGraphicsItem) { *outptr_QGraphicsItem = static_cast(src); } QPixmap* QGraphicsPixmapItem_Pixmap(const QGraphicsPixmapItem* self) { return new QPixmap(self->pixmap()); } void QGraphicsPixmapItem_SetPixmap(QGraphicsPixmapItem* self, QPixmap* pixmap) { self->setPixmap(*pixmap); } int QGraphicsPixmapItem_TransformationMode(const QGraphicsPixmapItem* self) { Qt::TransformationMode _ret = self->transformationMode(); return static_cast(_ret); } void QGraphicsPixmapItem_SetTransformationMode(QGraphicsPixmapItem* self, int mode) { self->setTransformationMode(static_cast(mode)); } QPointF* QGraphicsPixmapItem_Offset(const QGraphicsPixmapItem* self) { return new QPointF(self->offset()); } void QGraphicsPixmapItem_SetOffset(QGraphicsPixmapItem* self, QPointF* offset) { self->setOffset(*offset); } void QGraphicsPixmapItem_SetOffset2(QGraphicsPixmapItem* self, double x, double y) { self->setOffset(static_cast(x), static_cast(y)); } QRectF* QGraphicsPixmapItem_BoundingRect(const QGraphicsPixmapItem* self) { return new QRectF(self->boundingRect()); } QPainterPath* QGraphicsPixmapItem_Shape(const QGraphicsPixmapItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsPixmapItem_Contains(const QGraphicsPixmapItem* self, QPointF* point) { return self->contains(*point); } void QGraphicsPixmapItem_Paint(QGraphicsPixmapItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsPixmapItem_IsObscuredBy(const QGraphicsPixmapItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsPixmapItem_OpaqueArea(const QGraphicsPixmapItem* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsPixmapItem_Type(const QGraphicsPixmapItem* self) { return self->type(); } int QGraphicsPixmapItem_ShapeMode(const QGraphicsPixmapItem* self) { QGraphicsPixmapItem::ShapeMode _ret = self->shapeMode(); return static_cast(_ret); } void QGraphicsPixmapItem_SetShapeMode(QGraphicsPixmapItem* self, int mode) { self->setShapeMode(static_cast(mode)); } void QGraphicsPixmapItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsPixmapItem_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_BoundingRect(); } void QGraphicsPixmapItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsPixmapItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_Shape(); } void QGraphicsPixmapItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__Contains = slot; } bool QGraphicsPixmapItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_Contains(point); } void QGraphicsPixmapItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__Paint = slot; } void QGraphicsPixmapItem_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsPixmapItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsPixmapItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsPixmapItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsPixmapItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsPixmapItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__Type = slot; } int QGraphicsPixmapItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_Type(); } void QGraphicsPixmapItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsPixmapItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsPixmapItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__SetExtension = slot; } void QGraphicsPixmapItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsPixmapItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsPixmapItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsPixmapItem_override_virtual_Advance(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__Advance = slot; } void QGraphicsPixmapItem_virtualbase_Advance(void* self, int phase) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_Advance(phase); } void QGraphicsPixmapItem_override_virtual_CollidesWithItem(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__CollidesWithItem = slot; } bool QGraphicsPixmapItem_virtualbase_CollidesWithItem(const void* self, QGraphicsItem* other, int mode) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_CollidesWithItem(other, mode); } void QGraphicsPixmapItem_override_virtual_CollidesWithPath(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__CollidesWithPath = slot; } bool QGraphicsPixmapItem_virtualbase_CollidesWithPath(const void* self, QPainterPath* path, int mode) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_CollidesWithPath(path, mode); } void QGraphicsPixmapItem_override_virtual_SceneEventFilter(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__SceneEventFilter = slot; } bool QGraphicsPixmapItem_virtualbase_SceneEventFilter(void* self, QGraphicsItem* watched, QEvent* event) { return ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_SceneEventFilter(watched, event); } void QGraphicsPixmapItem_override_virtual_SceneEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__SceneEvent = slot; } bool QGraphicsPixmapItem_virtualbase_SceneEvent(void* self, QEvent* event) { return ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_SceneEvent(event); } void QGraphicsPixmapItem_override_virtual_ContextMenuEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__ContextMenuEvent = slot; } void QGraphicsPixmapItem_virtualbase_ContextMenuEvent(void* self, QGraphicsSceneContextMenuEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_ContextMenuEvent(event); } void QGraphicsPixmapItem_override_virtual_DragEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__DragEnterEvent = slot; } void QGraphicsPixmapItem_virtualbase_DragEnterEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_DragEnterEvent(event); } void QGraphicsPixmapItem_override_virtual_DragLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__DragLeaveEvent = slot; } void QGraphicsPixmapItem_virtualbase_DragLeaveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_DragLeaveEvent(event); } void QGraphicsPixmapItem_override_virtual_DragMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__DragMoveEvent = slot; } void QGraphicsPixmapItem_virtualbase_DragMoveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_DragMoveEvent(event); } void QGraphicsPixmapItem_override_virtual_DropEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__DropEvent = slot; } void QGraphicsPixmapItem_virtualbase_DropEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_DropEvent(event); } void QGraphicsPixmapItem_override_virtual_FocusInEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__FocusInEvent = slot; } void QGraphicsPixmapItem_virtualbase_FocusInEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_FocusInEvent(event); } void QGraphicsPixmapItem_override_virtual_FocusOutEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__FocusOutEvent = slot; } void QGraphicsPixmapItem_virtualbase_FocusOutEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_FocusOutEvent(event); } void QGraphicsPixmapItem_override_virtual_HoverEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__HoverEnterEvent = slot; } void QGraphicsPixmapItem_virtualbase_HoverEnterEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_HoverEnterEvent(event); } void QGraphicsPixmapItem_override_virtual_HoverMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__HoverMoveEvent = slot; } void QGraphicsPixmapItem_virtualbase_HoverMoveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_HoverMoveEvent(event); } void QGraphicsPixmapItem_override_virtual_HoverLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__HoverLeaveEvent = slot; } void QGraphicsPixmapItem_virtualbase_HoverLeaveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_HoverLeaveEvent(event); } void QGraphicsPixmapItem_override_virtual_KeyPressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__KeyPressEvent = slot; } void QGraphicsPixmapItem_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_KeyPressEvent(event); } void QGraphicsPixmapItem_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__KeyReleaseEvent = slot; } void QGraphicsPixmapItem_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_KeyReleaseEvent(event); } void QGraphicsPixmapItem_override_virtual_MousePressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__MousePressEvent = slot; } void QGraphicsPixmapItem_virtualbase_MousePressEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_MousePressEvent(event); } void QGraphicsPixmapItem_override_virtual_MouseMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__MouseMoveEvent = slot; } void QGraphicsPixmapItem_virtualbase_MouseMoveEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_MouseMoveEvent(event); } void QGraphicsPixmapItem_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__MouseReleaseEvent = slot; } void QGraphicsPixmapItem_virtualbase_MouseReleaseEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_MouseReleaseEvent(event); } void QGraphicsPixmapItem_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__MouseDoubleClickEvent = slot; } void QGraphicsPixmapItem_virtualbase_MouseDoubleClickEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_MouseDoubleClickEvent(event); } void QGraphicsPixmapItem_override_virtual_WheelEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__WheelEvent = slot; } void QGraphicsPixmapItem_virtualbase_WheelEvent(void* self, QGraphicsSceneWheelEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_WheelEvent(event); } void QGraphicsPixmapItem_override_virtual_InputMethodEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__InputMethodEvent = slot; } void QGraphicsPixmapItem_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event) { ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_InputMethodEvent(event); } void QGraphicsPixmapItem_override_virtual_InputMethodQuery(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__InputMethodQuery = slot; } QVariant* QGraphicsPixmapItem_virtualbase_InputMethodQuery(const void* self, int query) { return ( (const MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_InputMethodQuery(query); } void QGraphicsPixmapItem_override_virtual_ItemChange(void* self, intptr_t slot) { dynamic_cast( (QGraphicsPixmapItem*)(self) )->handle__ItemChange = slot; } QVariant* QGraphicsPixmapItem_virtualbase_ItemChange(void* self, int change, QVariant* value) { return ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_ItemChange(change, value); } void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsTextItem : public virtual QGraphicsTextItem { public: MiqtVirtualQGraphicsTextItem(): QGraphicsTextItem() {}; MiqtVirtualQGraphicsTextItem(const QString& text): QGraphicsTextItem(text) {}; MiqtVirtualQGraphicsTextItem(QGraphicsItem* parent): QGraphicsTextItem(parent) {}; MiqtVirtualQGraphicsTextItem(const QString& text, QGraphicsItem* parent): QGraphicsTextItem(text, parent) {}; virtual ~MiqtVirtualQGraphicsTextItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsTextItem::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsTextItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsTextItem::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsTextItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsTextItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsTextItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsTextItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsTextItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsTextItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsTextItem::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsTextItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsTextItem::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsTextItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsTextItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsTextItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsTextItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsTextItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsTextItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsTextItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsTextItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsTextItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEvent = 0; // Subclass to allow providing a Go implementation virtual bool sceneEvent(QEvent* event) override { if (handle__SceneEvent == 0) { return QGraphicsTextItem::sceneEvent(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QGraphicsTextItem_SceneEvent(this, handle__SceneEvent, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEvent(QEvent* event) { return QGraphicsTextItem::sceneEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MousePressEvent = 0; // Subclass to allow providing a Go implementation virtual void mousePressEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MousePressEvent == 0) { QGraphicsTextItem::mousePressEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_MousePressEvent(this, handle__MousePressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsTextItem::mousePressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseMoveEvent == 0) { QGraphicsTextItem::mouseMoveEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsTextItem::mouseMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseReleaseEvent == 0) { QGraphicsTextItem::mouseReleaseEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsTextItem::mouseReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseDoubleClickEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseDoubleClickEvent == 0) { QGraphicsTextItem::mouseDoubleClickEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsTextItem::mouseDoubleClickEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ContextMenuEvent = 0; // Subclass to allow providing a Go implementation virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override { if (handle__ContextMenuEvent == 0) { QGraphicsTextItem::contextMenuEvent(event); return; } QGraphicsSceneContextMenuEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ContextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsTextItem::contextMenuEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyPressEvent = 0; // Subclass to allow providing a Go implementation virtual void keyPressEvent(QKeyEvent* event) override { if (handle__KeyPressEvent == 0) { QGraphicsTextItem::keyPressEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_KeyPressEvent(this, handle__KeyPressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyPressEvent(QKeyEvent* event) { QGraphicsTextItem::keyPressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void keyReleaseEvent(QKeyEvent* event) override { if (handle__KeyReleaseEvent == 0) { QGraphicsTextItem::keyReleaseEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyReleaseEvent(QKeyEvent* event) { QGraphicsTextItem::keyReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusInEvent = 0; // Subclass to allow providing a Go implementation virtual void focusInEvent(QFocusEvent* event) override { if (handle__FocusInEvent == 0) { QGraphicsTextItem::focusInEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_FocusInEvent(this, handle__FocusInEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusInEvent(QFocusEvent* event) { QGraphicsTextItem::focusInEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusOutEvent = 0; // Subclass to allow providing a Go implementation virtual void focusOutEvent(QFocusEvent* event) override { if (handle__FocusOutEvent == 0) { QGraphicsTextItem::focusOutEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_FocusOutEvent(this, handle__FocusOutEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusOutEvent(QFocusEvent* event) { QGraphicsTextItem::focusOutEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragEnterEvent == 0) { QGraphicsTextItem::dragEnterEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_DragEnterEvent(this, handle__DragEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsTextItem::dragEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragLeaveEvent == 0) { QGraphicsTextItem::dragLeaveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_DragLeaveEvent(this, handle__DragLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsTextItem::dragLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragMoveEvent == 0) { QGraphicsTextItem::dragMoveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_DragMoveEvent(this, handle__DragMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsTextItem::dragMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DropEvent = 0; // Subclass to allow providing a Go implementation virtual void dropEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DropEvent == 0) { QGraphicsTextItem::dropEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_DropEvent(this, handle__DropEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsTextItem::dropEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodEvent = 0; // Subclass to allow providing a Go implementation virtual void inputMethodEvent(QInputMethodEvent* event) override { if (handle__InputMethodEvent == 0) { QGraphicsTextItem::inputMethodEvent(event); return; } QInputMethodEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_InputMethodEvent(this, handle__InputMethodEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_InputMethodEvent(QInputMethodEvent* event) { QGraphicsTextItem::inputMethodEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverEnterEvent == 0) { QGraphicsTextItem::hoverEnterEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_HoverEnterEvent(this, handle__HoverEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsTextItem::hoverEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverMoveEvent == 0) { QGraphicsTextItem::hoverMoveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_HoverMoveEvent(this, handle__HoverMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsTextItem::hoverMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverLeaveEvent == 0) { QGraphicsTextItem::hoverLeaveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsTextItem_HoverLeaveEvent(this, handle__HoverLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsTextItem::hoverLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; // Subclass to allow providing a Go implementation virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const override { if (handle__InputMethodQuery == 0) { return QGraphicsTextItem::inputMethodQuery(query); } Qt::InputMethodQuery query_ret = query; int sigval1 = static_cast(query_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsTextItem_InputMethodQuery(const_cast(this), handle__InputMethodQuery, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_InputMethodQuery(int query) const { return new QVariant(QGraphicsTextItem::inputMethodQuery(static_cast(query))); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsTextItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsTextItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsTextItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsTextItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsTextItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsTextItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsTextItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsTextItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsTextItem::extension(*variant)); } // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; // Subclass to allow providing a Go implementation virtual bool event(QEvent* ev) override { if (handle__Event == 0) { return QGraphicsTextItem::event(ev); } QEvent* sigval1 = ev; bool callback_return_value = miqt_exec_callback_QGraphicsTextItem_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* ev) { return QGraphicsTextItem::event(ev); } }; QGraphicsTextItem* QGraphicsTextItem_new() { return new MiqtVirtualQGraphicsTextItem(); } QGraphicsTextItem* QGraphicsTextItem_new2(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQGraphicsTextItem(text_QString); } QGraphicsTextItem* QGraphicsTextItem_new3(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsTextItem(parent); } QGraphicsTextItem* QGraphicsTextItem_new4(struct miqt_string text, QGraphicsItem* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQGraphicsTextItem(text_QString, parent); } void QGraphicsTextItem_virtbase(QGraphicsTextItem* src, QGraphicsObject** outptr_QGraphicsObject) { *outptr_QGraphicsObject = static_cast(src); } QMetaObject* QGraphicsTextItem_MetaObject(const QGraphicsTextItem* self) { return (QMetaObject*) self->metaObject(); } void* QGraphicsTextItem_Metacast(QGraphicsTextItem* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QGraphicsTextItem_Tr(const char* s) { QString _ret = QGraphicsTextItem::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; } struct miqt_string QGraphicsTextItem_ToHtml(const QGraphicsTextItem* self) { QString _ret = self->toHtml(); // 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; } void QGraphicsTextItem_SetHtml(QGraphicsTextItem* self, struct miqt_string html) { QString html_QString = QString::fromUtf8(html.data, html.len); self->setHtml(html_QString); } struct miqt_string QGraphicsTextItem_ToPlainText(const QGraphicsTextItem* self) { QString _ret = self->toPlainText(); // 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; } void QGraphicsTextItem_SetPlainText(QGraphicsTextItem* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); self->setPlainText(text_QString); } QFont* QGraphicsTextItem_Font(const QGraphicsTextItem* self) { return new QFont(self->font()); } void QGraphicsTextItem_SetFont(QGraphicsTextItem* self, QFont* font) { self->setFont(*font); } void QGraphicsTextItem_SetDefaultTextColor(QGraphicsTextItem* self, QColor* c) { self->setDefaultTextColor(*c); } QColor* QGraphicsTextItem_DefaultTextColor(const QGraphicsTextItem* self) { return new QColor(self->defaultTextColor()); } QRectF* QGraphicsTextItem_BoundingRect(const QGraphicsTextItem* self) { return new QRectF(self->boundingRect()); } QPainterPath* QGraphicsTextItem_Shape(const QGraphicsTextItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsTextItem_Contains(const QGraphicsTextItem* self, QPointF* point) { return self->contains(*point); } void QGraphicsTextItem_Paint(QGraphicsTextItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsTextItem_IsObscuredBy(const QGraphicsTextItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsTextItem_OpaqueArea(const QGraphicsTextItem* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsTextItem_Type(const QGraphicsTextItem* self) { return self->type(); } void QGraphicsTextItem_SetTextWidth(QGraphicsTextItem* self, double width) { self->setTextWidth(static_cast(width)); } double QGraphicsTextItem_TextWidth(const QGraphicsTextItem* self) { qreal _ret = self->textWidth(); return static_cast(_ret); } void QGraphicsTextItem_AdjustSize(QGraphicsTextItem* self) { self->adjustSize(); } void QGraphicsTextItem_SetDocument(QGraphicsTextItem* self, QTextDocument* document) { self->setDocument(document); } QTextDocument* QGraphicsTextItem_Document(const QGraphicsTextItem* self) { return self->document(); } void QGraphicsTextItem_SetTextInteractionFlags(QGraphicsTextItem* self, int flags) { self->setTextInteractionFlags(static_cast(flags)); } int QGraphicsTextItem_TextInteractionFlags(const QGraphicsTextItem* self) { Qt::TextInteractionFlags _ret = self->textInteractionFlags(); return static_cast(_ret); } void QGraphicsTextItem_SetTabChangesFocus(QGraphicsTextItem* self, bool b) { self->setTabChangesFocus(b); } bool QGraphicsTextItem_TabChangesFocus(const QGraphicsTextItem* self) { return self->tabChangesFocus(); } void QGraphicsTextItem_SetOpenExternalLinks(QGraphicsTextItem* self, bool open) { self->setOpenExternalLinks(open); } bool QGraphicsTextItem_OpenExternalLinks(const QGraphicsTextItem* self) { return self->openExternalLinks(); } void QGraphicsTextItem_SetTextCursor(QGraphicsTextItem* self, QTextCursor* cursor) { self->setTextCursor(*cursor); } QTextCursor* QGraphicsTextItem_TextCursor(const QGraphicsTextItem* self) { return new QTextCursor(self->textCursor()); } void QGraphicsTextItem_LinkActivated(QGraphicsTextItem* self, struct miqt_string param1) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); self->linkActivated(param1_QString); } void QGraphicsTextItem_connect_LinkActivated(QGraphicsTextItem* self, intptr_t slot) { MiqtVirtualQGraphicsTextItem::connect(self, static_cast(&QGraphicsTextItem::linkActivated), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray param1_b = param1_ret.toUtf8(); struct miqt_string param1_ms; param1_ms.len = param1_b.length(); param1_ms.data = static_cast(malloc(param1_ms.len)); memcpy(param1_ms.data, param1_b.data(), param1_ms.len); struct miqt_string sigval1 = param1_ms; miqt_exec_callback_QGraphicsTextItem_LinkActivated(slot, sigval1); }); } void QGraphicsTextItem_LinkHovered(QGraphicsTextItem* self, struct miqt_string param1) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); self->linkHovered(param1_QString); } void QGraphicsTextItem_connect_LinkHovered(QGraphicsTextItem* self, intptr_t slot) { MiqtVirtualQGraphicsTextItem::connect(self, static_cast(&QGraphicsTextItem::linkHovered), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray param1_b = param1_ret.toUtf8(); struct miqt_string param1_ms; param1_ms.len = param1_b.length(); param1_ms.data = static_cast(malloc(param1_ms.len)); memcpy(param1_ms.data, param1_b.data(), param1_ms.len); struct miqt_string sigval1 = param1_ms; miqt_exec_callback_QGraphicsTextItem_LinkHovered(slot, sigval1); }); } struct miqt_string QGraphicsTextItem_Tr2(const char* s, const char* c) { QString _ret = QGraphicsTextItem::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 QGraphicsTextItem_Tr3(const char* s, const char* c, int n) { QString _ret = QGraphicsTextItem::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; } void QGraphicsTextItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsTextItem_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_BoundingRect(); } void QGraphicsTextItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsTextItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_Shape(); } void QGraphicsTextItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__Contains = slot; } bool QGraphicsTextItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_Contains(point); } void QGraphicsTextItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__Paint = slot; } void QGraphicsTextItem_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsTextItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsTextItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsTextItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsTextItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsTextItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__Type = slot; } int QGraphicsTextItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_Type(); } void QGraphicsTextItem_override_virtual_SceneEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__SceneEvent = slot; } bool QGraphicsTextItem_virtualbase_SceneEvent(void* self, QEvent* event) { return ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_SceneEvent(event); } void QGraphicsTextItem_override_virtual_MousePressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__MousePressEvent = slot; } void QGraphicsTextItem_virtualbase_MousePressEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_MousePressEvent(event); } void QGraphicsTextItem_override_virtual_MouseMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__MouseMoveEvent = slot; } void QGraphicsTextItem_virtualbase_MouseMoveEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_MouseMoveEvent(event); } void QGraphicsTextItem_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__MouseReleaseEvent = slot; } void QGraphicsTextItem_virtualbase_MouseReleaseEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_MouseReleaseEvent(event); } void QGraphicsTextItem_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__MouseDoubleClickEvent = slot; } void QGraphicsTextItem_virtualbase_MouseDoubleClickEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_MouseDoubleClickEvent(event); } void QGraphicsTextItem_override_virtual_ContextMenuEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__ContextMenuEvent = slot; } void QGraphicsTextItem_virtualbase_ContextMenuEvent(void* self, QGraphicsSceneContextMenuEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_ContextMenuEvent(event); } void QGraphicsTextItem_override_virtual_KeyPressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__KeyPressEvent = slot; } void QGraphicsTextItem_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_KeyPressEvent(event); } void QGraphicsTextItem_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__KeyReleaseEvent = slot; } void QGraphicsTextItem_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_KeyReleaseEvent(event); } void QGraphicsTextItem_override_virtual_FocusInEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__FocusInEvent = slot; } void QGraphicsTextItem_virtualbase_FocusInEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_FocusInEvent(event); } void QGraphicsTextItem_override_virtual_FocusOutEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__FocusOutEvent = slot; } void QGraphicsTextItem_virtualbase_FocusOutEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_FocusOutEvent(event); } void QGraphicsTextItem_override_virtual_DragEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__DragEnterEvent = slot; } void QGraphicsTextItem_virtualbase_DragEnterEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_DragEnterEvent(event); } void QGraphicsTextItem_override_virtual_DragLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__DragLeaveEvent = slot; } void QGraphicsTextItem_virtualbase_DragLeaveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_DragLeaveEvent(event); } void QGraphicsTextItem_override_virtual_DragMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__DragMoveEvent = slot; } void QGraphicsTextItem_virtualbase_DragMoveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_DragMoveEvent(event); } void QGraphicsTextItem_override_virtual_DropEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__DropEvent = slot; } void QGraphicsTextItem_virtualbase_DropEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_DropEvent(event); } void QGraphicsTextItem_override_virtual_InputMethodEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__InputMethodEvent = slot; } void QGraphicsTextItem_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_InputMethodEvent(event); } void QGraphicsTextItem_override_virtual_HoverEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__HoverEnterEvent = slot; } void QGraphicsTextItem_virtualbase_HoverEnterEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_HoverEnterEvent(event); } void QGraphicsTextItem_override_virtual_HoverMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__HoverMoveEvent = slot; } void QGraphicsTextItem_virtualbase_HoverMoveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_HoverMoveEvent(event); } void QGraphicsTextItem_override_virtual_HoverLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__HoverLeaveEvent = slot; } void QGraphicsTextItem_virtualbase_HoverLeaveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_HoverLeaveEvent(event); } void QGraphicsTextItem_override_virtual_InputMethodQuery(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__InputMethodQuery = slot; } QVariant* QGraphicsTextItem_virtualbase_InputMethodQuery(const void* self, int query) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_InputMethodQuery(query); } void QGraphicsTextItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsTextItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsTextItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__SetExtension = slot; } void QGraphicsTextItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsTextItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsTextItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsTextItem_override_virtual_Event(void* self, intptr_t slot) { dynamic_cast( (QGraphicsTextItem*)(self) )->handle__Event = slot; } bool QGraphicsTextItem_virtualbase_Event(void* self, QEvent* ev) { return ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_Event(ev); } void QGraphicsTextItem_Delete(QGraphicsTextItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsSimpleTextItem : public virtual QGraphicsSimpleTextItem { public: MiqtVirtualQGraphicsSimpleTextItem(): QGraphicsSimpleTextItem() {}; MiqtVirtualQGraphicsSimpleTextItem(const QString& text): QGraphicsSimpleTextItem(text) {}; MiqtVirtualQGraphicsSimpleTextItem(QGraphicsItem* parent): QGraphicsSimpleTextItem(parent) {}; MiqtVirtualQGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent): QGraphicsSimpleTextItem(text, parent) {}; virtual ~MiqtVirtualQGraphicsSimpleTextItem() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsSimpleTextItem::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsSimpleTextItem_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsSimpleTextItem::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsSimpleTextItem::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsSimpleTextItem_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsSimpleTextItem::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsSimpleTextItem::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsSimpleTextItem_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsSimpleTextItem::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsSimpleTextItem::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsSimpleTextItem_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsSimpleTextItem::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsSimpleTextItem::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsSimpleTextItem_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsSimpleTextItem::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsSimpleTextItem::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsSimpleTextItem_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsSimpleTextItem::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsSimpleTextItem::type(); } int callback_return_value = miqt_exec_callback_QGraphicsSimpleTextItem_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsSimpleTextItem::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsSimpleTextItem::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsSimpleTextItem_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsSimpleTextItem::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsSimpleTextItem::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsSimpleTextItem_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsSimpleTextItem::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsSimpleTextItem::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsSimpleTextItem_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsSimpleTextItem::extension(*variant)); } }; QGraphicsSimpleTextItem* QGraphicsSimpleTextItem_new() { return new MiqtVirtualQGraphicsSimpleTextItem(); } QGraphicsSimpleTextItem* QGraphicsSimpleTextItem_new2(struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQGraphicsSimpleTextItem(text_QString); } QGraphicsSimpleTextItem* QGraphicsSimpleTextItem_new3(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsSimpleTextItem(parent); } QGraphicsSimpleTextItem* QGraphicsSimpleTextItem_new4(struct miqt_string text, QGraphicsItem* parent) { QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQGraphicsSimpleTextItem(text_QString, parent); } void QGraphicsSimpleTextItem_virtbase(QGraphicsSimpleTextItem* src, QAbstractGraphicsShapeItem** outptr_QAbstractGraphicsShapeItem) { *outptr_QAbstractGraphicsShapeItem = static_cast(src); } void QGraphicsSimpleTextItem_SetText(QGraphicsSimpleTextItem* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); self->setText(text_QString); } struct miqt_string QGraphicsSimpleTextItem_Text(const QGraphicsSimpleTextItem* self) { QString _ret = self->text(); // 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; } void QGraphicsSimpleTextItem_SetFont(QGraphicsSimpleTextItem* self, QFont* font) { self->setFont(*font); } QFont* QGraphicsSimpleTextItem_Font(const QGraphicsSimpleTextItem* self) { return new QFont(self->font()); } QRectF* QGraphicsSimpleTextItem_BoundingRect(const QGraphicsSimpleTextItem* self) { return new QRectF(self->boundingRect()); } QPainterPath* QGraphicsSimpleTextItem_Shape(const QGraphicsSimpleTextItem* self) { return new QPainterPath(self->shape()); } bool QGraphicsSimpleTextItem_Contains(const QGraphicsSimpleTextItem* self, QPointF* point) { return self->contains(*point); } void QGraphicsSimpleTextItem_Paint(QGraphicsSimpleTextItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsSimpleTextItem_IsObscuredBy(const QGraphicsSimpleTextItem* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsSimpleTextItem_OpaqueArea(const QGraphicsSimpleTextItem* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsSimpleTextItem_Type(const QGraphicsSimpleTextItem* self) { return self->type(); } void QGraphicsSimpleTextItem_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsSimpleTextItem_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_BoundingRect(); } void QGraphicsSimpleTextItem_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsSimpleTextItem_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_Shape(); } void QGraphicsSimpleTextItem_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__Contains = slot; } bool QGraphicsSimpleTextItem_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_Contains(point); } void QGraphicsSimpleTextItem_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__Paint = slot; } void QGraphicsSimpleTextItem_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsSimpleTextItem_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsSimpleTextItem_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsSimpleTextItem_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsSimpleTextItem_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsSimpleTextItem_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__Type = slot; } int QGraphicsSimpleTextItem_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_Type(); } void QGraphicsSimpleTextItem_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsSimpleTextItem_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsSimpleTextItem_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__SetExtension = slot; } void QGraphicsSimpleTextItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsSimpleTextItem_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsSimpleTextItem*)(self) )->handle__Extension = slot; } QVariant* QGraphicsSimpleTextItem_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_Extension(variant); } void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQGraphicsItemGroup : public virtual QGraphicsItemGroup { public: MiqtVirtualQGraphicsItemGroup(): QGraphicsItemGroup() {}; MiqtVirtualQGraphicsItemGroup(QGraphicsItem* parent): QGraphicsItemGroup(parent) {}; virtual ~MiqtVirtualQGraphicsItemGroup() = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; // Subclass to allow providing a Go implementation virtual QRectF boundingRect() const override { if (handle__BoundingRect == 0) { return QGraphicsItemGroup::boundingRect(); } QRectF* callback_return_value = miqt_exec_callback_QGraphicsItemGroup_BoundingRect(const_cast(this), handle__BoundingRect); return *callback_return_value; } // Wrapper to allow calling protected method QRectF* virtualbase_BoundingRect() const { return new QRectF(QGraphicsItemGroup::boundingRect()); } // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; // Subclass to allow providing a Go implementation virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override { if (handle__Paint == 0) { QGraphicsItemGroup::paint(painter, option, widget); return; } QPainter* sigval1 = painter; QStyleOptionGraphicsItem* sigval2 = (QStyleOptionGraphicsItem*) option; QWidget* sigval3 = widget; miqt_exec_callback_QGraphicsItemGroup_Paint(this, handle__Paint, sigval1, sigval2, sigval3); } // Wrapper to allow calling protected method void virtualbase_Paint(QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsItemGroup::paint(painter, option, widget); } // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; // Subclass to allow providing a Go implementation virtual bool isObscuredBy(const QGraphicsItem* item) const override { if (handle__IsObscuredBy == 0) { return QGraphicsItemGroup::isObscuredBy(item); } QGraphicsItem* sigval1 = (QGraphicsItem*) item; bool callback_return_value = miqt_exec_callback_QGraphicsItemGroup_IsObscuredBy(const_cast(this), handle__IsObscuredBy, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_IsObscuredBy(QGraphicsItem* item) const { return QGraphicsItemGroup::isObscuredBy(item); } // cgo.Handle value for overwritten implementation intptr_t handle__OpaqueArea = 0; // Subclass to allow providing a Go implementation virtual QPainterPath opaqueArea() const override { if (handle__OpaqueArea == 0) { return QGraphicsItemGroup::opaqueArea(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsItemGroup_OpaqueArea(const_cast(this), handle__OpaqueArea); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_OpaqueArea() const { return new QPainterPath(QGraphicsItemGroup::opaqueArea()); } // cgo.Handle value for overwritten implementation intptr_t handle__Type = 0; // Subclass to allow providing a Go implementation virtual int type() const override { if (handle__Type == 0) { return QGraphicsItemGroup::type(); } int callback_return_value = miqt_exec_callback_QGraphicsItemGroup_Type(const_cast(this), handle__Type); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Type() const { return QGraphicsItemGroup::type(); } // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; // Subclass to allow providing a Go implementation virtual void advance(int phase) override { if (handle__Advance == 0) { QGraphicsItemGroup::advance(phase); return; } int sigval1 = phase; miqt_exec_callback_QGraphicsItemGroup_Advance(this, handle__Advance, sigval1); } // Wrapper to allow calling protected method void virtualbase_Advance(int phase) { QGraphicsItemGroup::advance(static_cast(phase)); } // cgo.Handle value for overwritten implementation intptr_t handle__Shape = 0; // Subclass to allow providing a Go implementation virtual QPainterPath shape() const override { if (handle__Shape == 0) { return QGraphicsItemGroup::shape(); } QPainterPath* callback_return_value = miqt_exec_callback_QGraphicsItemGroup_Shape(const_cast(this), handle__Shape); return *callback_return_value; } // Wrapper to allow calling protected method QPainterPath* virtualbase_Shape() const { return new QPainterPath(QGraphicsItemGroup::shape()); } // cgo.Handle value for overwritten implementation intptr_t handle__Contains = 0; // Subclass to allow providing a Go implementation virtual bool contains(const QPointF& point) const override { if (handle__Contains == 0) { return QGraphicsItemGroup::contains(point); } const QPointF& point_ret = point; // Cast returned reference into pointer QPointF* sigval1 = const_cast(&point_ret); bool callback_return_value = miqt_exec_callback_QGraphicsItemGroup_Contains(const_cast(this), handle__Contains, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Contains(QPointF* point) const { return QGraphicsItemGroup::contains(*point); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithItem = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithItem == 0) { return QGraphicsItemGroup::collidesWithItem(other, mode); } QGraphicsItem* sigval1 = (QGraphicsItem*) other; Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsItemGroup_CollidesWithItem(const_cast(this), handle__CollidesWithItem, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithItem(QGraphicsItem* other, int mode) const { return QGraphicsItemGroup::collidesWithItem(other, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__CollidesWithPath = 0; // Subclass to allow providing a Go implementation virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const override { if (handle__CollidesWithPath == 0) { return QGraphicsItemGroup::collidesWithPath(path, mode); } const QPainterPath& path_ret = path; // Cast returned reference into pointer QPainterPath* sigval1 = const_cast(&path_ret); Qt::ItemSelectionMode mode_ret = mode; int sigval2 = static_cast(mode_ret); bool callback_return_value = miqt_exec_callback_QGraphicsItemGroup_CollidesWithPath(const_cast(this), handle__CollidesWithPath, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_CollidesWithPath(QPainterPath* path, int mode) const { return QGraphicsItemGroup::collidesWithPath(*path, static_cast(mode)); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEventFilter = 0; // Subclass to allow providing a Go implementation virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event) override { if (handle__SceneEventFilter == 0) { return QGraphicsItemGroup::sceneEventFilter(watched, event); } QGraphicsItem* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QGraphicsItemGroup_SceneEventFilter(this, handle__SceneEventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QGraphicsItemGroup::sceneEventFilter(watched, event); } // cgo.Handle value for overwritten implementation intptr_t handle__SceneEvent = 0; // Subclass to allow providing a Go implementation virtual bool sceneEvent(QEvent* event) override { if (handle__SceneEvent == 0) { return QGraphicsItemGroup::sceneEvent(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QGraphicsItemGroup_SceneEvent(this, handle__SceneEvent, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SceneEvent(QEvent* event) { return QGraphicsItemGroup::sceneEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ContextMenuEvent = 0; // Subclass to allow providing a Go implementation virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override { if (handle__ContextMenuEvent == 0) { QGraphicsItemGroup::contextMenuEvent(event); return; } QGraphicsSceneContextMenuEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ContextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsItemGroup::contextMenuEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragEnterEvent == 0) { QGraphicsItemGroup::dragEnterEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_DragEnterEvent(this, handle__DragEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItemGroup::dragEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragLeaveEvent == 0) { QGraphicsItemGroup::dragLeaveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_DragLeaveEvent(this, handle__DragLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItemGroup::dragLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DragMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DragMoveEvent == 0) { QGraphicsItemGroup::dragMoveEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_DragMoveEvent(this, handle__DragMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItemGroup::dragMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__DropEvent = 0; // Subclass to allow providing a Go implementation virtual void dropEvent(QGraphicsSceneDragDropEvent* event) override { if (handle__DropEvent == 0) { QGraphicsItemGroup::dropEvent(event); return; } QGraphicsSceneDragDropEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_DropEvent(this, handle__DropEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_DropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItemGroup::dropEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusInEvent = 0; // Subclass to allow providing a Go implementation virtual void focusInEvent(QFocusEvent* event) override { if (handle__FocusInEvent == 0) { QGraphicsItemGroup::focusInEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_FocusInEvent(this, handle__FocusInEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusInEvent(QFocusEvent* event) { QGraphicsItemGroup::focusInEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__FocusOutEvent = 0; // Subclass to allow providing a Go implementation virtual void focusOutEvent(QFocusEvent* event) override { if (handle__FocusOutEvent == 0) { QGraphicsItemGroup::focusOutEvent(event); return; } QFocusEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_FocusOutEvent(this, handle__FocusOutEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_FocusOutEvent(QFocusEvent* event) { QGraphicsItemGroup::focusOutEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverEnterEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverEnterEvent == 0) { QGraphicsItemGroup::hoverEnterEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_HoverEnterEvent(this, handle__HoverEnterEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItemGroup::hoverEnterEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverMoveEvent == 0) { QGraphicsItemGroup::hoverMoveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_HoverMoveEvent(this, handle__HoverMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItemGroup::hoverMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__HoverLeaveEvent = 0; // Subclass to allow providing a Go implementation virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override { if (handle__HoverLeaveEvent == 0) { QGraphicsItemGroup::hoverLeaveEvent(event); return; } QGraphicsSceneHoverEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_HoverLeaveEvent(this, handle__HoverLeaveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_HoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItemGroup::hoverLeaveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyPressEvent = 0; // Subclass to allow providing a Go implementation virtual void keyPressEvent(QKeyEvent* event) override { if (handle__KeyPressEvent == 0) { QGraphicsItemGroup::keyPressEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_KeyPressEvent(this, handle__KeyPressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyPressEvent(QKeyEvent* event) { QGraphicsItemGroup::keyPressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void keyReleaseEvent(QKeyEvent* event) override { if (handle__KeyReleaseEvent == 0) { QGraphicsItemGroup::keyReleaseEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyReleaseEvent(QKeyEvent* event) { QGraphicsItemGroup::keyReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MousePressEvent = 0; // Subclass to allow providing a Go implementation virtual void mousePressEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MousePressEvent == 0) { QGraphicsItemGroup::mousePressEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_MousePressEvent(this, handle__MousePressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItemGroup::mousePressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseMoveEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseMoveEvent == 0) { QGraphicsItemGroup::mouseMoveEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItemGroup::mouseMoveEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseReleaseEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseReleaseEvent == 0) { QGraphicsItemGroup::mouseReleaseEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItemGroup::mouseReleaseEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__MouseDoubleClickEvent = 0; // Subclass to allow providing a Go implementation virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) override { if (handle__MouseDoubleClickEvent == 0) { QGraphicsItemGroup::mouseDoubleClickEvent(event); return; } QGraphicsSceneMouseEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_MouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItemGroup::mouseDoubleClickEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__WheelEvent = 0; // Subclass to allow providing a Go implementation virtual void wheelEvent(QGraphicsSceneWheelEvent* event) override { if (handle__WheelEvent == 0) { QGraphicsItemGroup::wheelEvent(event); return; } QGraphicsSceneWheelEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_WheelEvent(this, handle__WheelEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_WheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsItemGroup::wheelEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodEvent = 0; // Subclass to allow providing a Go implementation virtual void inputMethodEvent(QInputMethodEvent* event) override { if (handle__InputMethodEvent == 0) { QGraphicsItemGroup::inputMethodEvent(event); return; } QInputMethodEvent* sigval1 = event; miqt_exec_callback_QGraphicsItemGroup_InputMethodEvent(this, handle__InputMethodEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_InputMethodEvent(QInputMethodEvent* event) { QGraphicsItemGroup::inputMethodEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; // Subclass to allow providing a Go implementation virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const override { if (handle__InputMethodQuery == 0) { return QGraphicsItemGroup::inputMethodQuery(query); } Qt::InputMethodQuery query_ret = query; int sigval1 = static_cast(query_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsItemGroup_InputMethodQuery(const_cast(this), handle__InputMethodQuery, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_InputMethodQuery(int query) const { return new QVariant(QGraphicsItemGroup::inputMethodQuery(static_cast(query))); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemChange = 0; // Subclass to allow providing a Go implementation virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) override { if (handle__ItemChange == 0) { return QGraphicsItemGroup::itemChange(change, value); } QGraphicsItem::GraphicsItemChange change_ret = change; int sigval1 = static_cast(change_ret); const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&value_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsItemGroup_ItemChange(this, handle__ItemChange, sigval1, sigval2); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_ItemChange(int change, QVariant* value) { return new QVariant(QGraphicsItemGroup::itemChange(static_cast(change), *value)); } // cgo.Handle value for overwritten implementation intptr_t handle__SupportsExtension = 0; // Subclass to allow providing a Go implementation virtual bool supportsExtension(QGraphicsItem::Extension extension) const override { if (handle__SupportsExtension == 0) { return QGraphicsItemGroup::supportsExtension(extension); } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); bool callback_return_value = miqt_exec_callback_QGraphicsItemGroup_SupportsExtension(const_cast(this), handle__SupportsExtension, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_SupportsExtension(int extension) const { return QGraphicsItemGroup::supportsExtension(static_cast(extension)); } // cgo.Handle value for overwritten implementation intptr_t handle__SetExtension = 0; // Subclass to allow providing a Go implementation virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant) override { if (handle__SetExtension == 0) { QGraphicsItemGroup::setExtension(extension, variant); return; } QGraphicsItem::Extension extension_ret = extension; int sigval1 = static_cast(extension_ret); const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&variant_ret); miqt_exec_callback_QGraphicsItemGroup_SetExtension(this, handle__SetExtension, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_SetExtension(int extension, QVariant* variant) { QGraphicsItemGroup::setExtension(static_cast(extension), *variant); } // cgo.Handle value for overwritten implementation intptr_t handle__Extension = 0; // Subclass to allow providing a Go implementation virtual QVariant extension(const QVariant& variant) const override { if (handle__Extension == 0) { return QGraphicsItemGroup::extension(variant); } const QVariant& variant_ret = variant; // Cast returned reference into pointer QVariant* sigval1 = const_cast(&variant_ret); QVariant* callback_return_value = miqt_exec_callback_QGraphicsItemGroup_Extension(const_cast(this), handle__Extension, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_Extension(QVariant* variant) const { return new QVariant(QGraphicsItemGroup::extension(*variant)); } }; QGraphicsItemGroup* QGraphicsItemGroup_new() { return new MiqtVirtualQGraphicsItemGroup(); } QGraphicsItemGroup* QGraphicsItemGroup_new2(QGraphicsItem* parent) { return new MiqtVirtualQGraphicsItemGroup(parent); } void QGraphicsItemGroup_virtbase(QGraphicsItemGroup* src, QGraphicsItem** outptr_QGraphicsItem) { *outptr_QGraphicsItem = static_cast(src); } void QGraphicsItemGroup_AddToGroup(QGraphicsItemGroup* self, QGraphicsItem* item) { self->addToGroup(item); } void QGraphicsItemGroup_RemoveFromGroup(QGraphicsItemGroup* self, QGraphicsItem* item) { self->removeFromGroup(item); } QRectF* QGraphicsItemGroup_BoundingRect(const QGraphicsItemGroup* self) { return new QRectF(self->boundingRect()); } void QGraphicsItemGroup_Paint(QGraphicsItemGroup* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { self->paint(painter, option, widget); } bool QGraphicsItemGroup_IsObscuredBy(const QGraphicsItemGroup* self, QGraphicsItem* item) { return self->isObscuredBy(item); } QPainterPath* QGraphicsItemGroup_OpaqueArea(const QGraphicsItemGroup* self) { return new QPainterPath(self->opaqueArea()); } int QGraphicsItemGroup_Type(const QGraphicsItemGroup* self) { return self->type(); } void QGraphicsItemGroup_override_virtual_BoundingRect(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__BoundingRect = slot; } QRectF* QGraphicsItemGroup_virtualbase_BoundingRect(const void* self) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_BoundingRect(); } void QGraphicsItemGroup_override_virtual_Paint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__Paint = slot; } void QGraphicsItemGroup_virtualbase_Paint(void* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_Paint(painter, option, widget); } void QGraphicsItemGroup_override_virtual_IsObscuredBy(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__IsObscuredBy = slot; } bool QGraphicsItemGroup_virtualbase_IsObscuredBy(const void* self, QGraphicsItem* item) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_IsObscuredBy(item); } void QGraphicsItemGroup_override_virtual_OpaqueArea(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__OpaqueArea = slot; } QPainterPath* QGraphicsItemGroup_virtualbase_OpaqueArea(const void* self) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_OpaqueArea(); } void QGraphicsItemGroup_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__Type = slot; } int QGraphicsItemGroup_virtualbase_Type(const void* self) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_Type(); } void QGraphicsItemGroup_override_virtual_Advance(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__Advance = slot; } void QGraphicsItemGroup_virtualbase_Advance(void* self, int phase) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_Advance(phase); } void QGraphicsItemGroup_override_virtual_Shape(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__Shape = slot; } QPainterPath* QGraphicsItemGroup_virtualbase_Shape(const void* self) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_Shape(); } void QGraphicsItemGroup_override_virtual_Contains(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__Contains = slot; } bool QGraphicsItemGroup_virtualbase_Contains(const void* self, QPointF* point) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_Contains(point); } void QGraphicsItemGroup_override_virtual_CollidesWithItem(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__CollidesWithItem = slot; } bool QGraphicsItemGroup_virtualbase_CollidesWithItem(const void* self, QGraphicsItem* other, int mode) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_CollidesWithItem(other, mode); } void QGraphicsItemGroup_override_virtual_CollidesWithPath(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__CollidesWithPath = slot; } bool QGraphicsItemGroup_virtualbase_CollidesWithPath(const void* self, QPainterPath* path, int mode) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_CollidesWithPath(path, mode); } void QGraphicsItemGroup_override_virtual_SceneEventFilter(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__SceneEventFilter = slot; } bool QGraphicsItemGroup_virtualbase_SceneEventFilter(void* self, QGraphicsItem* watched, QEvent* event) { return ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_SceneEventFilter(watched, event); } void QGraphicsItemGroup_override_virtual_SceneEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__SceneEvent = slot; } bool QGraphicsItemGroup_virtualbase_SceneEvent(void* self, QEvent* event) { return ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_SceneEvent(event); } void QGraphicsItemGroup_override_virtual_ContextMenuEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__ContextMenuEvent = slot; } void QGraphicsItemGroup_virtualbase_ContextMenuEvent(void* self, QGraphicsSceneContextMenuEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_ContextMenuEvent(event); } void QGraphicsItemGroup_override_virtual_DragEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__DragEnterEvent = slot; } void QGraphicsItemGroup_virtualbase_DragEnterEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_DragEnterEvent(event); } void QGraphicsItemGroup_override_virtual_DragLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__DragLeaveEvent = slot; } void QGraphicsItemGroup_virtualbase_DragLeaveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_DragLeaveEvent(event); } void QGraphicsItemGroup_override_virtual_DragMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__DragMoveEvent = slot; } void QGraphicsItemGroup_virtualbase_DragMoveEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_DragMoveEvent(event); } void QGraphicsItemGroup_override_virtual_DropEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__DropEvent = slot; } void QGraphicsItemGroup_virtualbase_DropEvent(void* self, QGraphicsSceneDragDropEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_DropEvent(event); } void QGraphicsItemGroup_override_virtual_FocusInEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__FocusInEvent = slot; } void QGraphicsItemGroup_virtualbase_FocusInEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_FocusInEvent(event); } void QGraphicsItemGroup_override_virtual_FocusOutEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__FocusOutEvent = slot; } void QGraphicsItemGroup_virtualbase_FocusOutEvent(void* self, QFocusEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_FocusOutEvent(event); } void QGraphicsItemGroup_override_virtual_HoverEnterEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__HoverEnterEvent = slot; } void QGraphicsItemGroup_virtualbase_HoverEnterEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_HoverEnterEvent(event); } void QGraphicsItemGroup_override_virtual_HoverMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__HoverMoveEvent = slot; } void QGraphicsItemGroup_virtualbase_HoverMoveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_HoverMoveEvent(event); } void QGraphicsItemGroup_override_virtual_HoverLeaveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__HoverLeaveEvent = slot; } void QGraphicsItemGroup_virtualbase_HoverLeaveEvent(void* self, QGraphicsSceneHoverEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_HoverLeaveEvent(event); } void QGraphicsItemGroup_override_virtual_KeyPressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__KeyPressEvent = slot; } void QGraphicsItemGroup_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_KeyPressEvent(event); } void QGraphicsItemGroup_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__KeyReleaseEvent = slot; } void QGraphicsItemGroup_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_KeyReleaseEvent(event); } void QGraphicsItemGroup_override_virtual_MousePressEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__MousePressEvent = slot; } void QGraphicsItemGroup_virtualbase_MousePressEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_MousePressEvent(event); } void QGraphicsItemGroup_override_virtual_MouseMoveEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__MouseMoveEvent = slot; } void QGraphicsItemGroup_virtualbase_MouseMoveEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_MouseMoveEvent(event); } void QGraphicsItemGroup_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__MouseReleaseEvent = slot; } void QGraphicsItemGroup_virtualbase_MouseReleaseEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_MouseReleaseEvent(event); } void QGraphicsItemGroup_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__MouseDoubleClickEvent = slot; } void QGraphicsItemGroup_virtualbase_MouseDoubleClickEvent(void* self, QGraphicsSceneMouseEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_MouseDoubleClickEvent(event); } void QGraphicsItemGroup_override_virtual_WheelEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__WheelEvent = slot; } void QGraphicsItemGroup_virtualbase_WheelEvent(void* self, QGraphicsSceneWheelEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_WheelEvent(event); } void QGraphicsItemGroup_override_virtual_InputMethodEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__InputMethodEvent = slot; } void QGraphicsItemGroup_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_InputMethodEvent(event); } void QGraphicsItemGroup_override_virtual_InputMethodQuery(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__InputMethodQuery = slot; } QVariant* QGraphicsItemGroup_virtualbase_InputMethodQuery(const void* self, int query) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_InputMethodQuery(query); } void QGraphicsItemGroup_override_virtual_ItemChange(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__ItemChange = slot; } QVariant* QGraphicsItemGroup_virtualbase_ItemChange(void* self, int change, QVariant* value) { return ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_ItemChange(change, value); } void QGraphicsItemGroup_override_virtual_SupportsExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__SupportsExtension = slot; } bool QGraphicsItemGroup_virtualbase_SupportsExtension(const void* self, int extension) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_SupportsExtension(extension); } void QGraphicsItemGroup_override_virtual_SetExtension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__SetExtension = slot; } void QGraphicsItemGroup_virtualbase_SetExtension(void* self, int extension, QVariant* variant) { ( (MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_SetExtension(extension, variant); } void QGraphicsItemGroup_override_virtual_Extension(void* self, intptr_t slot) { dynamic_cast( (QGraphicsItemGroup*)(self) )->handle__Extension = slot; } QVariant* QGraphicsItemGroup_virtualbase_Extension(const void* self, QVariant* variant) { return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_Extension(variant); } void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }