FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RadioButtonAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct RadioButtonAutomationPeer
    

    An automation peer which represents a RadioButton.

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

    Returns a strong reference to this object.

    Source

    raise_toggle_state_property_changed_event

    fn raise_toggle_state_property_changed_event(self: &Self, old_value: Option<bool>, new_value: Option<bool>)
    

    Raises the property changed event of the selection state for a change of the checked state of the radio button (not for use outside the framework).

    Source

    construct

    fn construct(owner: &RadioButton) -> Self
    

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

    Source

    new

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

    Initializes a new peer of owner.

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Whether the radio button is checked (the selection item provider contract).

    Source

    selection_container

    fn selection_container(self: &Self) -> Option<Rc<dyn ISelectionProvider>>
    

    The container of the selection: none (the selection item provider contract).

    Source

    add_to_selection

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

    Adds the radio button to the selection (the selection item provider contract).

    Errors

    AutomationError::InvalidOperation if the radio button is not checked.

    Source

    remove_from_selection

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

    Removes the radio button from the selection (the selection item provider contract).

    Errors

    AutomationError::InvalidOperation if the radio button is checked.

    Source

    select

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

    Checks the radio button (the selection item provider contract).

    Errors

    AutomationError::InvalidOperation if the radio button is disabled (the reference throws an InvalidOperationException here, not an ElementNotEnabledException).

    Source

    Trait implementations

    Availability

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