ButtonSpinner
struct · ferroui-controls · v0.5.0
struct ButtonSpinner
Represents a spinner control that includes two buttons.
Members
TYPEto_refon_allow_spin_changedTEMPLATE_PARTSPSEUDO_CLASSESallow_spin_propertyshow_button_spinner_propertybutton_spinner_location_propertyconstructnewallow_spinset_allow_spinshow_button_spinnerset_show_button_spinnerbutton_spinner_locationset_button_spinner_location
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ButtonSpinner>
Returns a strong reference to this object.
on_allow_spin_changed
fn on_allow_spin_changed(self: &Self, old_value: bool, new_value: bool)
Called when the AllowSpin property value changed.
TEMPLATE_PARTS
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
The named parts expected in the control template, in addition to those of the base class.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
allow_spin_property
fn allow_spin_property() -> &'static StyledProperty<bool>
Defines the AllowSpin property.
show_button_spinner_property
fn show_button_spinner_property() -> &'static StyledProperty<bool>
Defines the ShowButtonSpinner property.
button_spinner_location_property
fn button_spinner_location_property() -> &'static StyledProperty<Location>
Defines the ButtonSpinnerLocation property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a button spinner.
allow_spin
fn allow_spin(self: &Self) -> bool
Whether the spinner should allow to spin.
set_allow_spin
fn set_allow_spin(self: &Self, value: bool)
show_button_spinner
fn show_button_spinner(self: &Self) -> bool
Whether the spin buttons should be shown.
set_show_button_spinner
fn set_show_button_spinner(self: &Self, value: bool)
button_spinner_location
fn button_spinner_location(self: &Self) -> Location
The current location of the spin buttons.
set_button_spinner_location
fn set_button_spinner_location(self: &Self, value: Location)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtButtonSpinnerImplExtSpinnerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ButtonSpinner>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplControlImplContentControlImplFerroObjectImplInputElementImplTemplatedControlImplSpinnerImplButtonSpinnerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.