Trait input::CursorEvent[][src]

pub trait CursorEvent: Sized {
    fn from_cursor(cursor: bool, old_event: &Self) -> Option<Self>;
fn cursor<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(bool) -> U
; fn cursor_args(&self) -> Option<bool> { ... } }

When window gets or loses cursor.

Required methods

fn from_cursor(cursor: bool, old_event: &Self) -> Option<Self>[src]

Creates a cursor event.

Preserves time stamp from original input event, if any.

fn cursor<U, F>(&self, f: F) -> Option<U> where
    F: FnMut(bool) -> U, 
[src]

Calls closure if this is a cursor event.

Loading content...

Provided methods

fn cursor_args(&self) -> Option<bool>[src]

Returns cursor arguments.

Loading content...

Implementors

impl CursorEvent for Event[src]

Loading content...