| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef QWAYLANDQTKEY_H |
| 6 |
#define QWAYLANDQTKEY_H |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#include <qpa/qwindowsysteminterface.h> |
| 20 |
|
| 21 |
#include <QtWaylandClient/qtwaylandclientglobal.h> |
| 22 |
#include <QtWaylandClient/private/qwayland-qt-key-unstable-v1.h> |
| 23 |
|
| 24 |
QT_BEGIN_NAMESPACE |
| 25 |
|
| 26 |
namespace QtWaylandClient { |
| 27 |
|
| 28 |
class QWaylandDisplay; |
| 29 |
|
| 30 |
class Q_WAYLAND_CLIENT_EXPORT QWaylandQtKeyExtension : public QtWayland::zqt_key_v1 |
| 31 |
{ |
| 32 |
public: |
| 33 |
QWaylandQtKeyExtension(QWaylandDisplay *display, uint32_t id); |
| 34 |
|
| 35 |
private: |
| 36 |
QWaylandDisplay *m_display = nullptr; |
| 37 |
|
| 38 |
void zqt_key_v1_key(struct wl_surface *surface, |
| 39 |
uint32_t time, |
| 40 |
uint32_t type, |
| 41 |
uint32_t key, |
| 42 |
uint32_t modifiers, |
| 43 |
uint32_t nativeScanCode, |
| 44 |
uint32_t nativeVirtualKey, |
| 45 |
uint32_t nativeModifiers, |
| 46 |
const QString &text, |
| 47 |
uint32_t autorep, |
| 48 |
uint32_t count) override; |
| 49 |
|
| 50 |
}; |
| 51 |
|
| 52 |
} |
| 53 |
|
| 54 |
QT_END_NAMESPACE |
| 55 |
|
| 56 |
#endif |