pub enum CursorGrabMode {
None,
Confined,
Locked,
}Expand description
Requested host behavior for the system cursor.
Cursor grabbing is best effort. A platform may fall back from Self::Locked
to Self::Confined, or leave the cursor ungrabbed when neither mode is
supported.
Variants§
None
The cursor can leave the host viewport and absolute pointer motion is available normally.
Confined
Keep the cursor inside the host viewport while retaining an absolute cursor position.
Locked
Decouple motion from the host’s absolute cursor position and report relative movement. Visibility remains a separate host request.
Trait Implementations§
Source§impl Clone for CursorGrabMode
impl Clone for CursorGrabMode
impl Copy for CursorGrabMode
Source§impl Debug for CursorGrabMode
impl Debug for CursorGrabMode
Source§impl Default for CursorGrabMode
impl Default for CursorGrabMode
impl Eq for CursorGrabMode
Source§impl PartialEq for CursorGrabMode
impl PartialEq for CursorGrabMode
impl StructuralPartialEq for CursorGrabMode
Auto Trait Implementations§
impl Forget for CursorGrabMode
impl Freeze for CursorGrabMode
impl Move for CursorGrabMode
impl RefUnwindSafe for CursorGrabMode
impl Send for CursorGrabMode
impl Sync for CursorGrabMode
impl Unpin for CursorGrabMode
impl UnsafeUnpin for CursorGrabMode
impl UnwindSafe for CursorGrabMode
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