Skip to main content

WidgetInfoFocusExt

Trait 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§