KWayland
pointerconstraints.cpp
27 WaylandPointer<zwp_pointer_constraints_v1, zwp_pointer_constraints_v1_destroy> pointerconstraints;
87 LockedPointer *PointerConstraints::lockPointer(Surface *surface, Pointer *pointer, Region *region, LifeTime lifetime, QObject *parent)
107 auto w = zwp_pointer_constraints_v1_lock_pointer(d->pointerconstraints, *surface, *pointer, wr, lf);
115 ConfinedPointer *PointerConstraints::confinePointer(Surface *surface, Pointer *pointer, Region *region, LifeTime lifetime, QObject *parent)
135 auto w = zwp_pointer_constraints_v1_confine_pointer(d->pointerconstraints, *surface, *pointer, wr, lf);
167 void LockedPointer::Private::lockedCallback(void *data, zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
174 void LockedPointer::Private::unlockedCallback(void *data, zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
236 zwp_locked_pointer_v1_set_cursor_position_hint(d->lockedpointer, wl_fixed_from_double(surfaceLocal.x()), wl_fixed_from_double(surfaceLocal.y()));
273 void ConfinedPointer::Private::confinedCallback(void *data, zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
280 void ConfinedPointer::Private::unconfinedCallback(void *data, zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
void setEventQueue(EventQueue *queue)
Sets the queue to use for creating objects with this PointerConstraints.
Definition: pointerconstraints.cpp:77
PointerConstraints(QObject *parent=nullptr)
Creates a new PointerConstraints.
Definition: pointerconstraints.cpp:31
Wrapper class for wl_event_queue interface.
Definition: event_queue.h:55
ConfinedPointer * confinePointer(Surface *surface, Pointer *pointer, Region *region, LifeTime lifetime, QObject *parent=nullptr)
This factory method creates a ConfinedPointer.
Definition: pointerconstraints.cpp:115
void setCursorPositionHint(const QPointF &surfaceLocal)
Set the cursor position hint relative to the top left corner of the Surface.
Definition: pointerconstraints.cpp:233
void release()
Releases the zwp_pointer_constraints_v1 interface.
Definition: pointerconstraints.cpp:54
A OneShot pointer constraint will never reactivate once it has been deactivated.
qreal x() const const
qreal y() const const
void setup(zwp_confined_pointer_v1 *confinedpointer)
Setup this ConfinedPointer to manage the confinedpointer.
Definition: pointerconstraints.cpp:311
void release()
Releases the zwp_confined_pointer_v1 interface.
Definition: pointerconstraints.cpp:316
bool isValid() const
Definition: pointerconstraints.cpp:334
void destroy()
Destroys the data held by this PointerConstraints.
Definition: pointerconstraints.cpp:59
Wrapper for zwp_confined_pointer_v1 protocol The confine pointer interface represents a confined poin...
Definition: pointerconstraints.h:365
void destroy()
Destroys the data held by this ConfinedPointer.
Definition: pointerconstraints.cpp:321
QObject(QObject *parent)
void setup(zwp_locked_pointer_v1 *lockedpointer)
Setup this LockedPointer to manage the lockedpointer.
Definition: pointerconstraints.cpp:205
void setRegion(Region *region)
Set a new region used to lock the pointer.
Definition: pointerconstraints.cpp:239
EventQueue * eventQueue()
Definition: pointerconstraints.cpp:82
A persistent pointer constraint may again reactivate once it has been deactivated.
Definition: appmenu.cpp:13
void setup(zwp_pointer_constraints_v1 *pointerconstraints)
Setup this PointerConstraints to manage the pointerconstraints.
Definition: pointerconstraints.cpp:49
QObject * parent() const const
bool isValid() const
Definition: pointerconstraints.cpp:72
LockedPointer * lockPointer(Surface *surface, Pointer *pointer, Region *region, LifeTime lifetime, QObject *parent=nullptr)
This factory method creates a LockedPointer.
Definition: pointerconstraints.cpp:87
Wrapper for the zwp_locked_pointer_v1 interface.
Definition: pointerconstraints.h:247
Q_EMITQ_EMIT
void setRegion(Region *region)
Set a new region used to confine the pointer.
Definition: pointerconstraints.cpp:339
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 22:52:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 22:52:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.