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§

source

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.

source

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.

Implementations on Foreign Types§

source§

impl WidgetInfoFocusExt for WidgetInfo

source§

fn into_focus_info( self, focus_disabled_widgets: bool, focus_hidden_widgets: bool, ) -> WidgetFocusInfo

source§

fn into_focusable( self, focus_disabled_widgets: bool, focus_hidden_widgets: bool, ) -> Option<WidgetFocusInfo>

Implementors§