Trait input::ButtonEvent
[−]
[src]
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
Creates a button event.
Calls closure if this is a button event.
Provided Methods
Returns button arguments.
Implementors
impl ButtonEvent for Event