1 | // Copyright (C) 2023 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QVIRTUALKEYBOARDNAMESPACE_P_H |
5 | #define QVIRTUALKEYBOARDNAMESPACE_P_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 <QtCore/qmetaobject.h> |
19 | #include <QtQml/qqml.h> |
20 | #include <QtVirtualKeyboard/qvirtualkeyboard_global.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | namespace QtVirtualKeyboard { |
25 | |
26 | Q_VIRTUALKEYBOARD_EXPORT Q_NAMESPACE |
27 | QML_NAMED_ELEMENT(QtVirtualKeyboard) |
28 | QML_ADDED_IN_VERSION(6, 4) |
29 | |
30 | enum class KeyType { |
31 | BaseKey, |
32 | BackspaceKey, |
33 | ChangeLanguageKey, |
34 | EnterKey, |
35 | FillerKey, |
36 | HandwritingModeKey, |
37 | HideKeyboardKey, |
38 | InputModeKey, |
39 | Key, |
40 | ModeKey, |
41 | NumberKey, |
42 | ShiftKey, |
43 | SpaceKey, |
44 | SymbolModeKey, |
45 | FlickKey, |
46 | }; |
47 | Q_ENUM_NS(KeyType) |
48 | |
49 | enum class KeyboardFunction { |
50 | HideInputPanel, |
51 | ChangeLanguage, |
52 | ToggleHandwritingMode, |
53 | }; |
54 | Q_ENUM_NS(KeyboardFunction) |
55 | |
56 | enum class KeyboardFunctionKey : quint32 { |
57 | None = 0, |
58 | Hide = 0x1, |
59 | Language = 0x2, |
60 | All = 0xffffffff, |
61 | }; |
62 | Q_DECLARE_FLAGS(KeyboardFunctionKeys, KeyboardFunctionKey) |
63 | Q_DECLARE_OPERATORS_FOR_FLAGS(KeyboardFunctionKeys) |
64 | Q_FLAG_NS(KeyboardFunctionKeys) |
65 | |
66 | } // namespace QtVirtualKeyboard |
67 | |
68 | QT_END_NAMESPACE |
69 | |
70 | #endif // QVIRTUALKEYBOARDNAMESPACE_P_H |
71 |