[][src]Trait input::ButtonEvent

pub trait ButtonEvent: Sized {
    fn from_button_args(args: ButtonArgs, old_event: &Self) -> Option<Self>;
fn button<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(ButtonArgs) -> U
; fn button_args(&self) -> Option<ButtonArgs> { ... } }

Changed button state.

Required methods

fn from_button_args(args: ButtonArgs, old_event: &Self) -> Option<Self>

Creates a button event.

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

Calls closure if this is a button event.

Loading content...

Provided methods

fn button_args(&self) -> Option<ButtonArgs>

Returns button arguments.

Loading content...

Implementors

impl ButtonEvent for Event[src]

fn button_args(&self) -> Option<ButtonArgs>[src]

Loading content...