pub struct ZwpPointerConstraintsV1;
Expand description
constrain the movement of a pointer
The global interface exposing pointer constraining functionality. It exposes two requests: lock_pointer for locking the pointer to its position, and confine_pointer for locking the pointer to a region.
The lock_pointer and confine_pointer requests create the objects wp_locked_pointer and wp_confined_pointer respectively, and the client can use these objects to interact with the lock.
For any surface, only one lock or confinement may be active across all wl_pointer objects of the same seat. If a lock or confinement is requested when another lock or confinement is active or requested on the same surface and with any of the wl_pointer objects of the same seat, an ‘already_constrained’ error will be raised.
Trait Implementations§
Source§impl Debug for ZwpPointerConstraintsV1
impl Debug for ZwpPointerConstraintsV1
Source§impl Interface for ZwpPointerConstraintsV1
impl Interface for ZwpPointerConstraintsV1
Source§const NAME: &'static str = "zwp_pointer_constraints_v1"
const NAME: &'static str = "zwp_pointer_constraints_v1"
The name of this interface. This will correspond to the ‘name’ attribute
on the ‘interface’ element in the wayland protocol XML.
Auto Trait Implementations§
impl Freeze for ZwpPointerConstraintsV1
impl RefUnwindSafe for ZwpPointerConstraintsV1
impl Send for ZwpPointerConstraintsV1
impl Sync for ZwpPointerConstraintsV1
impl Unpin for ZwpPointerConstraintsV1
impl UnwindSafe for ZwpPointerConstraintsV1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more