NumericUpDownAutomationPeer
struct · ferroui-controls · v0.5.0
struct NumericUpDownAutomationPeer
An automation peer which represents a NumericUpDown.
Members
TYPEto_refconstructnewowneris_read_onlymaximumminimumvaluesmall_changelarge_changeset_value
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<NumericUpDownAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &NumericUpDown) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &NumericUpDown) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<NumericUpDown>
Gets the owning numeric up-down control.
is_read_only
fn is_read_only(self: &Self) -> bool
Whether the control is read-only (the range value provider contract).
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, or zero clamped to the range of the control if it has no value (the range value provider contract).
small_change
fn small_change(self: &Self) -> f64
The increment of the control (the range value provider contract).
large_change
fn large_change(self: &Self) -> f64
The increment 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
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<NumericUpDownAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.