Enum nannou::CursorState
[−]
pub enum CursorState { Normal, Hide, Grab, }
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
impl Copy for CursorState
impl PartialEq<CursorState> for CursorState
fn eq(&self, __arg_0: &CursorState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for CursorState
fn clone(&self) -> CursorState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more