pub struct WrappingTextLineBreak;Expand description
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.
Implementations§
Source§impl WrappingTextLineBreak
impl WrappingTextLineBreak
pub fn new( text_end_of_line: Option<Rc<dyn TextRun>>, flow_direction: FlowDirection, remaining_runs: Vec<Rc<dyn TextRun>>, ) -> TextLineBreak
Sourcepub fn is_wrapping(line_break: &TextLineBreak) -> bool
pub fn is_wrapping(line_break: &TextLineBreak) -> bool
Whether the line break is a wrapping line break (C# is WrappingTextLineBreak).
Sourcepub fn acquire_remaining_runs(
line_break: &TextLineBreak,
) -> Option<Vec<Rc<dyn TextRun>>>
pub fn acquire_remaining_runs( line_break: &TextLineBreak, ) -> Option<Vec<Rc<dyn TextRun>>>
Takes the remaining runs; a second call returns None.
Auto Trait Implementations§
impl Freeze for WrappingTextLineBreak
impl RefUnwindSafe for WrappingTextLineBreak
impl Send for WrappingTextLineBreak
impl Sync for WrappingTextLineBreak
impl Unpin for WrappingTextLineBreak
impl UnsafeUnpin for WrappingTextLineBreak
impl UnwindSafe for WrappingTextLineBreak
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more