pub trait FocusableElement: InteractiveElement {
    // Provided methods
    fn focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
       where Self: Sized { ... }
    fn in_focus(
        self,
        f: impl FnOnce(StyleRefinement) -> StyleRefinement
    ) -> Self
       where Self: Sized { ... }
    fn on_focus(
        self,
        listener: impl Fn(&FocusEvent, &mut WindowContext<'_>) + 'static
    ) -> Self
       where Self: Sized { ... }
    fn on_blur(
        self,
        listener: impl Fn(&FocusEvent, &mut WindowContext<'_>) + 'static
    ) -> Self
       where Self: Sized { ... }
    fn on_focus_in(
        self,
        listener: impl Fn(&FocusEvent, &mut WindowContext<'_>) + 'static
    ) -> Self
       where Self: Sized { ... }
    fn on_focus_out(
        self,
        listener: impl Fn(&FocusEvent, &mut WindowContext<'_>) + 'static
    ) -> Self
       where Self: Sized { ... }
}

Provided Methods§

source

fn focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfwhere Self: Sized,

source

fn in_focus(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfwhere Self: Sized,

source

fn on_focus( self, listener: impl Fn(&FocusEvent, &mut WindowContext<'_>) + 'static ) -> Selfwhere Self: Sized,

source

fn on_blur( self, listener: impl Fn(&FocusEvent, &mut WindowContext<'_>) + 'static ) -> Selfwhere Self: Sized,

source

fn on_focus_in( self, listener: impl Fn(&FocusEvent, &mut WindowContext<'_>) + 'static ) -> Selfwhere Self: Sized,

source

fn on_focus_out( self, listener: impl Fn(&FocusEvent, &mut WindowContext<'_>) + 'static ) -> Selfwhere Self: Sized,

Implementors§