KWayland

keyboard_interface.h
1 /*
2  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #ifndef WAYLAND_SERVER_KEYBOARD_INTERFACE_H
7 #define WAYLAND_SERVER_KEYBOARD_INTERFACE_H
8 
9 #include <KWayland/Server/kwaylandserver_export.h>
10 
11 #include "resource.h"
12 
13 namespace KWayland
14 {
15 namespace Server
16 {
17 
18 class SeatInterface;
19 class SurfaceInterface;
20 
25 class KWAYLANDSERVER_EXPORT KeyboardInterface : public Resource
26 {
27  Q_OBJECT
28 public:
29  virtual ~KeyboardInterface();
30 
34  SurfaceInterface *focusedSurface() const;
35 
36 private:
37  void setFocusedSurface(SurfaceInterface *surface, quint32 serial);
38  void setKeymap(int fd, quint32 size);
39  void setKeymap(const QByteArray &content);
40  void updateModifiers(quint32 depressed, quint32 latched, quint32 locked, quint32 group, quint32 serial);
41  void keyPressed(quint32 key, quint32 serial);
42  void keyReleased(quint32 key, quint32 serial);
43  void repeatInfo(qint32 charactersPerSecond, qint32 delay);
44  friend class SeatInterface;
45  explicit KeyboardInterface(SeatInterface *parent, wl_resource *parentResource);
46 
47  class Private;
48  Private *d_func() const;
49 };
50 
51 }
52 }
53 
54 Q_DECLARE_METATYPE(KWayland::Server::KeyboardInterface*)
55 
56 #endif
Resource for the wl_keyboard interface.
Represents a Seat on the Wayland Display.
Resource representing a wl_surface.
Represents a bound Resource.
Definition: resource.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:48:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.