#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "qgraphicssceneevent.h" #include "gen_qgraphicssceneevent.h" #include "_cgo_export.h" QGraphicsSceneEvent* QGraphicsSceneEvent_new(uintptr_t typeVal) { return new QGraphicsSceneEvent(static_cast(typeVal)); } QWidget* QGraphicsSceneEvent_Widget(const QGraphicsSceneEvent* self) { return self->widget(); } void QGraphicsSceneEvent_SetWidget(QGraphicsSceneEvent* self, QWidget* widget) { self->setWidget(widget); } void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self) { delete self; } QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new() { return new QGraphicsSceneMouseEvent(); } QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new2(uintptr_t typeVal) { return new QGraphicsSceneMouseEvent(static_cast(typeVal)); } QPointF* QGraphicsSceneMouseEvent_Pos(const QGraphicsSceneMouseEvent* self) { QPointF _ret = self->pos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneMouseEvent_SetPos(QGraphicsSceneMouseEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneMouseEvent_ScenePos(const QGraphicsSceneMouseEvent* self) { QPointF _ret = self->scenePos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneMouseEvent_SetScenePos(QGraphicsSceneMouseEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneMouseEvent_ScreenPos(const QGraphicsSceneMouseEvent* self) { QPoint _ret = self->screenPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneMouseEvent_SetScreenPos(QGraphicsSceneMouseEvent* self, QPoint* pos) { self->setScreenPos(*pos); } QPointF* QGraphicsSceneMouseEvent_ButtonDownPos(const QGraphicsSceneMouseEvent* self, uintptr_t button) { QPointF _ret = self->buttonDownPos(static_cast(button)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneMouseEvent_SetButtonDownPos(QGraphicsSceneMouseEvent* self, uintptr_t button, QPointF* pos) { self->setButtonDownPos(static_cast(button), *pos); } QPointF* QGraphicsSceneMouseEvent_ButtonDownScenePos(const QGraphicsSceneMouseEvent* self, uintptr_t button) { QPointF _ret = self->buttonDownScenePos(static_cast(button)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneMouseEvent_SetButtonDownScenePos(QGraphicsSceneMouseEvent* self, uintptr_t button, QPointF* pos) { self->setButtonDownScenePos(static_cast(button), *pos); } QPoint* QGraphicsSceneMouseEvent_ButtonDownScreenPos(const QGraphicsSceneMouseEvent* self, uintptr_t button) { QPoint _ret = self->buttonDownScreenPos(static_cast(button)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneMouseEvent_SetButtonDownScreenPos(QGraphicsSceneMouseEvent* self, uintptr_t button, QPoint* pos) { self->setButtonDownScreenPos(static_cast(button), *pos); } QPointF* QGraphicsSceneMouseEvent_LastPos(const QGraphicsSceneMouseEvent* self) { QPointF _ret = self->lastPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneMouseEvent_SetLastPos(QGraphicsSceneMouseEvent* self, QPointF* pos) { self->setLastPos(*pos); } QPointF* QGraphicsSceneMouseEvent_LastScenePos(const QGraphicsSceneMouseEvent* self) { QPointF _ret = self->lastScenePos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneMouseEvent_SetLastScenePos(QGraphicsSceneMouseEvent* self, QPointF* pos) { self->setLastScenePos(*pos); } QPoint* QGraphicsSceneMouseEvent_LastScreenPos(const QGraphicsSceneMouseEvent* self) { QPoint _ret = self->lastScreenPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneMouseEvent_SetLastScreenPos(QGraphicsSceneMouseEvent* self, QPoint* pos) { self->setLastScreenPos(*pos); } int QGraphicsSceneMouseEvent_Buttons(const QGraphicsSceneMouseEvent* self) { Qt::MouseButtons _ret = self->buttons(); return static_cast(_ret); } void QGraphicsSceneMouseEvent_SetButtons(QGraphicsSceneMouseEvent* self, int buttons) { self->setButtons(static_cast(buttons)); } uintptr_t QGraphicsSceneMouseEvent_Button(const QGraphicsSceneMouseEvent* self) { Qt::MouseButton _ret = self->button(); return static_cast(_ret); } void QGraphicsSceneMouseEvent_SetButton(QGraphicsSceneMouseEvent* self, uintptr_t button) { self->setButton(static_cast(button)); } int QGraphicsSceneMouseEvent_Modifiers(const QGraphicsSceneMouseEvent* self) { Qt::KeyboardModifiers _ret = self->modifiers(); return static_cast(_ret); } void QGraphicsSceneMouseEvent_SetModifiers(QGraphicsSceneMouseEvent* self, int modifiers) { self->setModifiers(static_cast(modifiers)); } uintptr_t QGraphicsSceneMouseEvent_Source(const QGraphicsSceneMouseEvent* self) { Qt::MouseEventSource _ret = self->source(); return static_cast(_ret); } void QGraphicsSceneMouseEvent_SetSource(QGraphicsSceneMouseEvent* self, uintptr_t source) { self->setSource(static_cast(source)); } int QGraphicsSceneMouseEvent_Flags(const QGraphicsSceneMouseEvent* self) { Qt::MouseEventFlags _ret = self->flags(); return static_cast(_ret); } void QGraphicsSceneMouseEvent_SetFlags(QGraphicsSceneMouseEvent* self, int flags) { self->setFlags(static_cast(flags)); } void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self) { delete self; } QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new() { return new QGraphicsSceneWheelEvent(); } QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new2(uintptr_t typeVal) { return new QGraphicsSceneWheelEvent(static_cast(typeVal)); } QPointF* QGraphicsSceneWheelEvent_Pos(const QGraphicsSceneWheelEvent* self) { QPointF _ret = self->pos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneWheelEvent_SetPos(QGraphicsSceneWheelEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneWheelEvent_ScenePos(const QGraphicsSceneWheelEvent* self) { QPointF _ret = self->scenePos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneWheelEvent_SetScenePos(QGraphicsSceneWheelEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneWheelEvent_ScreenPos(const QGraphicsSceneWheelEvent* self) { QPoint _ret = self->screenPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneWheelEvent_SetScreenPos(QGraphicsSceneWheelEvent* self, QPoint* pos) { self->setScreenPos(*pos); } int QGraphicsSceneWheelEvent_Buttons(const QGraphicsSceneWheelEvent* self) { Qt::MouseButtons _ret = self->buttons(); return static_cast(_ret); } void QGraphicsSceneWheelEvent_SetButtons(QGraphicsSceneWheelEvent* self, int buttons) { self->setButtons(static_cast(buttons)); } int QGraphicsSceneWheelEvent_Modifiers(const QGraphicsSceneWheelEvent* self) { Qt::KeyboardModifiers _ret = self->modifiers(); return static_cast(_ret); } void QGraphicsSceneWheelEvent_SetModifiers(QGraphicsSceneWheelEvent* self, int modifiers) { self->setModifiers(static_cast(modifiers)); } int QGraphicsSceneWheelEvent_Delta(const QGraphicsSceneWheelEvent* self) { return self->delta(); } void QGraphicsSceneWheelEvent_SetDelta(QGraphicsSceneWheelEvent* self, int delta) { self->setDelta(static_cast(delta)); } uintptr_t QGraphicsSceneWheelEvent_Orientation(const QGraphicsSceneWheelEvent* self) { Qt::Orientation _ret = self->orientation(); return static_cast(_ret); } void QGraphicsSceneWheelEvent_SetOrientation(QGraphicsSceneWheelEvent* self, uintptr_t orientation) { self->setOrientation(static_cast(orientation)); } void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self) { delete self; } QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new() { return new QGraphicsSceneContextMenuEvent(); } QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new2(uintptr_t typeVal) { return new QGraphicsSceneContextMenuEvent(static_cast(typeVal)); } QPointF* QGraphicsSceneContextMenuEvent_Pos(const QGraphicsSceneContextMenuEvent* self) { QPointF _ret = self->pos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneContextMenuEvent_SetPos(QGraphicsSceneContextMenuEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneContextMenuEvent_ScenePos(const QGraphicsSceneContextMenuEvent* self) { QPointF _ret = self->scenePos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneContextMenuEvent_SetScenePos(QGraphicsSceneContextMenuEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneContextMenuEvent_ScreenPos(const QGraphicsSceneContextMenuEvent* self) { QPoint _ret = self->screenPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneContextMenuEvent_SetScreenPos(QGraphicsSceneContextMenuEvent* self, QPoint* pos) { self->setScreenPos(*pos); } int QGraphicsSceneContextMenuEvent_Modifiers(const QGraphicsSceneContextMenuEvent* self) { Qt::KeyboardModifiers _ret = self->modifiers(); return static_cast(_ret); } void QGraphicsSceneContextMenuEvent_SetModifiers(QGraphicsSceneContextMenuEvent* self, int modifiers) { self->setModifiers(static_cast(modifiers)); } uintptr_t QGraphicsSceneContextMenuEvent_Reason(const QGraphicsSceneContextMenuEvent* self) { QGraphicsSceneContextMenuEvent::Reason _ret = self->reason(); return static_cast(_ret); } void QGraphicsSceneContextMenuEvent_SetReason(QGraphicsSceneContextMenuEvent* self, uintptr_t reason) { self->setReason(static_cast(reason)); } void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self) { delete self; } QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new() { return new QGraphicsSceneHoverEvent(); } QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new2(uintptr_t typeVal) { return new QGraphicsSceneHoverEvent(static_cast(typeVal)); } QPointF* QGraphicsSceneHoverEvent_Pos(const QGraphicsSceneHoverEvent* self) { QPointF _ret = self->pos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneHoverEvent_SetPos(QGraphicsSceneHoverEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneHoverEvent_ScenePos(const QGraphicsSceneHoverEvent* self) { QPointF _ret = self->scenePos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneHoverEvent_SetScenePos(QGraphicsSceneHoverEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneHoverEvent_ScreenPos(const QGraphicsSceneHoverEvent* self) { QPoint _ret = self->screenPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneHoverEvent_SetScreenPos(QGraphicsSceneHoverEvent* self, QPoint* pos) { self->setScreenPos(*pos); } QPointF* QGraphicsSceneHoverEvent_LastPos(const QGraphicsSceneHoverEvent* self) { QPointF _ret = self->lastPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneHoverEvent_SetLastPos(QGraphicsSceneHoverEvent* self, QPointF* pos) { self->setLastPos(*pos); } QPointF* QGraphicsSceneHoverEvent_LastScenePos(const QGraphicsSceneHoverEvent* self) { QPointF _ret = self->lastScenePos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneHoverEvent_SetLastScenePos(QGraphicsSceneHoverEvent* self, QPointF* pos) { self->setLastScenePos(*pos); } QPoint* QGraphicsSceneHoverEvent_LastScreenPos(const QGraphicsSceneHoverEvent* self) { QPoint _ret = self->lastScreenPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneHoverEvent_SetLastScreenPos(QGraphicsSceneHoverEvent* self, QPoint* pos) { self->setLastScreenPos(*pos); } int QGraphicsSceneHoverEvent_Modifiers(const QGraphicsSceneHoverEvent* self) { Qt::KeyboardModifiers _ret = self->modifiers(); return static_cast(_ret); } void QGraphicsSceneHoverEvent_SetModifiers(QGraphicsSceneHoverEvent* self, int modifiers) { self->setModifiers(static_cast(modifiers)); } void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self) { delete self; } QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new() { return new QGraphicsSceneHelpEvent(); } QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new2(uintptr_t typeVal) { return new QGraphicsSceneHelpEvent(static_cast(typeVal)); } QPointF* QGraphicsSceneHelpEvent_ScenePos(const QGraphicsSceneHelpEvent* self) { QPointF _ret = self->scenePos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneHelpEvent_SetScenePos(QGraphicsSceneHelpEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneHelpEvent_ScreenPos(const QGraphicsSceneHelpEvent* self) { QPoint _ret = self->screenPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneHelpEvent_SetScreenPos(QGraphicsSceneHelpEvent* self, QPoint* pos) { self->setScreenPos(*pos); } void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self) { delete self; } QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new() { return new QGraphicsSceneDragDropEvent(); } QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new2(uintptr_t typeVal) { return new QGraphicsSceneDragDropEvent(static_cast(typeVal)); } QPointF* QGraphicsSceneDragDropEvent_Pos(const QGraphicsSceneDragDropEvent* self) { QPointF _ret = self->pos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneDragDropEvent_SetPos(QGraphicsSceneDragDropEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneDragDropEvent_ScenePos(const QGraphicsSceneDragDropEvent* self) { QPointF _ret = self->scenePos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneDragDropEvent_SetScenePos(QGraphicsSceneDragDropEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneDragDropEvent_ScreenPos(const QGraphicsSceneDragDropEvent* self) { QPoint _ret = self->screenPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QGraphicsSceneDragDropEvent_SetScreenPos(QGraphicsSceneDragDropEvent* self, QPoint* pos) { self->setScreenPos(*pos); } int QGraphicsSceneDragDropEvent_Buttons(const QGraphicsSceneDragDropEvent* self) { Qt::MouseButtons _ret = self->buttons(); return static_cast(_ret); } void QGraphicsSceneDragDropEvent_SetButtons(QGraphicsSceneDragDropEvent* self, int buttons) { self->setButtons(static_cast(buttons)); } int QGraphicsSceneDragDropEvent_Modifiers(const QGraphicsSceneDragDropEvent* self) { Qt::KeyboardModifiers _ret = self->modifiers(); return static_cast(_ret); } void QGraphicsSceneDragDropEvent_SetModifiers(QGraphicsSceneDragDropEvent* self, int modifiers) { self->setModifiers(static_cast(modifiers)); } int QGraphicsSceneDragDropEvent_PossibleActions(const QGraphicsSceneDragDropEvent* self) { Qt::DropActions _ret = self->possibleActions(); return static_cast(_ret); } void QGraphicsSceneDragDropEvent_SetPossibleActions(QGraphicsSceneDragDropEvent* self, int actions) { self->setPossibleActions(static_cast(actions)); } uintptr_t QGraphicsSceneDragDropEvent_ProposedAction(const QGraphicsSceneDragDropEvent* self) { Qt::DropAction _ret = self->proposedAction(); return static_cast(_ret); } void QGraphicsSceneDragDropEvent_SetProposedAction(QGraphicsSceneDragDropEvent* self, uintptr_t action) { self->setProposedAction(static_cast(action)); } void QGraphicsSceneDragDropEvent_AcceptProposedAction(QGraphicsSceneDragDropEvent* self) { self->acceptProposedAction(); } uintptr_t QGraphicsSceneDragDropEvent_DropAction(const QGraphicsSceneDragDropEvent* self) { Qt::DropAction _ret = self->dropAction(); return static_cast(_ret); } void QGraphicsSceneDragDropEvent_SetDropAction(QGraphicsSceneDragDropEvent* self, uintptr_t action) { self->setDropAction(static_cast(action)); } QWidget* QGraphicsSceneDragDropEvent_Source(const QGraphicsSceneDragDropEvent* self) { return self->source(); } void QGraphicsSceneDragDropEvent_SetSource(QGraphicsSceneDragDropEvent* self, QWidget* source) { self->setSource(source); } QMimeData* QGraphicsSceneDragDropEvent_MimeData(const QGraphicsSceneDragDropEvent* self) { return (QMimeData*) self->mimeData(); } void QGraphicsSceneDragDropEvent_SetMimeData(QGraphicsSceneDragDropEvent* self, QMimeData* data) { self->setMimeData(data); } void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self) { delete self; } QGraphicsSceneResizeEvent* QGraphicsSceneResizeEvent_new() { return new QGraphicsSceneResizeEvent(); } QSizeF* QGraphicsSceneResizeEvent_OldSize(const QGraphicsSceneResizeEvent* self) { QSizeF _ret = self->oldSize(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSizeF(_ret)); } void QGraphicsSceneResizeEvent_SetOldSize(QGraphicsSceneResizeEvent* self, QSizeF* size) { self->setOldSize(*size); } QSizeF* QGraphicsSceneResizeEvent_NewSize(const QGraphicsSceneResizeEvent* self) { QSizeF _ret = self->newSize(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSizeF(_ret)); } void QGraphicsSceneResizeEvent_SetNewSize(QGraphicsSceneResizeEvent* self, QSizeF* size) { self->setNewSize(*size); } void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self) { delete self; } QGraphicsSceneMoveEvent* QGraphicsSceneMoveEvent_new() { return new QGraphicsSceneMoveEvent(); } QPointF* QGraphicsSceneMoveEvent_OldPos(const QGraphicsSceneMoveEvent* self) { QPointF _ret = self->oldPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneMoveEvent_SetOldPos(QGraphicsSceneMoveEvent* self, QPointF* pos) { self->setOldPos(*pos); } QPointF* QGraphicsSceneMoveEvent_NewPos(const QGraphicsSceneMoveEvent* self) { QPointF _ret = self->newPos(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QGraphicsSceneMoveEvent_SetNewPos(QGraphicsSceneMoveEvent* self, QPointF* pos) { self->setNewPos(*pos); } void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self) { delete self; }