ICommandBarElement
trait · ferroui-controls · v0.5.0
trait ICommandBarElement
Interface implemented by all command bar elements.
Members
is_compact
fn is_compact(self: &Self) -> bool
Gets whether the element is in compact mode (icon only, no label).
set_is_compact
fn set_is_compact(self: &Self, value: bool)
Sets whether the element is in compact mode (icon only, no label).
is_in_overflow
fn is_in_overflow(self: &Self) -> bool
Gets whether the element is currently displayed inside the overflow popup.
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.
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.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.