1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWAYLANDQTKEY_H
5#define QWAYLANDQTKEY_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <qpa/qwindowsysteminterface.h>
19
20#include <QtWaylandClient/qtwaylandclientglobal.h>
21#include <QtWaylandClient/private/qwayland-qt-key-unstable-v1.h>
22#include <QtCore/private/qglobal_p.h>
23
24QT_BEGIN_NAMESPACE
25
26namespace QtWaylandClient {
27
28class QWaylandDisplay;
29
30class Q_WAYLANDCLIENT_EXPORT QWaylandQtKeyExtension : public QtWayland::zqt_key_v1
31{
32public:
33 QWaylandQtKeyExtension(QWaylandDisplay *display, uint32_t id);
34
35private:
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
54QT_END_NAMESPACE
55
56#endif // QWAYLANDQTKEY_H
57

source code of qtwayland/src/client/qwaylandqtkey_p.h