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.
Members
TYPEto_refon_valid_spin_direction_changedon_spinvalid_spin_direction_propertyspin_eventconstructspinvalid_spin_directionset_valid_spin_direction
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Spinner>
Returns a strong reference to this object.
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.
on_spin
fn on_spin(self: &Self, e: &SpinEventArgs)
Raises the Spin event when spinning is initiated by the
end-user.
valid_spin_direction_property
fn valid_spin_direction_property() -> &'static StyledProperty<ValidSpinDirections>
Defines the ValidSpinDirection property.
spin_event
fn spin_event() -> &'static RoutedEvent<SpinEventArgs>
Defines the Spin routed event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
spin
fn spin(self: &Self, handler: impl Fn(&Interactive, &SpinEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when spinning is initiated by the end-user.
valid_spin_direction
fn valid_spin_direction(self: &Self) -> ValidSpinDirections
The valid spin directions.
set_valid_spin_direction
fn set_valid_spin_direction(self: &Self, value: ValidSpinDirections)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtSpinnerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Spinner>StaticTypeObjectTypeSubclassable<T>StyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplContentControlImplFerroObjectImplSpinnerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.