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.
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.
text_end_of_line
fn text_end_of_line(self: &Self) -> Option<&Rc<dyn TextRun>>
Get the end of line run.
flow_direction
fn flow_direction(self: &Self) -> FlowDirection
Get the flow direction for remaining characters.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.