FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NumericUpDownAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct NumericUpDownAutomationPeer
    

    An automation peer which represents a NumericUpDown.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<NumericUpDownAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(owner: &NumericUpDown) -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new(owner: &NumericUpDown) -> Ref<Self>
    

    Initializes a new peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<NumericUpDown>
    

    Gets the owning numeric up-down control.

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Whether the control is read-only (the range value provider contract).

    Source

    maximum

    fn maximum(self: &Self) -> f64
    

    The maximum value of the control (the range value provider contract).

    Source

    minimum

    fn minimum(self: &Self) -> f64
    

    The minimum value of the control (the range value provider contract).

    Source

    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).

    Source

    small_change

    fn small_change(self: &Self) -> f64
    

    The increment of the control (the range value provider contract).

    Source

    large_change

    fn large_change(self: &Self) -> f64
    

    The increment of the control (the range value provider contract).

    Source

    set_value

    fn set_value(self: &Self, value: f64) -> Result<(), AutomationError>
    

    Sets the value of the control (the range value provider contract).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.