ToggleButtonAutomationPeer
struct · ferroui-controls · v0.5.0
struct ToggleButtonAutomationPeer
An automation peer which represents a ToggleButton.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ToggleButtonAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &ToggleButton) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &ToggleButton) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<ToggleButton>
Gets the owning toggle button.
toggle_state
fn toggle_state(self: &Self) -> ToggleState
The toggle state of the button (the toggle provider contract).
toggle
fn toggle(self: &Self) -> Result<(), AutomationError>
Cycles through the toggle states of the button (the toggle provider contract).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<ToggleButtonAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.