RangeBaseAutomationPeer
struct · ferroui-controls · v0.5.0
struct RangeBaseAutomationPeer
The base class of the automation peers which represent a RangeBase.
Members
TYPEto_refis_read_onlyowner_property_changedconstructownermaximumminimumvaluesmall_changelarge_changeset_value
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RangeBaseAutomationPeer>
Returns a strong reference to this object.
is_read_only
fn is_read_only(self: &Self) -> bool
Whether the value of the control is read-only (the range value provider contract).
owner_property_changed
fn owner_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
Called when a property of the owning control has changed.
construct
fn construct(owner: &RangeBase) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
The class is abstract: it is the base of the peers of the range
controls.
owner
fn owner(self: &Self) -> Ref<RangeBase>
Gets the owning range control.
maximum
fn maximum(self: &Self) -> f64
The maximum value of the control (the range value provider contract).
minimum
fn minimum(self: &Self) -> f64
The minimum value of the control (the range value provider contract).
value
fn value(self: &Self) -> f64
The value of the control (the range value provider contract).
small_change
fn small_change(self: &Self) -> f64
The small change of the control (the range value provider contract).
large_change
fn large_change(self: &Self) -> f64
The large change of the control (the range value provider contract).
set_value
fn set_value(self: &Self, value: f64) -> Result<(), AutomationError>
Sets the value of the control (the range value provider contract).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtRangeBaseAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<RangeBaseAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImplRangeBaseAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.