Skip to main content

TabValueChanged

Type Alias TabValueChanged 

Source
pub type TabValueChanged<T> = Rc<dyn Fn(&mut App, T, usize)>;
Expand description

Signature for TabBar callbacks that report that an underlying value has changed for a given Tab at index.

Used for TabBar::on_hover and TabBar::on_focus_change callbacks The provided value being true indicates focus has been gained, or a pointer has hovered over the tab, with false indicated focus has been lost or the pointer has exited hovering.

Aliased Typeยง

pub struct TabValueChanged<T> { /* private fields */ }