KWayland
pointergestures.cpp
113 WaylandPointer<zwp_pointer_gesture_swipe_v1, zwp_pointer_gesture_swipe_v1_destroy> pointerswipegesture;
124 static void updateCallback(void *data, zwp_pointer_gesture_swipe_v1 *zwp_pointer_gesture_swipe_v1, uint32_t time, wl_fixed_t dx, wl_fixed_t dy);
125 static void endCallback(void *data, zwp_pointer_gesture_swipe_v1 *zwp_pointer_gesture_swipe_v1, uint32_t serial, uint32_t time, int32_t cancelled);
131 const zwp_pointer_gesture_swipe_v1_listener PointerSwipeGesture::Private::s_listener = {beginCallback, updateCallback, endCallback};
246 WaylandPointer<zwp_pointer_gesture_pinch_v1, zwp_pointer_gesture_pinch_v1_destroy> pointerpinchgesture;
264 static void endCallback(void *data, zwp_pointer_gesture_pinch_v1 *zwp_pointer_gesture_pinch_v1, uint32_t serial, uint32_t time, int32_t cancelled);
270 const zwp_pointer_gesture_pinch_v1_listener PointerPinchGesture::Private::s_listener = {beginCallback, updateCallback, endCallback};
296 Q_EMIT p->q->updated(QSizeF(wl_fixed_to_double(dx), wl_fixed_to_double(dy)), wl_fixed_to_double(scale), wl_fixed_to_double(rotation), time);
void destroy()
Destroys the data held by this PointerPinchGesture.
Definition: pointergestures.cpp:346
void release()
Releases the zwp_pointer_gesture_swipe_v1 interface.
Definition: pointergestures.cpp:214
void setup(zwp_pointer_gesture_pinch_v1 *pointerpinchgesture)
Setup this PointerPinchGesture to manage the pointerpinchgesture.
Definition: pointergestures.cpp:336
QPointer< Surface > surface() const
The Surface on which this gesture is performed.
Definition: pointergestures.cpp:371
quint32 fingerCount() const
The number of fingers taking part in this gesture.
Definition: pointergestures.cpp:366
bool isValid() const
Definition: pointergestures.cpp:234
This class is a wrapper for the zwp_pointer_gesture_swipe_v1 protocol.
Definition: pointergestures.h:161
PointerPinchGesture * createPinchGesture(Pointer *pointer, QObject *parent=nullptr)
Creates a PointerPinchGesture for the given pointer with the parent.
Definition: pointergestures.cpp:94
QPointer< Surface > surface() const
The Surface on which this gesture is performed.
Definition: pointergestures.cpp:196
This class is a wrapper for the zwp_pointer_gesture_pinch_v1 protocol.
Definition: pointergestures.h:289
void setEventQueue(EventQueue *queue)
Sets the queue to use for creating objects with this PointerGestures.
Definition: pointergestures.cpp:72
quint32 fingerCount() const
The number of fingers taking part in this gesture.
Definition: pointergestures.cpp:191
PointerSwipeGesture * createSwipeGesture(Pointer *pointer, QObject *parent=nullptr)
Creates a PointerSwipeGesture for the given pointer with the parent.
Definition: pointergestures.cpp:82
bool isValid() const
Definition: pointergestures.cpp:361
void release()
Releases the zwp_pointer_gesture_pinch_v1 interface.
Definition: pointergestures.cpp:341
EventQueue * eventQueue()
Definition: pointergestures.cpp:77
void setup(zwp_pointer_gestures_v1 *pointergestures)
Setup this PointerGestures to manage the pointergestures.
Definition: pointergestures.cpp:40
PointerGestures(QObject *parent=nullptr)
Creates a new PointerGestures.
Definition: pointergestures.cpp:29
void setup(zwp_pointer_gesture_swipe_v1 *pointerswipegesture)
Setup this PointerSwipeGesture to manage the pointerswipegesture.
Definition: pointergestures.cpp:209
void destroy()
Destroys the data held by this PointerSwipeGesture.
Definition: pointergestures.cpp:219
QObject * parent() const const
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
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.