pub struct Grab;Expand description
Input interceptor for blocking or modifying events.
Grab allows you to prevent specific events from reaching other applications.
§Example
use raw_input::Grab;
// It must be started first
// Core::start(); // This is a blocking operation
// Block all keyboard input
Grab::start(); // defaults to blocking all input
// customizable
// Grab::mouse_move(true);
// Grab::mouse_wheel(true);
// Grab::mouse_button(true);
// Grab::keyboard(true);
// Stop grabbing later
// Grab::stop();Auto Trait Implementations§
impl Freeze for Grab
impl RefUnwindSafe for Grab
impl Send for Grab
impl Sync for Grab
impl Unpin for Grab
impl UnwindSafe for Grab
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more