[][src]Trait input::FocusEvent

pub trait FocusEvent: Sized {
    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 loses focus.

Required methods

fn from_focused(focused: bool, old_event: &Self) -> Option<Self>

Creates a focus event.

Preserves time stamp from original input event, if any.

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

Calls closure if this is a focus event.

Loading content...

Provided methods

fn focus_args(&self) -> Option<bool>

Returns focus arguments.

Loading content...

Implementors

impl FocusEvent for Event[src]

Loading content...