Struct sdl2::mouse::MouseUtil[][src]

pub struct MouseUtil { /* fields omitted */ }
Expand description

Mouse utility functions. Access with Sdl::mouse().

let sdl_context = sdl2::init().unwrap();

// Hide the cursor
sdl_context.mouse().show_cursor(false);

Implementations

Gets the id of the window which currently has mouse focus.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.