FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextLineBreak

    struct · ferroui-base · v0.5.0

    struct TextLineBreak
    

    Represents the state of a line break: how the line ended and what the next line has to continue with.

    View source

    Members

    new

    fn new(text_end_of_line: Option<Rc<dyn TextRun>>, flow_direction: FlowDirection, is_split: bool) -> Self
    

    Creates a line break.

    text_end_of_line is the end of line run (a run whose as_text_end_of_line is Some) when the line ended with one.

    Source

    text_end_of_line

    fn text_end_of_line(self: &Self) -> Option<&Rc<dyn TextRun>>
    

    Get the end of line run.

    Source

    flow_direction

    fn flow_direction(self: &Self) -> FlowDirection
    

    Get the flow direction for remaining characters.

    Source

    is_split

    fn is_split(self: &Self) -> bool
    

    Gets whether there were remaining runs after this line break, that were split up by the TextFormatter during the formatting process.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • Drop

    Availability

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