FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IExpandCollapseProvider

    trait · ferroui-controls · v0.5.0

    trait IExpandCollapseProvider
    

    Exposes methods and properties to support UI Automation client access to controls that visually expand to display content and collapse to hide content.

    View source

    Members

    peer

    fn peer(self: &Self) -> Ref<AutomationPeer>
    

    The automation peer that provides this contract.

    Source

    expand_collapse_state

    fn expand_collapse_state(self: &Self) -> ExpandCollapseState
    

    Gets the state, expanded or collapsed, of the control.

    Windows: IExpandCollapseProvider.ExpandCollapseState. macOS: NSAccessibilityProtocol.isAccessibilityExpanded.

    Source

    shows_menu

    fn shows_menu(self: &Self) -> bool
    

    Gets a value indicating whether expanding the element shows a menu of items to the user, such as drop-down list.

    Used in OSX to enable the "Show Menu" action on the element.

    Source

    expand

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

    Displays all child nodes, controls, or content of the control.

    Windows: IExpandCollapseProvider.Expand. macOS: NSAccessibilityProtocol.accessibilityPerformShowMenu.

    Errors

    An AutomationError when the state of the element refuses the call (the exception the member throws in the original).

    Source

    collapse

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

    Hides all nodes, controls, or content that are descendants of the control.

    Windows: IExpandCollapseProvider.Collapse. macOS: no mapping.

    Errors

    An AutomationError when the state of the element refuses the call (the exception the member throws in the original).

    Source

    Trait implementations

    Availability

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