Trait input::mouse::MouseRelativeEvent
[−]
[src]
pub trait MouseRelativeEvent: Sized { fn from_xy(x: f64, y: f64, old_event: &Self) -> Option<Self>; fn mouse_relative<U, F>(&self, f: F) -> Option<U>
where
F: FnMut(f64, f64) -> U; fn mouse_relative_args(&self) -> Option<[f64; 2]> { ... } }
The relative movement of mouse cursor
Required Methods
fn from_xy(x: f64, y: f64, old_event: &Self) -> Option<Self>
Creates a mouse relative event.
fn mouse_relative<U, F>(&self, f: F) -> Option<U> where
F: FnMut(f64, f64) -> U,
F: FnMut(f64, f64) -> U,
Calls closure if this is a mouse relative event.
Provided Methods
fn mouse_relative_args(&self) -> Option<[f64; 2]>
Returns mouse relative arguments.
Implementors
impl MouseRelativeEvent for Input