FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ITextProvider

    trait · ferroui-controls · v0.5.0

    trait ITextProvider
    

    A portable text-pattern contract. Text offsets and maximum lengths use UTF-16 code units. Points and rectangles use the visual root's coordinate space, as AutomationPeer::get_bounding_rectangle does; platform bridges convert to native screen coordinates at their boundary.

    View source

    Members

    peer

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

    Source

    document_range

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

    Source

    get_selection

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

    Source

    get_visible_ranges

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

    Source

    range_from_child

    fn range_from_child(self: &Self, child: &Ref<AutomationPeer>) -> Result<Rc<dyn ITextRangeProvider>, ProviderError>
    

    Source

    range_from_point

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

    Source

    supported_text_selection

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

    Source

    text_changed

    fn text_changed(self: &Self, handler: Rc<dyn Fn() -> ()>) -> Result<Rc<dyn IDisposable>, ProviderError>
    

    Observes content and formatting changes, including replacement of the document.

    Source

    text_selection_changed

    fn text_selection_changed(self: &Self, handler: Rc<dyn Fn() -> ()>) -> Result<Rc<dyn IDisposable>, ProviderError>
    

    Observes changes to either selection endpoint, including the insertion point.

    Source

    Trait implementations

    Availability

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