Trait rich_sdl2_rust::window::MouseGrabExt
source · pub trait MouseGrabExt {
// Required methods
fn grab(&self);
fn ungrab(&self);
fn is_grabbed(&self) -> bool;
}
Expand description
An extension for Window
to grab/ungrab the mouse.
Required Methods§
sourcefn is_grabbed(&self) -> bool
fn is_grabbed(&self) -> bool
Returns whether the window is grabbing the mouse.