KWayland

pointergestures_interface.cpp
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 #include "pointergestures_interface_p.h"
7 
8 namespace KWayland
9 {
10 namespace Server
11 {
12 PointerGesturesInterface::Private::Private(PointerGesturesInterfaceVersion interfaceVersion,
13  PointerGesturesInterface *q,
14  Display *d,
15  const wl_interface *interface,
16  quint32 version)
17  : Global::Private(d, interface, version)
18  , interfaceVersion(interfaceVersion)
19  , q(q)
20 {
21 }
22 
23 PointerGesturesInterface::PointerGesturesInterface(Private *d, QObject *parent)
24  : Global(d, parent)
25 {
26 }
27 
28 PointerGesturesInterface::~PointerGesturesInterface() = default;
29 
30 PointerGesturesInterfaceVersion PointerGesturesInterface::interfaceVersion() const
31 {
32  Q_D();
33  return d->interfaceVersion;
34 }
35 
36 PointerGesturesInterface::Private *PointerGesturesInterface::d_func() const
37 {
38  return reinterpret_cast<Private *>(d.data());
39 }
40 
41 PointerSwipeGestureInterface::Private::Private(PointerSwipeGestureInterface *q,
42  Global *c,
43  wl_resource *parentResource,
44  const wl_interface *interface,
45  const void *implementation,
46  PointerInterface *pointer)
47  : Resource::Private(q, c, parentResource, interface, implementation)
48  , pointer(pointer)
49 {
50 }
51 
52 PointerSwipeGestureInterface::Private::~Private()
53 {
54  if (resource) {
55  wl_resource_destroy(resource);
56  resource = nullptr;
57  }
58 }
59 
60 PointerSwipeGestureInterface::PointerSwipeGestureInterface(Private *p, QObject *parent)
61  : Resource(p, parent)
62 {
63 }
64 
65 PointerSwipeGestureInterface::~PointerSwipeGestureInterface() = default;
66 
67 PointerSwipeGestureInterface::Private *PointerSwipeGestureInterface::d_func() const
68 {
69  return reinterpret_cast<Private *>(d.data());
70 }
71 
72 PointerPinchGestureInterface::Private::Private(PointerPinchGestureInterface *q,
73  Global *c,
74  wl_resource *parentResource,
75  const wl_interface *interface,
76  const void *implementation,
77  PointerInterface *pointer)
78  : Resource::Private(q, c, parentResource, interface, implementation)
79  , pointer(pointer)
80 {
81 }
82 
83 PointerPinchGestureInterface::Private::~Private()
84 {
85  if (resource) {
86  wl_resource_destroy(resource);
87  resource = nullptr;
88  }
89 }
90 
91 PointerPinchGestureInterface::PointerPinchGestureInterface(Private *p, QObject *parent)
92  : Resource(p, parent)
93 {
94 }
95 
96 PointerPinchGestureInterface::~PointerPinchGestureInterface() = default;
97 
98 PointerPinchGestureInterface::Private *PointerPinchGestureInterface::d_func() const
99 {
100  return reinterpret_cast<Private *>(d.data());
101 }
102 
103 }
104 }
unsigned int version()
PointerGesturesInterfaceVersion
Enum describing the interface versions the PointerGesturesInterface can support.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 03:56:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.