KWin
Loading...
Searching...
No Matches
src
wayland
keyboard.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
3
4
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5
*/
6
#pragma once
7
8
#include "kwin_export.h"
9
10
#include <QObject>
11
12
namespace
KWin
13
{
14
class
ClientConnection;
15
class
SeatInterface;
16
class
SurfaceInterface;
17
class
KeyboardInterfacePrivate;
18
19
enum class
KeyboardKeyState
: quint32;
20
24
class
KWIN_EXPORT
KeyboardInterface
:
public
QObject
25
{
26
Q_OBJECT
27
public
:
28
~KeyboardInterface
()
override
;
29
33
SurfaceInterface
*focusedSurface()
const
;
34
38
qint32 keyRepeatRate()
const
;
42
qint32 keyRepeatDelay()
const
;
43
void
setKeymap(
const
QByteArray &content);
44
55
void
setRepeatInfo(qint32 charactersPerSecond, qint32 delay);
56
57
void
sendKey(quint32 key,
KeyboardKeyState
state);
58
void
sendKey(quint32 key,
KeyboardKeyState
state,
ClientConnection
*client);
59
void
sendModifiers(quint32 depressed, quint32 latched, quint32 locked, quint32 group);
60
61
private
:
62
void
setFocusedSurface(
SurfaceInterface
*surface, quint32 serial);
63
void
setModifierFocusSurface(
SurfaceInterface
*surface);
64
friend
class
SeatInterface
;
65
friend
class
SeatInterfacePrivate
;
66
friend
class
KeyboardInterfacePrivate
;
67
explicit
KeyboardInterface
(
SeatInterface
*seat);
68
69
std::unique_ptr<KeyboardInterfacePrivate> d;
70
};
71
72
}
73
74
Q_DECLARE_METATYPE
(
KWin::KeyboardInterface
*)
KWin::ClientConnection
Convenient Class which represents a wl_client.
Definition
clientconnection.h:32
KWin::KeyboardInterface
Resource for the wl_keyboard interface.
Definition
keyboard.h:25
KWin::KeyboardInterface::~KeyboardInterface
~KeyboardInterface() override
KWin::KeyboardInterfacePrivate
Definition
keyboard_p.h:21
KWin::SeatInterface
Represents a Seat on the Wayland Display.
Definition
seat.h:134
KWin::SeatInterfacePrivate
Definition
seat_p.h:34
KWin::SurfaceInterface
Resource representing a wl_surface.
Definition
surface.h:80
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)
KWin
Definition
activation_test.cpp:20
KWin::KeyboardKeyState
KeyboardKeyState
Definition
seat.h:82
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0