TextLineBounds
enum · ferroui-base · v0.5.0
enum TextLineBounds
How the box of each line of text is bounded: by the ascent and the descent of its font (the default), or trimmed to the cap height above the baseline, to the baseline below it, or both.
Members
Full
Full
The box of a line is the ascent, the descent and the line gap of its font.
TrimToCapHeight
TrimToCapHeight
The top of the box of a line is the cap height of its font above the baseline; the
bottom is as Full has it.
TrimToBaseline
TrimToBaseline
The bottom of the box of a line is its baseline; the top is as Full has it.
Tight
Tight
The box of a line runs from the cap height of its font above the baseline to the baseline.
trims_top
fn trims_top(self: Self) -> bool
Whether the top of the box of a line is the cap height above the baseline.
trims_bottom
fn trims_bottom(self: Self) -> bool
Whether the bottom of the box of a line is the baseline.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.