Struct sdl2::mouse::MouseUtil [−][src]
pub struct MouseUtil { /* fields omitted */ }Mouse utility functions. Access with Sdl::mouse().
let sdl_context = sdl2::init().unwrap(); // Hide the cursor sdl_context.mouse().show_cursor(false);
Implementations
impl MouseUtil[src]
impl MouseUtil[src]pub fn focused_window_id(&self) -> Option<u32>[src]
Gets the id of the window which currently has mouse focus.
pub fn warp_mouse_in_window(&self, window: &Window, x: i32, y: i32)[src]
pub fn set_relative_mouse_mode(&self, on: bool)[src]
pub fn relative_mouse_mode(&self) -> bool[src]
pub fn is_cursor_showing(&self) -> bool[src]
pub fn show_cursor(&self, show: bool)[src]
pub fn capture(&self, enable: bool)[src]
Auto Trait Implementations
impl !RefUnwindSafe for MouseUtil
impl !RefUnwindSafe for MouseUtilimpl UnwindSafe for MouseUtil
impl UnwindSafe for MouseUtil