FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IRangeValueProvider

    trait · ferroui-controls · v0.5.0

    trait IRangeValueProvider
    

    Exposes methods and properties to support access by a UI Automation client to controls that can be set to a value within a range.

    View source

    Members

    peer

    fn peer(self: &Self) -> Ref<AutomationPeer>
    

    The automation peer that provides this contract.

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Gets a value that indicates whether the value of a control is read-only.

    Windows: IRangeValueProvider.IsReadOnly. macOS: no mapping.

    Source

    minimum

    fn minimum(self: &Self) -> f64
    

    Gets the minimum range value that is supported by the control.

    Windows: IRangeValueProvider.Minimum. macOS: NSAccessibilityProtocol.accessibilityMinValue.

    Source

    maximum

    fn maximum(self: &Self) -> f64
    

    Gets the maximum range value that is supported by the control.

    Windows: IRangeValueProvider.Maximum. macOS: NSAccessibilityProtocol.accessibilityMaxValue.

    Source

    value

    fn value(self: &Self) -> f64
    

    Gets the value of the control.

    Windows: IRangeValueProvider.Value. macOS: NSAccessibilityProtocol.accessibilityValue.

    Source

    large_change

    fn large_change(self: &Self) -> f64
    

    Gets the value that is added to or subtracted from the Value property when a large change is made, such as with the PAGE DOWN key.

    Windows: IRangeValueProvider.LargeChange. macOS: no mapping.

    Source

    small_change

    fn small_change(self: &Self) -> f64
    

    Gets the value that is added to or subtracted from the Value property when a small change is made, such as with an arrow key.

    Windows: IRangeValueProvider.SmallChange. macOS: no mapping.

    Source

    set_value

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

    Sets the value of the control.

    Windows: IRangeValueProvider.SetValue. macOS: NSAccessibilityProtocol.setAccessibilityValue.

    Errors

    An AutomationError when the state of the element refuses the call (the exception the member throws in the original).

    Source

    Trait implementations

    Availability

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