KWin
Loading...
Searching...
No Matches
src
keyboard_repeat.h
Go to the documentation of this file.
1
/*
2
KWin - the KDE window manager
3
This file is part of the KDE project.
4
5
SPDX-FileCopyrightText: 2016, 2017 Martin Gräßlin <mgraesslin@kde.org>
6
7
SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
#pragma once
10
11
#include "
input_event_spy.h
"
12
13
#include <QObject>
14
15
class
QTimer;
16
17
namespace
KWin
18
{
19
class
Xkb;
20
21
class
KeyboardRepeat
:
public
QObject,
public
InputEventSpy
22
{
23
Q_OBJECT
24
public
:
25
explicit
KeyboardRepeat
(
Xkb
*xkb);
26
~KeyboardRepeat
()
override
;
27
28
void
keyEvent
(
KeyEvent
*event)
override
;
29
30
Q_SIGNALS:
31
void
keyRepeat
(quint32 key, std::chrono::microseconds time);
32
33
private
:
34
void
handleKeyRepeat();
35
QTimer *m_timer;
36
Xkb
*m_xkb;
37
std::chrono::microseconds m_time;
38
quint32 m_key = 0;
39
};
40
41
}
KWin::InputEventSpy
Definition
input_event_spy.h:39
KWin::KeyEvent
Definition
input_event.h:133
KWin::KeyboardRepeat
Definition
keyboard_repeat.h:22
KWin::KeyboardRepeat::keyEvent
void keyEvent(KeyEvent *event) override
Definition
keyboard_repeat.cpp:42
KWin::KeyboardRepeat::KeyboardRepeat
KeyboardRepeat(Xkb *xkb)
Definition
keyboard_repeat.cpp:22
KWin::KeyboardRepeat::keyRepeat
void keyRepeat(quint32 key, std::chrono::microseconds time)
KWin::KeyboardRepeat::~KeyboardRepeat
~KeyboardRepeat() override
KWin::Xkb
Definition
xkb.h:39
input_event_spy.h
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0