FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WrappingTextLineBreak

    struct · ferroui-base · v0.5.0

    struct WrappingTextLineBreak
    

    A line break of a wrapped line that carries the runs the next line starts with.

    Upstream models this as an internal subclass of TextLineBreak; here it is a TextLineBreak with remaining runs, created and consumed through these functions.

    Internal upstream; public so that the Skia unit tests reach it.

    View source

    Members

    new

    fn new(text_end_of_line: Option<Rc<dyn TextRun>>, flow_direction: FlowDirection, remaining_runs: Vec<Rc<dyn TextRun>>) -> TextLineBreak
    

    Source

    is_wrapping

    fn is_wrapping(line_break: &TextLineBreak) -> bool
    

    Whether the line break is a wrapping line break (C# is WrappingTextLineBreak).

    Source

    acquire_remaining_runs

    fn acquire_remaining_runs(line_break: &TextLineBreak) -> Option<Vec<Rc<dyn TextRun>>>
    

    Takes the remaining runs; a second call returns None.

    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

    Availability

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