FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ITextRangeProvider

    trait · ferroui-controls · v0.5.0

    trait ITextRangeProvider
    

    A live range of text exposed to accessibility. Range operations change the range object; only selection methods change the control's selection. Ranges follow edits and become unavailable when their host displays another document.

    View source

    Members

    as_any

    fn as_any(self: &Self) -> &dyn Any
    

    Source

    peer

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

    The text-pattern owner, also used by platform bridges for screen transforms.

    Source

    clone_range

    fn clone_range(self: &Self) -> Result<Rc<dyn ITextRangeProvider>, ProviderError>
    

    Source

    compare

    fn compare(self: &Self, range: &dyn ITextRangeProvider) -> Result<bool, ProviderError>
    

    Source

    compare_endpoints

    fn compare_endpoints(self: &Self, endpoint: TextPatternRangeEndpoint, range: &dyn ITextRangeProvider, target_endpoint: TextPatternRangeEndpoint) -> Result<i32, ProviderError>
    

    Source

    expand_to_enclosing_unit

    fn expand_to_enclosing_unit(self: &Self, unit: TextUnit) -> Result<(), ProviderError>
    

    Source

    find_attribute

    fn find_attribute(self: &Self, attribute: TextAttribute, value: &TextAttributeValue, backwards: bool) -> Result<Option<Rc<dyn ITextRangeProvider>>, ProviderError>
    

    Source

    find_text

    fn find_text(self: &Self, text: &str, backwards: bool, ignore_case: bool) -> Result<Option<Rc<dyn ITextRangeProvider>>, ProviderError>
    

    Source

    get_attribute_value

    fn get_attribute_value(self: &Self, attribute: TextAttribute) -> Result<TextAttributeValue, ProviderError>
    

    Source

    get_bounding_rectangles

    fn get_bounding_rectangles(self: &Self) -> Result<Vec<Rect>, ProviderError>
    

    Source

    get_enclosing_element

    fn get_enclosing_element(self: &Self) -> Result<Ref<AutomationPeer>, ProviderError>
    

    Source

    get_text

    fn get_text(self: &Self, max_length: Option<usize>) -> Result<String, ProviderError>
    

    None retrieves all text. A finite limit never splits a surrogate pair.

    Source

    move_by

    fn move_by(self: &Self, unit: TextUnit, count: i32) -> Result<i32, ProviderError>
    

    Source

    move_endpoint_by_unit

    fn move_endpoint_by_unit(self: &Self, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32) -> Result<i32, ProviderError>
    

    Source

    move_endpoint_by_range

    fn move_endpoint_by_range(self: &Self, endpoint: TextPatternRangeEndpoint, range: &dyn ITextRangeProvider, target_endpoint: TextPatternRangeEndpoint) -> Result<(), ProviderError>
    

    Source

    select

    fn select(self: &Self) -> Result<(), ProviderError>
    

    Source

    add_to_selection

    fn add_to_selection(self: &Self) -> Result<(), ProviderError>
    

    Source

    remove_from_selection

    fn remove_from_selection(self: &Self) -> Result<(), ProviderError>
    

    Source

    scroll_into_view

    fn scroll_into_view(self: &Self, align_to_top: bool) -> Result<(), ProviderError>
    

    Source

    get_children

    fn get_children(self: &Self) -> Result<Vec<Ref<AutomationPeer>>, ProviderError>
    

    Source

    Availability

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