FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextRangeUnit

    enum · ferroui-controls · v0.5.0

    enum TextRangeUnit
    

    Implemented TOM units, with their native numeric values. Display lines use the editor's associated view and otherwise follow the native paragraph fallback. Range Character and selection MoveBy traverse Unicode scalars without splitting surrogate pairs. Selection MoveLeft/MoveRight follow grapheme boundaries, matching their arrow-command contract. Cluster uses the associated view's shaping output and requires a complete, untrimmed layout. It never substitutes Unicode grapheme boundaries.

    View source

    Members

    Character

    Character = 0
    

    Source

    Word

    Word = 1
    

    Source

    Sentence

    Sentence = 2
    

    Source

    Paragraph

    Paragraph = 3
    

    Source

    Line

    Line = 4
    

    Source

    Story

    Story = 5
    

    Source

    HardParagraph

    HardParagraph = 12
    

    Source

    Cluster

    Cluster = 13
    

    Source

    Document

    const Document: Self
    

    Compatibility name for the one story represented by a FerroUI document.

    Source

    Trait implementations

    Availability

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