FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextRunBounds

    struct · ferroui-base · v0.5.0

    struct TextRunBounds
    

    The bounding rectangle of text run.

    View source

    Members

    text_source_character_index

    fn text_source_character_index(self: &Self) -> i32
    

    Character index of first character of text run.

    Source

    length

    fn length(self: &Self) -> i32
    

    Character length of text run.

    Source

    rectangle

    fn rectangle(self: &Self) -> Rect
    

    Text run bounding rectangle.

    Source

    text_run

    fn text_run(self: &Self) -> &Rc<dyn TextRun>
    

    Text run.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone

    Availability

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