Trait zng_ext_input::focus::WidgetInfoFocusExt
source · pub trait WidgetInfoFocusExt {
// Required methods
fn into_focus_info(
self,
focus_disabled_widgets: bool,
focus_hidden_widgets: bool,
) -> WidgetFocusInfo;
fn into_focusable(
self,
focus_disabled_widgets: bool,
focus_hidden_widgets: bool,
) -> Option<WidgetFocusInfo>;
}
Expand description
WidgetInfo
extensions that build a WidgetFocusInfo
.
Required Methods§
sourcefn into_focus_info(
self,
focus_disabled_widgets: bool,
focus_hidden_widgets: bool,
) -> WidgetFocusInfo
fn into_focus_info( self, focus_disabled_widgets: bool, focus_hidden_widgets: bool, ) -> WidgetFocusInfo
Wraps the WidgetInfo
in a WidgetFocusInfo
even if it is not focusable.
See the FOCUS.focus_disabled_widgets
and FOCUS.focus_hidden_widgets
config for more details on the parameters.
sourcefn into_focusable(
self,
focus_disabled_widgets: bool,
focus_hidden_widgets: bool,
) -> Option<WidgetFocusInfo>
fn into_focusable( self, focus_disabled_widgets: bool, focus_hidden_widgets: bool, ) -> Option<WidgetFocusInfo>
Returns a wrapped WidgetFocusInfo
if the WidgetInfo
is focusable.
See the FOCUS.focus_disabled_widgets
and FOCUS.focus_hidden_widgets
config for more details on the parameters.