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 { ... }
}