[][src]Trait input::mouse::MouseCursorEvent

pub trait MouseCursorEvent: Sized {
    fn from_xy(x: f64, y: f64, old_event: &Self) -> Option<Self>;
fn mouse_cursor<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(f64, f64) -> U
; fn mouse_cursor_args(&self) -> Option<[f64; 2]> { ... } }

The position of the mouse cursor

Required methods

fn from_xy(x: f64, y: f64, old_event: &Self) -> Option<Self>

Creates a mouse cursor event.

fn mouse_cursor<U, F>(&self, f: F) -> Option<U> where
    F: FnMut(f64, f64) -> U, 

Calls closure if this is a mouse cursor event.

Loading content...

Provided methods

fn mouse_cursor_args(&self) -> Option<[f64; 2]>

Returns mouse cursor arguments.

Loading content...

Implementors

impl MouseCursorEvent for Event[src]

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

Loading content...