Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qlibinputkeyboard_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
4
#ifndef QLIBINPUTKEYBOARD_P_H
5
#define QLIBINPUTKEYBOARD_P_H
6
7
#include <QtCore/QPoint>
8
#include <QtCore/QTimer>
9
10
#include <QtGui/private/qtguiglobal_p.h>
11
12
#if QT_CONFIG(xkbcommon)
13
#include <xkbcommon/xkbcommon.h>
14
#endif
15
16
//
17
// W A R N I N G
18
// -------------
19
//
20
// This file is not part of the Qt API. It exists purely as an
21
// implementation detail. This header file may change from version to
22
// version without notice, or even be removed.
23
//
24
// We mean it.
25
//
26
27
struct
libinput_event_keyboard;
28
29
QT_BEGIN_NAMESPACE
30
31
class
QLibInputKeyboard
:
public
QObject
32
{
33
public
:
34
QLibInputKeyboard
();
35
~QLibInputKeyboard
();
36
37
void
processKey
(libinput_event_keyboard *e);
38
39
#if QT_CONFIG(xkbcommon)
40
void
handleRepeat();
41
42
private
:
43
int
keysymToQtKey(xkb_keysym_t
key
)
const
;
44
int
keysymToQtKey(xkb_keysym_t
keysym
, Qt::KeyboardModifiers *
modifiers
,
const
QString
&
text
)
const
;
45
46
xkb_context *m_ctx =
nullptr
;
47
xkb_keymap *m_keymap =
nullptr
;
48
xkb_state *m_state =
nullptr
;
49
50
QTimer
m_repeatTimer;
51
52
struct
{
53
int
qtkey;
54
Qt::KeyboardModifiers mods;
55
int
nativeScanCode;
56
int
virtualKey;
57
int
nativeMods;
58
QString
unicodeText;
59
int
repeatCount;
60
} m_repeatData;
61
#endif
62
};
63
64
QT_END_NAMESPACE
65
66
#endif
QLibInputKeyboard
Definition
qlibinputkeyboard_p.h:32
QLibInputKeyboard::processKey
void processKey(libinput_event_keyboard *e)
Definition
qlibinputkeyboard.cpp:62
QLibInputKeyboard::~QLibInputKeyboard
~QLibInputKeyboard()
Definition
qlibinputkeyboard.cpp:50
QLibInputKeyboard::QLibInputKeyboard
QLibInputKeyboard()
Definition
qlibinputkeyboard.cpp:23
QObject
\inmodule QtCore
Definition
qobject.h:103
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QTimer
\inmodule QtCore
Definition
qtimer.h:20
modifiers
EGLImageKHR int int EGLuint64KHR * modifiers
Definition
dmabufserverbufferintegration.h:34
text
QString text
Definition
doc_src_properties.cpp:105
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
key
GLuint64 key
Definition
qopengles2ext.h:2268
keysym
int keysym
Definition
qvnc.cpp:139
qtbase
src
platformsupport
input
libinput
qlibinputkeyboard_p.h
Generated by
1.10.0