ISelectable
trait · ferroui-controls · v0.5.0
trait ISelectable
Interface for objects that are selectable.
Controls such as the selecting items control check for this interface on items that they display, to determine whether the item is selected.
A class implementing the trait is made known with
register_selectable, normally from its class initialization;
as_selectable then views an object of the class (or of a class
derived from it) as the interface.
Members
is_selected
fn is_selected(self: &Self) -> bool
Gets whether the object is currently selected.
set_is_selected
fn set_is_selected(self: &Self, value: bool)
Sets whether the object is currently selected.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.