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 | |
29 | enum class KeyType { |
30 | BaseKey, |
31 | BackspaceKey, |
32 | ChangeLanguageKey, |
33 | EnterKey, |
34 | FillerKey, |
35 | HandwritingModeKey, |
36 | HideKeyboardKey, |
37 | InputModeKey, |
38 | Key, |
39 | ModeKey, |
40 | NumberKey, |
41 | ShiftKey, |
42 | SpaceKey, |
43 | SymbolModeKey, |
44 | FlickKey, |
45 | }; |
46 | Q_ENUM_NS(KeyType) |
47 | |
48 | enum class KeyboardFunction { |
49 | HideInputPanel, |
50 | ChangeLanguage, |
51 | ToggleHandwritingMode, |
52 | }; |
53 | Q_ENUM_NS(KeyboardFunction) |
54 | |
55 | enum class KeyboardFunctionKey : quint32 { |
56 | None = 0, |
57 | Hide = 0x1, |
58 | Language = 0x2, |
59 | All = 0xffffffff, |
60 | }; |
61 | Q_DECLARE_FLAGS(KeyboardFunctionKeys, KeyboardFunctionKey) |
62 | Q_DECLARE_OPERATORS_FOR_FLAGS(KeyboardFunctionKeys) |
63 | Q_FLAG_NS(KeyboardFunctionKeys) |
64 | |
65 | } // namespace QtVirtualKeyboard |
66 | |
67 | QT_END_NAMESPACE |
68 | |
69 | #endif // QVIRTUALKEYBOARDNAMESPACE_P_H |
70 | |