FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextLineMetrics

    struct · ferroui-base · v0.5.0

    struct TextLineMetrics
    

    Represents a metric for a TextLine object that is used to tell where the line sits and how big it is.

    View source

    Members

    has_overflowed

    has_overflowed: bool
    

    Gets a value that indicates whether content of the line overflows the specified paragraph width.

    Source

    height

    height: f64
    

    Gets the height of a line of text.

    Source

    newline_length

    newline_length: i32
    

    Gets the number of newline characters at the end of a line.

    Source

    start

    start: f64
    

    Gets the distance from the start of a paragraph to the starting point of a line.

    Source

    text_baseline

    text_baseline: f64
    

    Gets the distance from the top to the baseline of the line of text.

    Source

    trailing_whitespace_length

    trailing_whitespace_length: i32
    

    Gets the number of whitespace characters at the end of a line.

    Source

    width

    width: f64
    

    Gets the width of a line of text, excluding trailing whitespace characters.

    Source

    width_including_trailing_whitespace

    width_including_trailing_whitespace: f64
    

    Gets the width of a line of text, including trailing whitespace characters.

    Source

    extent

    extent: f64
    

    Gets the distance from the top-most to bottom-most black pixel in a line.

    Source

    overhang_after

    overhang_after: f64
    

    Gets the distance that black pixels extend beyond the bottom alignment edge of a line.

    Source

    overhang_leading

    overhang_leading: f64
    

    Gets the distance that black pixels extend prior to the left leading alignment edge of the line.

    Source

    overhang_trailing

    overhang_trailing: f64
    

    Gets the distance that black pixels extend following the right trailing alignment edge of the line.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq

    Availability

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