FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ButtonSpinner

    struct · ferroui-controls · v0.5.0

    struct ButtonSpinner
    

    Represents a spinner control that includes two buttons.

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

    Returns a strong reference to this object.

    Source

    on_allow_spin_changed

    fn on_allow_spin_changed(self: &Self, old_value: bool, new_value: bool)
    

    Called when the AllowSpin property value changed.

    Source

    TEMPLATE_PARTS

    const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
    

    The named parts expected in the control template, in addition to those of the base class.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    allow_spin_property

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

    Defines the AllowSpin property.

    Source

    show_button_spinner_property

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

    Defines the ShowButtonSpinner property.

    Source

    button_spinner_location_property

    fn button_spinner_location_property() -> &'static StyledProperty<Location>
    

    Defines the ButtonSpinnerLocation property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a button spinner.

    Source

    allow_spin

    fn allow_spin(self: &Self) -> bool
    

    Whether the spinner should allow to spin.

    Source

    set_allow_spin

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

    Source

    show_button_spinner

    fn show_button_spinner(self: &Self) -> bool
    

    Whether the spin buttons should be shown.

    Source

    set_show_button_spinner

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

    Source

    button_spinner_location

    fn button_spinner_location(self: &Self) -> Location
    

    The current location of the spin buttons.

    Source

    set_button_spinner_location

    fn set_button_spinner_location(self: &Self, value: Location)
    

    Source

    Trait implementations

    Availability

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