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.
Members
has_overflowedheightnewline_lengthstarttext_baselinetrailing_whitespace_lengthwidthwidth_including_trailing_whitespaceextentoverhang_afteroverhang_leadingoverhang_trailing
has_overflowed
has_overflowed: bool
Gets a value that indicates whether content of the line overflows the specified paragraph width.
height
height: f64
Gets the height of a line of text.
newline_length
newline_length: i32
Gets the number of newline characters at the end of a line.
start
start: f64
Gets the distance from the start of a paragraph to the starting point of a line.
text_baseline
text_baseline: f64
Gets the distance from the top to the baseline of the line of text.
trailing_whitespace_length
trailing_whitespace_length: i32
Gets the number of whitespace characters at the end of a line.
width
width: f64
Gets the width of a line of text, excluding trailing whitespace characters.
width_including_trailing_whitespace
width_including_trailing_whitespace: f64
Gets the width of a line of text, including trailing whitespace characters.
extent
extent: f64
Gets the distance from the top-most to bottom-most black pixel in a line.
overhang_after
overhang_after: f64
Gets the distance that black pixels extend beyond the bottom alignment edge of a line.
overhang_leading
overhang_leading: f64
Gets the distance that black pixels extend prior to the left leading alignment edge of the line.
overhang_trailing
overhang_trailing: f64
Gets the distance that black pixels extend following the right trailing alignment edge of the line.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.