Enum glutin::CursorState [] [src]

pub enum CursorState {
    Normal,
    Hide,
    Grab,
}

Describes how glutin handles the cursor.

Variants

Normal cursor behavior.

The cursor will be invisible when over the window.

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 Debug for CursorState
[src]

[src]

Formats the value using the given formatter.

impl Copy for CursorState
[src]

impl Clone for CursorState
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for CursorState
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.