KWayland

pointergestures_interface.h
1 /*
2  SPDX-FileCopyrightText: 2016 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 KWAYLAND_SERVER_POINTERGESTURES_INTERFACE_H
7 #define KWAYLAND_SERVER_POINTERGESTURES_INTERFACE_H
8 
9 #include "global.h"
10 
11 #include <KWayland/Server/kwaylandserver_export.h>
12 
13 namespace KWayland
14 {
15 namespace Server
16 {
17 /**
18  * Enum describing the interface versions the PointerGesturesInterface can support.
19  *
20  * @since 5.29
21  **/
23  /**
24  * zwp_pointer_gestures_v1, zwp_pointer_gesture_swipe_v1 and zwp_pointer_gesture_pinch_v1
25  **/
26  UnstableV1,
27 };
28 
29 /**
30  * Manager object for the PointerGestures.
31  *
32  * Creates and manages pointer swipe and pointer pinch gestures which are
33  * reported to the SeatInterface.
34  *
35  * @see Display::createPointerGestures
36  * @since 5.29
37  **/
38 class KWAYLANDSERVER_EXPORT PointerGesturesInterface : public Global
39 {
40  Q_OBJECT
41 public:
42  virtual ~PointerGesturesInterface();
43 
44  /**
45  * @returns The interface version used by this PointerGesturesInterface
46  **/
47  PointerGesturesInterfaceVersion interfaceVersion() const;
48 
49 protected:
50  class Private;
51  explicit PointerGesturesInterface(Private *d, QObject *parent = nullptr);
52 
53 private:
54  Private *d_func() const;
55 };
56 
57 }
58 }
59 
60 #endif
PointerGesturesInterfaceVersion
Enum describing the interface versions the PointerGesturesInterface can support.
Base class for all Globals.
Definition: global.h:46
Manager object for the PointerGestures.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Sep 23 2021 22:51:09 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.