PythonQtWrapper_QKeyEvent.h
40 lines
| 1.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QKEYEVENT_H | ||
#define PYTHONQTWRAPPER_QKEYEVENT_H | ||||
#include <qevent.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qevent.h> | ||||
florianlink
|
r24 | class PythonQtShell_QKeyEvent : public QKeyEvent | ||
{ | ||||
public: | ||||
PythonQtShell_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1):QKeyEvent(type, key, modifiers, text, autorep, count),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QKeyEvent : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QKeyEvent* new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1); | ||||
void delete_QKeyEvent(QKeyEvent* obj) { delete obj; } | ||||
florianlink
|
r73 | QString text(QKeyEvent* theWrappedObject) const; | ||
florianlink
|
r24 | unsigned int nativeVirtualKey(QKeyEvent* theWrappedObject) const; | ||
florianlink
|
r73 | unsigned int nativeModifiers(QKeyEvent* theWrappedObject) const; | ||
florianlink
|
r13 | bool hasExtendedInfo(QKeyEvent* theWrappedObject) const; | ||
florianlink
|
r28 | int key(QKeyEvent* theWrappedObject) const; | ||
QKeyEvent* static_QKeyEvent_createExtendedKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text = QString(), bool autorep = false, ushort count = 1); | ||||
florianlink
|
r13 | bool isAutoRepeat(QKeyEvent* theWrappedObject) const; | ||
Qt::KeyboardModifiers modifiers(QKeyEvent* theWrappedObject) const; | ||||
florianlink
|
r73 | unsigned int nativeScanCode(QKeyEvent* theWrappedObject) const; | ||
florianlink
|
r28 | int count(QKeyEvent* theWrappedObject) const; | ||
florianlink
|
r24 | bool matches(QKeyEvent* theWrappedObject, QKeySequence::StandardKey key) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QKEYEVENT_H | ||||