FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IValueProvider

    trait · ferroui-controls · v0.5.0

    trait IValueProvider
    

    Exposes methods and properties to support access by a UI Automation client to controls that have an intrinsic value not spanning a range and that can be represented as a string.

    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: IValueProvider.IsReadOnly. macOS: no mapping.

    Source

    value

    fn value(self: &Self) -> Option<String>
    

    Gets the value of the control.

    Windows: IValueProvider.Value. macOS: NSAccessibilityProtocol.accessibilityValue.

    Source

    set_value

    fn set_value(self: &Self, value: Option<&str>) -> Result<(), ProviderError>
    

    Sets the value of a control.

    Windows: IValueProvider.SetValue. macOS: NSAccessibilityProtocol.setAccessibilityValue.

    Source

    Trait implementations

    Availability

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