FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SplitButtonAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct SplitButtonAutomationPeer
    

    An automation peer which represents a SplitButton.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<SplitButtonAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(owner: &SplitButton) -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new(owner: &SplitButton) -> Ref<Self>
    

    Initializes a new peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<SplitButton>
    

    Gets the owning split button.

    Source

    expand_collapse_state

    fn expand_collapse_state(self: &Self) -> ExpandCollapseState
    

    The state, expanded or collapsed, of the flyout (the expand and collapse provider contract).

    Source

    shows_menu

    fn shows_menu(self: &Self) -> bool
    

    Whether expanding the element shows a menu (the expand and collapse provider contract).

    Source

    collapse

    fn collapse(self: &Self) -> Result<(), AutomationError>
    

    Closes the flyout (the expand and collapse provider contract).

    Source

    expand

    fn expand(self: &Self) -> Result<(), AutomationError>
    

    Opens the flyout (the expand and collapse provider contract).

    Source

    Trait implementations

    Availability

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