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§

source

fn grab(&self)

Grabs the mouse.

source

fn ungrab(&self)

Ungrabs the mouse.

source

fn is_grabbed(&self) -> bool

Returns whether the window is grabbing the mouse.

Implementors§