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 Clone for CursorState
impl Clone for CursorState
fn clone(&self) -> CursorState
fn clone(&self) -> CursorState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for CursorState
impl Debug for CursorState
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for CursorState
impl Copy for CursorState
impl PartialEq<CursorState> for CursorState
impl PartialEq<CursorState> for CursorState
Auto Trait Implementations
impl Send for CursorState
impl Send for CursorState
impl Sync for CursorState
impl Sync for CursorState