FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Spinner

    struct · ferroui-controls · v0.5.0

    struct Spinner
    

    Base class for controls that represents controls that can spin.

    The class is abstract: it has no new.

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

    Returns a strong reference to this object.

    Source

    on_valid_spin_direction_changed

    fn on_valid_spin_direction_changed(self: &Self, old_value: ValidSpinDirections, new_value: ValidSpinDirections)
    

    Called when the valid spin direction changed.

    Source

    on_spin

    fn on_spin(self: &Self, e: &SpinEventArgs)
    

    Raises the Spin event when spinning is initiated by the end-user.

    Source

    valid_spin_direction_property

    fn valid_spin_direction_property() -> &'static StyledProperty<ValidSpinDirections>
    

    Defines the ValidSpinDirection property.

    Source

    spin_event

    fn spin_event() -> &'static RoutedEvent<SpinEventArgs>
    

    Defines the Spin routed event.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    spin

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

    Occurs when spinning is initiated by the end-user.

    Source

    valid_spin_direction

    fn valid_spin_direction(self: &Self) -> ValidSpinDirections
    

    The valid spin directions.

    Source

    set_valid_spin_direction

    fn set_valid_spin_direction(self: &Self, value: ValidSpinDirections)
    

    Source

    Trait implementations

    Availability

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