Trait zng_ext_input::focus::iter::IterFocusableExt

source ·
pub trait IterFocusableExt<I: Iterator<Item = WidgetInfo>> {
    // Required method
    fn focusable(
        self,
        focus_disabled_widgets: bool,
        focus_hidden_widgets: bool,
    ) -> IterFocusable<I> ;
}
Expand description

Filter-maps an iterator of WidgetInfo to WidgetFocusInfo.

Required Methods§

source

fn focusable( self, focus_disabled_widgets: bool, focus_hidden_widgets: bool, ) -> IterFocusable<I>

Returns an iterator of only the focusable widgets.

See the FOCUS.focus_disabled_widgets and FOCUS.focus_hidden_widgets config for more on the parameter.

Implementors§

source§

impl<I> IterFocusableExt<I> for I
where I: Iterator<Item = WidgetInfo>,