Trait input::mouse::MouseScrollEvent [−][src]
pub trait MouseScrollEvent: Sized { fn from_pos(pos: [f64; 2], old_event: &Self) -> Option<Self>; fn mouse_scroll<U, F>(&self, f: F) -> Option<U>
where
F: FnMut([f64; 2]) -> U; fn mouse_scroll_args(&self) -> Option<[f64; 2]> { ... } }
The scroll of the mouse wheel.
Required methods
fn from_pos(pos: [f64; 2], old_event: &Self) -> Option<Self>
[src]
Creates a mouse scroll event.
Preserves time stamp from original input event, if any.
fn mouse_scroll<U, F>(&self, f: F) -> Option<U> where
F: FnMut([f64; 2]) -> U,
[src]
F: FnMut([f64; 2]) -> U,
Calls a closure if this is a mouse scroll event.