RangeBase
struct · ferroui-controls · v0.5.0
struct RangeBase
Base class for controls that display a value within a range.
This class is abstract: only its subclasses can be created.
Members
TYPEto_refminimum_propertymaximum_propertyvalue_propertysmall_change_propertylarge_change_propertyvalue_changed_eventconstructvalue_changedminimumset_minimummaximumset_maximumvalueset_range_valuesmall_changeset_small_changelarge_changeset_large_change
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RangeBase>
Returns a strong reference to this object.
minimum_property
fn minimum_property() -> &'static StyledProperty<f64>
Defines the Minimum property.
maximum_property
fn maximum_property() -> &'static StyledProperty<f64>
Defines the Maximum property.
value_property
fn value_property() -> &'static StyledProperty<f64>
Defines the Value property.
small_change_property
fn small_change_property() -> &'static StyledProperty<f64>
Defines the SmallChange property.
large_change_property
fn large_change_property() -> &'static StyledProperty<f64>
Defines the LargeChange property.
value_changed_event
fn value_changed_event() -> &'static RoutedEvent<RangeBaseValueChangedEventArgs>
Defines the ValueChanged event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
value_changed
fn value_changed(self: &Self, handler: impl Fn(&Interactive, &RangeBaseValueChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the Value property changes.
minimum
fn minimum(self: &Self) -> f64
The minimum possible value.
set_minimum
fn set_minimum(self: &Self, value: f64)
maximum
fn maximum(self: &Self) -> f64
The maximum possible value.
set_maximum
fn set_maximum(self: &Self, value: f64)
value
fn value(self: &Self) -> f64
The current value.
set_range_value
fn set_range_value(self: &Self, value: f64)
small_change
fn small_change(self: &Self) -> f64
The small increment value added to or subtracted from the value.
set_small_change
fn set_small_change(self: &Self, value: f64)
large_change
fn large_change(self: &Self) -> f64
The large increment value added to or subtracted from the value.
set_large_change
fn set_large_change(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<RangeBase>StaticTypeObjectTypeSubclassable<T>VisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplFerroObjectImplStyledElementImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.