Trait event::FocusEvent
[−]
[src]
pub trait FocusEvent {
fn from_focused(focused: bool, old_event: &Self) -> Option<Self>;
fn focus<U, F>(&self, f: F) -> Option<U> where F: FnMut(bool) -> U;
fn focus_args(&self) -> Option<bool> { ... }
}
When window gets or looses focus
Required Methods
fn from_focused(focused: bool, old_event: &Self) -> Option<Self>
Creates a focus event.
fn focus<U, F>(&self, f: F) -> Option<U> where F: FnMut(bool) -> U
Calls closure if this is a focus event.
Provided Methods
fn focus_args(&self) -> Option<bool>
Returns focus arguments.
Implementors
impl<T: GenericEvent> FocusEvent for T