Enum glutin::CursorState
source · pub enum CursorState {
Normal,
Hide,
Grab,
}
Expand description
Describes how winit handles the cursor.
Variants§
Normal
Normal cursor behavior.
Hide
The cursor will be invisible when over the window.
Grab
Grabs the mouse cursor. The cursor’s motion will be confined to this window and the window has exclusive access to further events regarding the cursor.
This is useful for first-person cameras for example.
Trait Implementations§
source§impl Clone for CursorState
impl Clone for CursorState
source§fn clone(&self) -> CursorState
fn clone(&self) -> CursorState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CursorState
impl Debug for CursorState
source§impl PartialEq<CursorState> for CursorState
impl PartialEq<CursorState> for CursorState
source§fn eq(&self, other: &CursorState) -> bool
fn eq(&self, other: &CursorState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CursorState
impl StructuralPartialEq for CursorState
Auto Trait Implementations§
impl RefUnwindSafe for CursorState
impl Send for CursorState
impl Sync for CursorState
impl Unpin for CursorState
impl UnwindSafe for CursorState
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