FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RangeBaseAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct RangeBaseAutomationPeer
    

    The base class of the automation peers which represent a RangeBase.

    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<RangeBaseAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

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

    Source

    owner_property_changed

    fn owner_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
    

    Called when a property of the owning control has changed.

    Source

    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.

    Source

    owner

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

    Gets the owning range control.

    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 (the range value provider contract).

    Source

    small_change

    fn small_change(self: &Self) -> f64
    

    The small change of the control (the range value provider contract).

    Source

    large_change

    fn large_change(self: &Self) -> f64
    

    The large change 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.