TextParagraphStyle
struct · ferroui-base · v0.5.0
struct TextParagraphStyle
Overrides for one or more complete paragraphs in a super::TextLayout.
Positions in TextParagraphStyles count UTF-16 code units. A style is
selected at the first character of a paragraph and remains in effect across
its wrapped lines. A zero-length span can style a final empty paragraph.
Unspecified values inherit the layout defaults. Spacing and indentation are
in device-independent units; line height is an absolute height, as in
super::TextLayoutOptions::line_height. Invalid non-finite/negative spacing
is treated as zero. Indentation applies only to the first line, measured from
the paragraph's logical start edge. Before/after spacing belongs to the
paragraph even at the beginning/end of the layout.
Members
text_alignment
text_alignment: Option<crate::media::TextAlignment>
flow_direction
flow_direction: Option<crate::media::FlowDirection>
line_height
line_height: Option<f64>
letter_spacing
letter_spacing: Option<f64>
space_before
space_before: f64
space_after
space_after: f64
indent
indent: f64
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.