FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ToggleButtonAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct ToggleButtonAutomationPeer
    

    An automation peer which represents a ToggleButton.

    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<ToggleButtonAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(owner: &ToggleButton) -> Self
    

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

    Source

    new

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

    Initializes a new peer of owner.

    Source

    owner

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

    Gets the owning toggle button.

    Source

    toggle_state

    fn toggle_state(self: &Self) -> ToggleState
    

    The toggle state of the button (the toggle provider contract).

    Source

    toggle

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

    Cycles through the toggle states of the button (the toggle provider contract).

    Source

    Trait implementations

    Availability

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