PythonQtWrapper_QMouseEvent.h
43 lines
| 2.1 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QMOUSEEVENT_H | ||
#define PYTHONQTWRAPPER_QMOUSEEVENT_H | ||||
#include <qevent.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qevent.h> | ||||
#include <qpoint.h> | ||||
florianlink
|
r24 | class PythonQtShell_QMouseEvent : public QMouseEvent | ||
{ | ||||
public: | ||||
PythonQtShell_QMouseEvent(QEvent::Type type, const QPoint& pos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers):QMouseEvent(type, pos, button, buttons, modifiers),_wrapper(NULL) {}; | ||||
PythonQtShell_QMouseEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers):QMouseEvent(type, pos, globalPos, button, buttons, modifiers),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QMouseEvent : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QMouseEvent* new_QMouseEvent(QEvent::Type type, const QPoint& pos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); | ||||
QMouseEvent* new_QMouseEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); | ||||
void delete_QMouseEvent(QMouseEvent* obj) { delete obj; } | ||||
int globalX(QMouseEvent* theWrappedObject) const; | ||||
florianlink
|
r73 | Qt::MouseButton button(QMouseEvent* theWrappedObject) const; | ||
florianlink
|
r13 | int globalY(QMouseEvent* theWrappedObject) const; | ||
florianlink
|
r24 | Qt::MouseButtons buttons(QMouseEvent* theWrappedObject) const; | ||
QMouseEvent* static_QMouseEvent_createExtendedMouseEvent(QEvent::Type type, const QPointF& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); | ||||
florianlink
|
r73 | const QPoint* pos(QMouseEvent* theWrappedObject) const; | ||
QPointF posF(QMouseEvent* theWrappedObject) const; | ||||
int x(QMouseEvent* theWrappedObject) const; | ||||
bool hasExtendedInfo(QMouseEvent* theWrappedObject) const; | ||||
const QPoint* globalPos(QMouseEvent* theWrappedObject) const; | ||||
int y(QMouseEvent* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QMOUSEEVENT_H | ||||