[][src]Trait piston_window::MouseScrollEvent

pub trait MouseScrollEvent {
    pub fn from_pos(pos: [f64; 2], old_event: &Self) -> Option<Self>;
pub fn mouse_scroll<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut([f64; 2]) -> U
; pub fn mouse_scroll_args(&self) -> Option<[f64; 2]> { ... } }

The scroll of the mouse wheel.

Required methods

pub 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.

pub fn mouse_scroll<U, F>(&self, f: F) -> Option<U> where
    F: FnMut([f64; 2]) -> U, 
[src]

Calls a closure if this is a mouse scroll event.

Loading content...

Provided methods

pub fn mouse_scroll_args(&self) -> Option<[f64; 2]>[src]

Returns mouse scroll arguments.

Loading content...

Implementors

impl MouseScrollEvent for Event[src]

Loading content...