Trait input::ReleaseEvent
[−]
[src]
pub trait ReleaseEvent: Sized { fn from_button(button: Button, old_event: &Self) -> Option<Self>; fn release<U, F>(&self, f: F) -> Option<U>
where
F: FnMut(Button) -> U; fn release_args(&self) -> Option<Button> { ... } }
The release of a button
Required Methods
Creates a release event.
fn release<U, F>(&self, f: F) -> Option<U> where
F: FnMut(Button) -> U,
F: FnMut(Button) -> U,
Calls closure if this is a release event.
Provided Methods
fn release_args(&self) -> Option<Button>
Returns release arguments.
Implementors
impl ReleaseEvent for Input