19 if (version() >= ZWP_POINTER_GESTURES_V1_RELEASE_SINCE_VERSION)
22 zwp_pointer_gestures_v1_destroy(
object());
48 struct ::wl_surface *surface,
61 qCDebug(lcQpaWaylandInput) <<
"zwp_pointer_gesture_swipe_v1_begin @ "
62 <<
pointer->mSurfacePos <<
"fingers" << fingers;
73 wl_fixed_t dx, wl_fixed_t dy)
81 const QPointF delta =
QPointF(wl_fixed_to_double(dx), wl_fixed_to_double(dy));
82 qCDebug(lcQpaWaylandInput) <<
"zwp_pointer_gesture_swipe_v1_update @ "
83 <<
pointer->mSurfacePos <<
"delta" << delta;
102 qCDebug(lcQpaWaylandInput) <<
"zwp_pointer_gesture_swipe_v1_end @ "
129 struct ::wl_surface *surface,
132#ifndef QT_NO_GESTURES
142 qCDebug(lcQpaWaylandInput) <<
"zwp_pointer_gesture_pinch_v1_begin @ "
143 <<
pointer->mSurfacePos <<
"fingers" << fingers;
154 wl_fixed_t dx, wl_fixed_t dy,
158#ifndef QT_NO_GESTURES
164 const qreal rscale = wl_fixed_to_double(
scale);
165 const qreal rot = wl_fixed_to_double(rotation);
166 const QPointF delta =
QPointF(wl_fixed_to_double(dx), wl_fixed_to_double(dy));
167 qCDebug(lcQpaWaylandInput) <<
"zwp_pointer_gesture_pinch_v1_update @ "
168 <<
pointer->mSurfacePos <<
"delta" << delta
170 <<
"delta" << rscale -
mLastScale <<
"rot" << rot;
185#ifndef QT_NO_GESTURES
192 qCDebug(lcQpaWaylandInput) <<
"zwp_pointer_gesture_swipe_v1_end @ "
IOBluetoothDevice * device
\inmodule QtCore\reentrant
void zwp_pointer_gesture_pinch_v1_update(uint32_t time, wl_fixed_t dx, wl_fixed_t dy, wl_fixed_t scale, wl_fixed_t rotation) override
void zwp_pointer_gesture_pinch_v1_begin(uint32_t serial, uint32_t time, struct ::wl_surface *surface, uint32_t fingers) override
QWaylandPointerGesturePinch(QWaylandInputDevice *p)
QPointer< QWaylandWindow > mFocus
QWaylandInputDevice * mParent
~QWaylandPointerGesturePinch() override
void zwp_pointer_gesture_pinch_v1_end(uint32_t serial, uint32_t time, int32_t cancelled) override
QPointer< QWaylandWindow > mFocus
QWaylandInputDevice * mParent
void zwp_pointer_gesture_swipe_v1_begin(uint32_t serial, uint32_t time, struct ::wl_surface *surface, uint32_t fingers) override
~QWaylandPointerGestureSwipe() override
QWaylandPointerGestureSwipe(QWaylandInputDevice *p)
void zwp_pointer_gesture_swipe_v1_end(uint32_t serial, uint32_t time, int32_t cancelled) override
void zwp_pointer_gesture_swipe_v1_update(uint32_t time, wl_fixed_t dx, wl_fixed_t dy) override
QWaylandPointerGesturePinch * createPointerGesturePinch(QWaylandInputDevice *device)
QWaylandPointerGestureSwipe * createPointerGestureSwipe(QWaylandInputDevice *device)
~QWaylandPointerGestures()
QWaylandPointerGestures(QWaylandDisplay *display, uint id, uint version)
static QWaylandWindow * fromWlSurface(::wl_surface *surface)
struct wl_display * display
Combined button and popup list for selecting options.
#define qCDebug(category,...)
constexpr const T & qMin(const T &a, const T &b)
GLsizei const void * pointer
GLenum GLenum GLenum GLenum GLenum scale