FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICommandBarElement

    trait · ferroui-controls · v0.5.0

    trait ICommandBarElement
    

    Interface implemented by all command bar elements.

    View source

    Members

    is_compact

    fn is_compact(self: &Self) -> bool
    

    Gets whether the element is in compact mode (icon only, no label).

    Source

    set_is_compact

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

    Sets whether the element is in compact mode (icon only, no label).

    Source

    is_in_overflow

    fn is_in_overflow(self: &Self) -> bool
    

    Gets whether the element is currently displayed inside the overflow popup.

    Source

    set_is_in_overflow

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

    Sets whether the element is currently displayed inside the overflow popup. Set automatically by the command bar when moving items between primary and overflow.

    Source

    as_object

    fn as_object(self: &Self) -> Option<&FerroObject>
    

    The object behind the handle, when the interface is implemented by a class: what the type tests of the command bar look at, and the identity of the element.

    Source

    Availability

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