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 
18 class SeatInterface;
19 
24 class KWAYLANDSERVER_EXPORT TouchInterface : public Resource
25 {
26  Q_OBJECT
27 public:
28  virtual ~TouchInterface();
29 
30 private:
31  void down(qint32 id, quint32 serial, const QPointF &localPos);
32  void up(qint32 id, quint32 serial);
33  void frame();
34  void cancel();
35  void move(qint32 id, const QPointF &localPos);
36  friend class SeatInterface;
37  explicit TouchInterface(SeatInterface *parent, wl_resource *parentResource);
38  class Private;
39  Private *d_func() const;
40 };
41 
42 }
43 }
44 
45 Q_DECLARE_METATYPE(KWayland::Server::TouchInterface*)
46 
47 #endif
Represents a Seat on the Wayland Display.
Resource for the wl_touch interface.
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 Mon Aug 10 2020 22:53:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.