PythonQtWrapper_QWheelEvent.h
40 lines
| 1.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QWHEELEVENT_H | ||
#define PYTHONQTWRAPPER_QWHEELEVENT_H | ||||
#include <qevent.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qpoint.h> | ||||
florianlink
|
r24 | class PythonQtShell_QWheelEvent : public QWheelEvent | ||
{ | ||||
public: | ||||
PythonQtShell_QWheelEvent(const QPoint& pos, const QPoint& globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical):QWheelEvent(pos, globalPos, delta, buttons, modifiers, orient),_wrapper(NULL) {}; | ||||
PythonQtShell_QWheelEvent(const QPoint& pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical):QWheelEvent(pos, delta, buttons, modifiers, orient),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QWheelEvent : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QWheelEvent* new_QWheelEvent(const QPoint& pos, const QPoint& globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical); | ||||
QWheelEvent* new_QWheelEvent(const QPoint& pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical); | ||||
void delete_QWheelEvent(QWheelEvent* obj) { delete obj; } | ||||
int globalY(QWheelEvent* theWrappedObject) const; | ||||
florianlink
|
r73 | const QPoint* pos(QWheelEvent* theWrappedObject) const; | ||
int x(QWheelEvent* theWrappedObject) const; | ||||
const QPoint* globalPos(QWheelEvent* theWrappedObject) const; | ||||
florianlink
|
r28 | Qt::Orientation orientation(QWheelEvent* theWrappedObject) const; | ||
florianlink
|
r73 | int y(QWheelEvent* theWrappedObject) const; | ||
florianlink
|
r28 | Qt::MouseButtons buttons(QWheelEvent* theWrappedObject) const; | ||
int globalX(QWheelEvent* theWrappedObject) const; | ||||
florianlink
|
r73 | int delta(QWheelEvent* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QWHEELEVENT_H | ||||