Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qinputdevicemanager_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QINPUTDEVICEMANAGER_P_H
6
#
define
QINPUTDEVICEMANAGER_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtGui
/
private
/
qtguiglobal_p
.
h
>
20
#
include
<
QtCore
/
qobject
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QInputDeviceManagerPrivate;
25
26
class
Q_GUI_EXPORT
QInputDeviceManager
:
public
QObject
27
{
28
Q_OBJECT
29
Q_DECLARE_PRIVATE(QInputDeviceManager)
30
31
public
:
32
enum
DeviceType {
33
DeviceTypeUnknown,
34
DeviceTypePointer,
35
DeviceTypeKeyboard,
36
DeviceTypeTouch,
37
DeviceTypeTablet,
38
39
NumDeviceTypes
40
};
41
42
explicit
QInputDeviceManager(QObject *parent =
nullptr
);
43
~QInputDeviceManager() override;
44
45
int
deviceCount(DeviceType type)
const
;
46
47
void
setCursorPos(
const
QPoint &pos);
48
49
Qt::KeyboardModifiers keyboardModifiers()
const
;
50
void
setKeyboardModifiers(Qt::KeyboardModifiers mods);
51
52
Q_SIGNALS:
53
void
deviceListChanged(QInputDeviceManager::DeviceType type);
54
void
cursorPositionChangeRequested(
const
QPoint &pos);
55
};
56
57
QT_END_NAMESPACE
58
59
QT_DECL_METATYPE_EXTERN_TAGGED(QInputDeviceManager::DeviceType,
60
QInputDeviceManager__DeviceType, Q_GUI_EXPORT)
61
62
#
endif
// QINPUTDEVICEMANAGER_P_H
QInputDeviceManager
QInputDeviceManager acts as a communication hub between QtGui and the input handlers.
Definition
qinputdevicemanager_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
gui
kernel
qinputdevicemanager_p.h
Generated on
for Qt by
1.18.0