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
22QT_BEGIN_NAMESPACE
23
24namespace QtVirtualKeyboard {
25
26Q_VIRTUALKEYBOARD_EXPORT Q_NAMESPACE
27QML_NAMED_ELEMENT(QtVirtualKeyboard)
28QML_ADDED_IN_VERSION(6, 4)
29
30enum 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};
47Q_ENUM_NS(KeyType)
48
49enum class KeyboardFunction {
50 HideInputPanel,
51 ChangeLanguage,
52 ToggleHandwritingMode,
53};
54Q_ENUM_NS(KeyboardFunction)
55
56enum class KeyboardFunctionKey : quint32 {
57 None = 0,
58 Hide = 0x1,
59 Language = 0x2,
60 All = 0xffffffff,
61};
62Q_DECLARE_FLAGS(KeyboardFunctionKeys, KeyboardFunctionKey)
63Q_DECLARE_OPERATORS_FOR_FLAGS(KeyboardFunctionKeys)
64Q_FLAG_NS(KeyboardFunctionKeys)
65
66} // namespace QtVirtualKeyboard
67
68QT_END_NAMESPACE
69
70#endif // QVIRTUALKEYBOARDNAMESPACE_P_H
71

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qtvirtualkeyboard/src/virtualkeyboard/qvirtualkeyboardnamespace_p.h