Enum glutin::CursorState [] [src]

pub enum CursorState {
    Normal,
    Hide,
    Grab,
}

Describes how glutin 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

Derived Implementations

impl Clone for CursorState

fn clone(&self) -> CursorState

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for CursorState

impl Debug for CursorState

fn fmt(&self, __arg_0: &mut Formatter) -> Result