#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qgraphicssceneevent.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } /* extern C */ #endif QGraphicsSceneEvent* QGraphicsSceneEvent_new(int type) { return new QGraphicsSceneEvent(static_cast(type)); } void QGraphicsSceneEvent_virtbase(QGraphicsSceneEvent* src, QEvent** outptr_QEvent) { *outptr_QEvent = static_cast(src); } 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(int type) { return new QGraphicsSceneMouseEvent(static_cast(type)); } void QGraphicsSceneMouseEvent_virtbase(QGraphicsSceneMouseEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent) { *outptr_QGraphicsSceneEvent = static_cast(src); } QPointF* QGraphicsSceneMouseEvent_pos(const QGraphicsSceneMouseEvent* self) { return new QPointF(self->pos()); } void QGraphicsSceneMouseEvent_setPos(QGraphicsSceneMouseEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneMouseEvent_scenePos(const QGraphicsSceneMouseEvent* self) { return new QPointF(self->scenePos()); } void QGraphicsSceneMouseEvent_setScenePos(QGraphicsSceneMouseEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneMouseEvent_screenPos(const QGraphicsSceneMouseEvent* self) { return new QPoint(self->screenPos()); } void QGraphicsSceneMouseEvent_setScreenPos(QGraphicsSceneMouseEvent* self, QPoint* pos) { self->setScreenPos(*pos); } QPointF* QGraphicsSceneMouseEvent_buttonDownPos(const QGraphicsSceneMouseEvent* self, int button) { return new QPointF(self->buttonDownPos(static_cast(button))); } void QGraphicsSceneMouseEvent_setButtonDownPos(QGraphicsSceneMouseEvent* self, int button, QPointF* pos) { self->setButtonDownPos(static_cast(button), *pos); } QPointF* QGraphicsSceneMouseEvent_buttonDownScenePos(const QGraphicsSceneMouseEvent* self, int button) { return new QPointF(self->buttonDownScenePos(static_cast(button))); } void QGraphicsSceneMouseEvent_setButtonDownScenePos(QGraphicsSceneMouseEvent* self, int button, QPointF* pos) { self->setButtonDownScenePos(static_cast(button), *pos); } QPoint* QGraphicsSceneMouseEvent_buttonDownScreenPos(const QGraphicsSceneMouseEvent* self, int button) { return new QPoint(self->buttonDownScreenPos(static_cast(button))); } void QGraphicsSceneMouseEvent_setButtonDownScreenPos(QGraphicsSceneMouseEvent* self, int button, QPoint* pos) { self->setButtonDownScreenPos(static_cast(button), *pos); } QPointF* QGraphicsSceneMouseEvent_lastPos(const QGraphicsSceneMouseEvent* self) { return new QPointF(self->lastPos()); } void QGraphicsSceneMouseEvent_setLastPos(QGraphicsSceneMouseEvent* self, QPointF* pos) { self->setLastPos(*pos); } QPointF* QGraphicsSceneMouseEvent_lastScenePos(const QGraphicsSceneMouseEvent* self) { return new QPointF(self->lastScenePos()); } void QGraphicsSceneMouseEvent_setLastScenePos(QGraphicsSceneMouseEvent* self, QPointF* pos) { self->setLastScenePos(*pos); } QPoint* QGraphicsSceneMouseEvent_lastScreenPos(const QGraphicsSceneMouseEvent* self) { return new QPoint(self->lastScreenPos()); } 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)); } int QGraphicsSceneMouseEvent_button(const QGraphicsSceneMouseEvent* self) { Qt::MouseButton _ret = self->button(); return static_cast(_ret); } void QGraphicsSceneMouseEvent_setButton(QGraphicsSceneMouseEvent* self, int 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)); } int QGraphicsSceneMouseEvent_source(const QGraphicsSceneMouseEvent* self) { Qt::MouseEventSource _ret = self->source(); return static_cast(_ret); } void QGraphicsSceneMouseEvent_setSource(QGraphicsSceneMouseEvent* self, int 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(int type) { return new QGraphicsSceneWheelEvent(static_cast(type)); } void QGraphicsSceneWheelEvent_virtbase(QGraphicsSceneWheelEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent) { *outptr_QGraphicsSceneEvent = static_cast(src); } QPointF* QGraphicsSceneWheelEvent_pos(const QGraphicsSceneWheelEvent* self) { return new QPointF(self->pos()); } void QGraphicsSceneWheelEvent_setPos(QGraphicsSceneWheelEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneWheelEvent_scenePos(const QGraphicsSceneWheelEvent* self) { return new QPointF(self->scenePos()); } void QGraphicsSceneWheelEvent_setScenePos(QGraphicsSceneWheelEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneWheelEvent_screenPos(const QGraphicsSceneWheelEvent* self) { return new QPoint(self->screenPos()); } 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)); } int QGraphicsSceneWheelEvent_orientation(const QGraphicsSceneWheelEvent* self) { Qt::Orientation _ret = self->orientation(); return static_cast(_ret); } void QGraphicsSceneWheelEvent_setOrientation(QGraphicsSceneWheelEvent* self, int orientation) { self->setOrientation(static_cast(orientation)); } void QGraphicsSceneWheelEvent_delete(QGraphicsSceneWheelEvent* self) { delete self; } QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new() { return new QGraphicsSceneContextMenuEvent(); } QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new2(int type) { return new QGraphicsSceneContextMenuEvent(static_cast(type)); } void QGraphicsSceneContextMenuEvent_virtbase(QGraphicsSceneContextMenuEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent) { *outptr_QGraphicsSceneEvent = static_cast(src); } QPointF* QGraphicsSceneContextMenuEvent_pos(const QGraphicsSceneContextMenuEvent* self) { return new QPointF(self->pos()); } void QGraphicsSceneContextMenuEvent_setPos(QGraphicsSceneContextMenuEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneContextMenuEvent_scenePos(const QGraphicsSceneContextMenuEvent* self) { return new QPointF(self->scenePos()); } void QGraphicsSceneContextMenuEvent_setScenePos(QGraphicsSceneContextMenuEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneContextMenuEvent_screenPos(const QGraphicsSceneContextMenuEvent* self) { return new QPoint(self->screenPos()); } 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)); } int QGraphicsSceneContextMenuEvent_reason(const QGraphicsSceneContextMenuEvent* self) { QGraphicsSceneContextMenuEvent::Reason _ret = self->reason(); return static_cast(_ret); } void QGraphicsSceneContextMenuEvent_setReason(QGraphicsSceneContextMenuEvent* self, int reason) { self->setReason(static_cast(reason)); } void QGraphicsSceneContextMenuEvent_delete(QGraphicsSceneContextMenuEvent* self) { delete self; } QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new() { return new QGraphicsSceneHoverEvent(); } QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new2(int type) { return new QGraphicsSceneHoverEvent(static_cast(type)); } void QGraphicsSceneHoverEvent_virtbase(QGraphicsSceneHoverEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent) { *outptr_QGraphicsSceneEvent = static_cast(src); } QPointF* QGraphicsSceneHoverEvent_pos(const QGraphicsSceneHoverEvent* self) { return new QPointF(self->pos()); } void QGraphicsSceneHoverEvent_setPos(QGraphicsSceneHoverEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneHoverEvent_scenePos(const QGraphicsSceneHoverEvent* self) { return new QPointF(self->scenePos()); } void QGraphicsSceneHoverEvent_setScenePos(QGraphicsSceneHoverEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneHoverEvent_screenPos(const QGraphicsSceneHoverEvent* self) { return new QPoint(self->screenPos()); } void QGraphicsSceneHoverEvent_setScreenPos(QGraphicsSceneHoverEvent* self, QPoint* pos) { self->setScreenPos(*pos); } QPointF* QGraphicsSceneHoverEvent_lastPos(const QGraphicsSceneHoverEvent* self) { return new QPointF(self->lastPos()); } void QGraphicsSceneHoverEvent_setLastPos(QGraphicsSceneHoverEvent* self, QPointF* pos) { self->setLastPos(*pos); } QPointF* QGraphicsSceneHoverEvent_lastScenePos(const QGraphicsSceneHoverEvent* self) { return new QPointF(self->lastScenePos()); } void QGraphicsSceneHoverEvent_setLastScenePos(QGraphicsSceneHoverEvent* self, QPointF* pos) { self->setLastScenePos(*pos); } QPoint* QGraphicsSceneHoverEvent_lastScreenPos(const QGraphicsSceneHoverEvent* self) { return new QPoint(self->lastScreenPos()); } 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(int type) { return new QGraphicsSceneHelpEvent(static_cast(type)); } void QGraphicsSceneHelpEvent_virtbase(QGraphicsSceneHelpEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent) { *outptr_QGraphicsSceneEvent = static_cast(src); } QPointF* QGraphicsSceneHelpEvent_scenePos(const QGraphicsSceneHelpEvent* self) { return new QPointF(self->scenePos()); } void QGraphicsSceneHelpEvent_setScenePos(QGraphicsSceneHelpEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneHelpEvent_screenPos(const QGraphicsSceneHelpEvent* self) { return new QPoint(self->screenPos()); } 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(int type) { return new QGraphicsSceneDragDropEvent(static_cast(type)); } void QGraphicsSceneDragDropEvent_virtbase(QGraphicsSceneDragDropEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent) { *outptr_QGraphicsSceneEvent = static_cast(src); } QPointF* QGraphicsSceneDragDropEvent_pos(const QGraphicsSceneDragDropEvent* self) { return new QPointF(self->pos()); } void QGraphicsSceneDragDropEvent_setPos(QGraphicsSceneDragDropEvent* self, QPointF* pos) { self->setPos(*pos); } QPointF* QGraphicsSceneDragDropEvent_scenePos(const QGraphicsSceneDragDropEvent* self) { return new QPointF(self->scenePos()); } void QGraphicsSceneDragDropEvent_setScenePos(QGraphicsSceneDragDropEvent* self, QPointF* pos) { self->setScenePos(*pos); } QPoint* QGraphicsSceneDragDropEvent_screenPos(const QGraphicsSceneDragDropEvent* self) { return new QPoint(self->screenPos()); } 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)); } int QGraphicsSceneDragDropEvent_proposedAction(const QGraphicsSceneDragDropEvent* self) { Qt::DropAction _ret = self->proposedAction(); return static_cast(_ret); } void QGraphicsSceneDragDropEvent_setProposedAction(QGraphicsSceneDragDropEvent* self, int action) { self->setProposedAction(static_cast(action)); } void QGraphicsSceneDragDropEvent_acceptProposedAction(QGraphicsSceneDragDropEvent* self) { self->acceptProposedAction(); } int QGraphicsSceneDragDropEvent_dropAction(const QGraphicsSceneDragDropEvent* self) { Qt::DropAction _ret = self->dropAction(); return static_cast(_ret); } void QGraphicsSceneDragDropEvent_setDropAction(QGraphicsSceneDragDropEvent* self, int 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(); } void QGraphicsSceneResizeEvent_virtbase(QGraphicsSceneResizeEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent) { *outptr_QGraphicsSceneEvent = static_cast(src); } QSizeF* QGraphicsSceneResizeEvent_oldSize(const QGraphicsSceneResizeEvent* self) { return new QSizeF(self->oldSize()); } void QGraphicsSceneResizeEvent_setOldSize(QGraphicsSceneResizeEvent* self, QSizeF* size) { self->setOldSize(*size); } QSizeF* QGraphicsSceneResizeEvent_newSize(const QGraphicsSceneResizeEvent* self) { return new QSizeF(self->newSize()); } void QGraphicsSceneResizeEvent_setNewSize(QGraphicsSceneResizeEvent* self, QSizeF* size) { self->setNewSize(*size); } void QGraphicsSceneResizeEvent_delete(QGraphicsSceneResizeEvent* self) { delete self; } QGraphicsSceneMoveEvent* QGraphicsSceneMoveEvent_new() { return new QGraphicsSceneMoveEvent(); } void QGraphicsSceneMoveEvent_virtbase(QGraphicsSceneMoveEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent) { *outptr_QGraphicsSceneEvent = static_cast(src); } QPointF* QGraphicsSceneMoveEvent_oldPos(const QGraphicsSceneMoveEvent* self) { return new QPointF(self->oldPos()); } void QGraphicsSceneMoveEvent_setOldPos(QGraphicsSceneMoveEvent* self, QPointF* pos) { self->setOldPos(*pos); } QPointF* QGraphicsSceneMoveEvent_newPos(const QGraphicsSceneMoveEvent* self) { return new QPointF(self->newPos()); } void QGraphicsSceneMoveEvent_setNewPos(QGraphicsSceneMoveEvent* self, QPointF* pos) { self->setNewPos(*pos); } void QGraphicsSceneMoveEvent_delete(QGraphicsSceneMoveEvent* self) { delete self; }