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.
Members
new
fn new(text_end_of_line: Option<Rc<dyn TextRun>>, flow_direction: FlowDirection, remaining_runs: Vec<Rc<dyn TextRun>>) -> TextLineBreak
is_wrapping
fn is_wrapping(line_break: &TextLineBreak) -> bool
Whether the line break is a wrapping line break (C# is WrappingTextLineBreak).
acquire_remaining_runs
fn acquire_remaining_runs(line_break: &TextLineBreak) -> Option<Vec<Rc<dyn TextRun>>>
Takes the remaining runs; a second call returns None.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.