KWayland

touch_interface.h
1 /*
2  SPDX-FileCopyrightText: 2015 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_TOUCH_INTERFACE_H
7 #define WAYLAND_SERVER_TOUCH_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 class SeatInterface;
18 
19 /**
20  * @brief Resource for the wl_touch interface.
21  *
22  **/
23 class KWAYLANDSERVER_EXPORT TouchInterface : public Resource
24 {
25  Q_OBJECT
26 public:
27  ~TouchInterface() override;
28 
29 private:
30  void down(qint32 id, quint32 serial, const QPointF &localPos);
31  void up(qint32 id, quint32 serial);
32  void frame();
33  void cancel();
34  void move(qint32 id, const QPointF &localPos);
35  friend class SeatInterface;
36  explicit TouchInterface(SeatInterface *parent, wl_resource *parentResource);
37  class Private;
38  Private *d_func() const;
39 };
40 
41 }
42 }
43 
44 Q_DECLARE_METATYPE(KWayland::Server::TouchInterface *)
45 
46 #endif
Represents a Seat on the Wayland Display.
Resource for the wl_touch interface.
Represents a bound Resource.
Definition: resource.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jan 30 2023 03:56:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.