RadioButtonAutomationPeer
struct · ferroui-controls · v0.5.0
struct RadioButtonAutomationPeer
An automation peer which represents a RadioButton.
Members
TYPEto_refraise_toggle_state_property_changed_eventconstructnewis_selectedselection_containeradd_to_selectionremove_from_selectionselect
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RadioButtonAutomationPeer>
Returns a strong reference to this object.
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).
construct
fn construct(owner: &RadioButton) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &RadioButton) -> Ref<Self>
Initializes a new peer of owner.
is_selected
fn is_selected(self: &Self) -> bool
Whether the radio button is checked (the selection item provider contract).
selection_container
fn selection_container(self: &Self) -> Option<Rc<dyn ISelectionProvider>>
The container of the selection: none (the selection item provider contract).
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.
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.
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).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtRadioButtonAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<RadioButtonAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImplRadioButtonAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.