pub struct TextLineBreak { /* private fields */ }Expand description
Represents the state of a line break: how the line ended and what the next line has to continue with.
Implementations§
Source§impl TextLineBreak
impl TextLineBreak
Sourcepub fn new(
text_end_of_line: Option<Rc<dyn TextRun>>,
flow_direction: FlowDirection,
is_split: bool,
) -> Self
pub 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.
Sourcepub fn text_end_of_line(&self) -> Option<&Rc<dyn TextRun>>
pub fn text_end_of_line(&self) -> Option<&Rc<dyn TextRun>>
Get the end of line run.
Sourcepub fn flow_direction(&self) -> FlowDirection
pub fn flow_direction(&self) -> FlowDirection
Get the flow direction for remaining characters.
Auto Trait Implementations§
impl !Freeze for TextLineBreak
impl !RefUnwindSafe for TextLineBreak
impl !Send for TextLineBreak
impl !Sync for TextLineBreak
impl !UnwindSafe for TextLineBreak
impl Unpin for TextLineBreak
impl UnsafeUnpin for TextLineBreak
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