Focusable

Trait Focusable 

Source
pub trait Focusable: 'static {
    // Required method
    fn focus_handle(&self, cx: &App) -> FocusHandle;
}
Expand description

Focusable allows users of your view to easily focus it (using window.focus_view(cx, view))

Required Methods§

Source

fn focus_handle(&self, cx: &App) -> FocusHandle

Returns the focus handle associated with this view.

Implementors§