FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Gets whether the object is currently selected.

    Source

    set_is_selected

    fn set_is_selected(self: &Self, value: bool)
    

    Sets whether the object is currently selected.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.