PythonQtWrapper_QGraphicsSceneContextMenuEvent.h
34 lines
| 1.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRAPHICSSCENECONTEXTMENUEVENT_H | ||
#define PYTHONQTWRAPPER_QGRAPHICSSCENECONTEXTMENUEVENT_H | ||||
#include <qgraphicssceneevent.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qpoint.h> | ||||
#include <qwidget.h> | ||||
class PythonQtWrapper_QGraphicsSceneContextMenuEvent : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Reason ) | ||||
enum Reason{ | ||||
Mouse = QGraphicsSceneContextMenuEvent::Mouse, Keyboard = QGraphicsSceneContextMenuEvent::Keyboard, Other = QGraphicsSceneContextMenuEvent::Other}; | ||||
public slots: | ||||
QGraphicsSceneContextMenuEvent* new_QGraphicsSceneContextMenuEvent(QEvent::Type type = QEvent::None); | ||||
void delete_QGraphicsSceneContextMenuEvent(QGraphicsSceneContextMenuEvent* obj) { delete obj; } | ||||
florianlink
|
r73 | QPointF scenePos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; | ||
florianlink
|
r24 | void setScreenPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPoint& pos); | ||
Qt::KeyboardModifiers modifiers(QGraphicsSceneContextMenuEvent* theWrappedObject) const; | ||||
florianlink
|
r73 | QPointF pos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; | ||
florianlink
|
r28 | void setModifiers(QGraphicsSceneContextMenuEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); | ||
QGraphicsSceneContextMenuEvent::Reason reason(QGraphicsSceneContextMenuEvent* theWrappedObject) const; | ||||
void setPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos); | ||||
florianlink
|
r73 | void setScenePos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos); | ||
void setReason(QGraphicsSceneContextMenuEvent* theWrappedObject, QGraphicsSceneContextMenuEvent::Reason reason); | ||||
QPoint screenPos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGRAPHICSSCENECONTEXTMENUEVENT_H | ||||