pub struct LaidOut {
pub size: Size,
pub min_width: u32,
pub lines: Vec<Line>,
pub runs: Vec<GlyphRun>,
pub geometry: Box<dyn TextGeometry>,
}Expand description
The result of laying out a text.
Fields§
§size: SizeThe size of the text in pixels.
min_width: u32The width of the longest unbreakable word: the narrowest width the text can wrap to.
lines: Vec<Line>The lines, top to bottom.
runs: Vec<GlyphRun>The glyph runs to draw; empty for engines whose painter draws the text itself.
geometry: Box<dyn TextGeometry>Caret, selection and hit-test geometry.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LaidOut
impl !Send for LaidOut
impl !Sync for LaidOut
impl !UnwindSafe for LaidOut
impl Freeze for LaidOut
impl Unpin for LaidOut
impl UnsafeUnpin for LaidOut
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