pub struct PointerLock { /* private fields */ }Expand description
The pointer held on a window’s surface (zwp_locked_pointer_v1, for as
long as the compositor keeps it), its moves reported as relative
motion. The compositor locks it once the pointer is over the surface,
and ends it as it sees fit (when the window loses focus): that’s
reported as LockEvent::Ended. Unlocked when dropped.
It uses a seat and a pointer of our own: the compositor sends a client’s pointer events to each of its pointers.
Implementations§
Source§impl PointerLock
impl PointerLock
Trait Implementations§
Source§impl Drop for PointerLock
impl Drop for PointerLock
Auto Trait Implementations§
impl !RefUnwindSafe for PointerLock
impl !UnwindSafe for PointerLock
impl Forget for PointerLock
impl Freeze for PointerLockwhere
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
*const ArcInner<Mutex<EventQueueInner<Watch>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<EventQueueInner<Watch>>>>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*mut wl_proxy: Freeze,
&'static Interface: Freeze,
*const ArcInner<dyn ObjectData> is !null: Freeze,
PhantomData<ArcInner<dyn ObjectData>>: Freeze,
impl Move for PointerLock
impl Send for PointerLock
impl Sync for PointerLock
impl Unpin for PointerLock
impl UnsafeUnpin for PointerLockwhere
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const ArcInner<Mutex<EventQueueInner<Watch>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<EventQueueInner<Watch>>>>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*mut wl_proxy: UnsafeUnpin,
&'static Interface: UnsafeUnpin,
*const ArcInner<dyn ObjectData> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ObjectData>>: UnsafeUnpin,
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.