Enum winit::CursorState
[−]
[src]
pub enum CursorState {
Normal,
Hide,
Grab,
}Describes how winit handles the cursor.
Variants
NormalNormal cursor behavior.
HideThe cursor will be invisible when over the window.
GrabGrabs 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 Debug for CursorState[src]
impl Copy for CursorState[src]
impl Clone for CursorState[src]
fn clone(&self) -> CursorState[src]
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