FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    text_alignment

    text_alignment: Option<crate::media::TextAlignment>
    

    Source

    flow_direction

    flow_direction: Option<crate::media::FlowDirection>
    

    Source

    line_height

    line_height: Option<f64>
    

    Source

    letter_spacing

    letter_spacing: Option<f64>
    

    Source

    space_before

    space_before: f64
    

    Source

    space_after

    space_after: f64
    

    Source

    indent

    indent: f64
    

    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
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq

    Availability

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