Trait cosmic::widget::segmented_button::Selectable
source · pub trait Selectable {
// Required methods
fn activate(&mut self, id: Entity);
fn deactivate(&mut self, id: Entity);
fn is_active(&self, id: Entity) -> bool;
}
Expand description
Describes a type that has selectable items.
Required Methods§
sourcefn deactivate(&mut self, id: Entity)
fn deactivate(&mut self, id: Entity)
Deactivate an item.