ToggleSplitButton
struct · ferroui-controls · v0.5.0
struct ToggleSplitButton
A button with primary and secondary parts that can each be pressed separately. The primary part behaves like a toggle button with two states and the secondary part opens a flyout.
Members
TYPEto_refon_is_checked_changedPSEUDO_CLASSESis_checked_changed_eventis_checked_propertyconstructnewis_checked_changedis_checkedset_is_checkedtoggle
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ToggleSplitButton>
Returns a strong reference to this object.
on_is_checked_changed
fn on_is_checked_changed(self: &Self)
Invokes the IsCheckedChanged event when the IsChecked
property changes.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
is_checked_changed_event
fn is_checked_changed_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the IsCheckedChanged event.
is_checked_property
fn is_checked_property() -> &'static StyledProperty<bool>
Defines the IsChecked property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a toggle split button.
is_checked_changed
fn is_checked_changed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Raised when the IsChecked property value changes.
is_checked
fn is_checked(self: &Self) -> bool
A value indicating whether the toggle split button is checked.
set_is_checked
fn set_is_checked(self: &Self, value: bool)
toggle
fn toggle(self: &Self)
Toggles the IsChecked property between true and false.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtSplitButtonImplExtToggleSplitButtonImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ToggleSplitButton>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleVisualImplLayoutableImplInteractiveImplInputElementImplTemplatedControlImplContentControlImplControlImplFerroObjectImplStyledElementImplSplitButtonImplToggleSplitButtonImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.