FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextBounds

    struct · ferroui-base · v0.5.0

    struct TextBounds
    

    The bounding rectangle of a range of characters.

    View source

    Members

    rectangle

    fn rectangle(self: &Self) -> Rect
    

    Bounds rectangle.

    Source

    flow_direction

    fn flow_direction(self: &Self) -> FlowDirection
    

    Text flow direction inside the bounding rectangle.

    Source

    text_run_bounds

    fn text_run_bounds(self: &Self) -> &[TextRunBounds]
    

    Get a list of run bounding rectangles.

    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.