Debian Codegraph @

wayland/qtwayland-dev/5.11.3/QtWaylandClient/private/qwayland-qt-key-unstable-v1.h

raw symbols SCIP
1 // Copyright (C) 2016 The Qt Company Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5 #ifndef QT_WAYLAND_QT_KEY_UNSTABLE_V1
6 #define QT_WAYLAND_QT_KEY_UNSTABLE_V1
7
8 #include <QtWaylandClient/private/wayland-qt-key-unstable-v1-client-protocol.h>
9 #include <QByteArray>
10 #include <QString>
11
12 QT_BEGIN_NAMESPACE
13 QT_WARNING_PUSH
14 QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers")
15
16 #if !defined(Q_WAYLAND_CLIENT_QT_KEY_UNSTABLE_V1_EXPORT)
17 # if defined(QT_SHARED)
18 # define Q_WAYLAND_CLIENT_QT_KEY_UNSTABLE_V1_EXPORT Q_DECL_EXPORT
19 # else
20 # define Q_WAYLAND_CLIENT_QT_KEY_UNSTABLE_V1_EXPORT
21 # endif
22 #endif
23
24 namespace QtWayland {
25 class Q_WAYLAND_CLIENT_QT_KEY_UNSTABLE_V1_EXPORT zqt_key_v1
26 {
27 public:
28 zqt_key_v1(struct ::wl_registry *registry, int id, int version);
29 zqt_key_v1(struct ::zqt_key_v1 *object);
30 zqt_key_v1();
31
32 virtual ~zqt_key_v1();
33
34 void init(struct ::wl_registry *registry, int id, int version);
35 void init(struct ::zqt_key_v1 *object);
36
37 struct ::zqt_key_v1 *object() { return m_zqt_key_v1; }
38 const struct ::zqt_key_v1 *object() const { return m_zqt_key_v1; }
39
40 bool isInitialized() const;
41
42 static const struct ::wl_interface *interface();
43
44 protected:
45 virtual void zqt_key_v1_key(struct ::wl_surface *surface, uint32_t time, uint32_t type, uint32_t key, uint32_t modifiers, uint32_t nativeScanCode, uint32_t nativeVirtualKey, uint32_t nativeModifiers, const QString &text, uint32_t autorepeat, uint32_t count);
46
47 private:
48 void init_listener();
49 static const struct zqt_key_v1_listener m_zqt_key_v1_listener;
50 static void handle_key(
51 void *data,
52 struct ::zqt_key_v1 *object,
53 struct ::wl_surface *surface,
54 uint32_t time,
55 uint32_t type,
56 uint32_t key,
57 uint32_t modifiers,
58 uint32_t nativeScanCode,
59 uint32_t nativeVirtualKey,
60 uint32_t nativeModifiers,
61 const char *text,
62 uint32_t autorepeat,
63 uint32_t count);
64 struct ::zqt_key_v1 *m_zqt_key_v1;
65 };
66 }
67
68 QT_WARNING_POP
69 QT_END_NAMESPACE
70
71 #endif