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.
Members
peer
fn peer(self: &Self) -> Ref<AutomationPeer>
The automation peer that provides this contract.
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.
minimum
fn minimum(self: &Self) -> f64
Gets the minimum range value that is supported by the control.
Windows: IRangeValueProvider.Minimum. macOS: NSAccessibilityProtocol.accessibilityMinValue.
maximum
fn maximum(self: &Self) -> f64
Gets the maximum range value that is supported by the control.
Windows: IRangeValueProvider.Maximum. macOS: NSAccessibilityProtocol.accessibilityMaxValue.
value
fn value(self: &Self) -> f64
Gets the value of the control.
Windows: IRangeValueProvider.Value. macOS: NSAccessibilityProtocol.accessibilityValue.
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.
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.
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).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.