Skip to main content

IntoFocusBinding

Trait IntoFocusBinding 

Source
pub trait IntoFocusBinding<M> {
    // Required method
    fn into_focus_binding(self) -> (Box<dyn Fn() -> bool>, Box<dyn Fn(bool)>);
}
Expand description

A focus-binding target for [Decorate::focused] (docs/focus.md): either a Signal<bool> (one control) or a (Signal<Option<K>>, K) pair (one control of a group sharing a signal). The two-marker split is the same E0119 dodge as IntoText.

Required Methods§

Source

fn into_focus_binding(self) -> (Box<dyn Fn() -> bool>, Box<dyn Fn(bool)>)

Split into (desired-focus tracked read, native-change write-back).

Implementations on Foreign Types§

Source§

impl<K> IntoFocusBinding<FocusGroupMark> for (Signal<Option<K>>, K)
where K: Copy + PartialEq + 'static,

Source§

fn into_focus_binding(self) -> (Box<dyn Fn() -> bool>, Box<dyn Fn(bool)>)

Implementors§

Day API ↩ Guides· daybrite.dev