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
qlibinputtouch_p.h
Go to the documentation of this file.
1
// Copyright (C) 2019 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
4
#
ifndef
QLIBINPUTTOUCH_P_H
5
#
define
QLIBINPUTTOUCH_P_H
6
7
#
include
<
QtCore
/
QHash
>
8
#
include
<
QtCore
/
QList
>
9
#
include
<
QtCore
/
QPointer
>
10
#
include
<
qpa
/
qwindowsysteminterface
.
h
>
11
#
include
<
private
/
qglobal_p
.
h
>
12
13
//
14
// W A R N I N G
15
// -------------
16
//
17
// This file is not part of the Qt API. It exists purely as an
18
// implementation detail. This header file may change from version to
19
// version without notice, or even be removed.
20
//
21
// We mean it.
22
//
23
24
struct
libinput_event_touch;
25
struct
libinput_device;
26
27
QT_BEGIN_NAMESPACE
28
29
class
QScreen;
30
class
QLibInputTouch
31
{
32
public
:
33
void
registerDevice
(libinput_device *dev);
34
void
unregisterDevice
(libinput_device *dev);
35
void
processTouchDown
(libinput_event_touch *e);
36
void
processTouchMotion
(libinput_event_touch *e);
37
void
processTouchUp
(libinput_event_touch *e);
38
void
processTouchCancel
(libinput_event_touch *e);
39
void
processTouchFrame
(libinput_event_touch *e);
40
41
private
:
42
struct
DeviceState {
43
DeviceState() : m_touchDevice(
nullptr
), m_screenName() { }
44
QWindowSystemInterface::TouchPoint *point(int32_t slot);
45
QList<QWindowSystemInterface::TouchPoint> m_points;
46
QPointingDevice *m_touchDevice;
47
QString m_screenName;
48
};
49
50
DeviceState *deviceState(libinput_event_touch *e);
51
QRect screenGeometry(DeviceState *state);
52
QPointF getPos(libinput_event_touch *e);
53
54
QHash<libinput_device *, DeviceState> m_devState;
55
mutable
QPointer<QScreen> m_screen;
56
};
57
58
QT_END_NAMESPACE
59
60
#
endif
QLibInputHandler
Definition
qlibinputhandler_p.h:38
QLibInputHandler::onReadyRead
void onReadyRead()
Definition
qlibinputhandler.cpp:102
QLibInputHandler::~QLibInputHandler
~QLibInputHandler()
Definition
qlibinputhandler.cpp:93
QLibInputHandler::QLibInputHandler
QLibInputHandler(const QString &key, const QString &spec)
Definition
qlibinputhandler.cpp:55
QLibInputTouch
Definition
qlibinputtouch_p.h:31
QLibInputTouch::processTouchDown
void processTouchDown(libinput_event_touch *e)
Definition
qlibinputtouch.cpp:133
QLibInputTouch::unregisterDevice
void unregisterDevice(libinput_device *dev)
Definition
qlibinputtouch.cpp:127
QLibInputTouch::processTouchMotion
void processTouchMotion(libinput_event_touch *e)
Definition
qlibinputtouch.cpp:151
QLibInputTouch::processTouchCancel
void processTouchCancel(libinput_event_touch *e)
Definition
qlibinputtouch.cpp:194
QLibInputTouch::registerDevice
void registerDevice(libinput_device *dev)
Definition
qlibinputtouch.cpp:93
QLibInputTouch::processTouchFrame
void processTouchFrame(libinput_event_touch *e)
Definition
qlibinputtouch.cpp:204
QLibInputTouch::processTouchUp
void processTouchUp(libinput_event_touch *e)
Definition
qlibinputtouch.cpp:173
Q_LOGGING_CATEGORY
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
liClose
static void liClose(int fd, void *user_data)
Definition
qlibinputhandler.cpp:27
liOpen
static QT_BEGIN_NAMESPACE int liOpen(const char *path, int flags, void *user_data)
Definition
qlibinputhandler.cpp:21
liInterface
static const struct libinput_interface liInterface
Definition
qlibinputhandler.cpp:33
liLogHandler
static void liLogHandler(libinput *libinput, libinput_log_priority priority, const char *format, va_list args)
Definition
qlibinputhandler.cpp:38
qtbase
src
platformsupport
input
libinput
qlibinputtouch_p.h
Generated on
for Qt by
1.18.0