FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    on_is_checked_changed

    fn on_is_checked_changed(self: &Self)
    

    Invokes the IsCheckedChanged event when the IsChecked property changes.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    is_checked_changed_event

    fn is_checked_changed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the IsCheckedChanged event.

    Source

    is_checked_property

    fn is_checked_property() -> &'static StyledProperty<bool>
    

    Defines the IsChecked property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a toggle split button.

    Source

    is_checked_changed

    fn is_checked_changed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised when the IsChecked property value changes.

    Source

    is_checked

    fn is_checked(self: &Self) -> bool
    

    A value indicating whether the toggle split button is checked.

    Source

    set_is_checked

    fn set_is_checked(self: &Self, value: bool)
    

    Source

    toggle

    fn toggle(self: &Self)
    

    Toggles the IsChecked property between true and false.

    Source

    Trait implementations

    Availability

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