pub struct TextLayout {
pub path: BezPath,
pub glyphs: Vec<BezPath>,
pub info: Vec<GlyphInfo>,
pub width: f64,
pub height: f64,
}Expand description
Laid-out text. Coordinates: origin at the top-left of the layout box, y pointing down.
Fields§
§path: BezPathAll glyph outlines.
glyphs: Vec<BezPath>One path per glyph, in visual order — for per-letter animation.
info: Vec<GlyphInfo>Parallel to glyphs.
width: f64Width of the layout box.
height: f64Height of the layout box.
Implementations§
Trait Implementations§
Source§impl Clone for TextLayout
impl Clone for TextLayout
Auto Trait Implementations§
impl Freeze for TextLayout
impl RefUnwindSafe for TextLayout
impl Send for TextLayout
impl Sync for TextLayout
impl Unpin for TextLayout
impl UnsafeUnpin for TextLayout
impl UnwindSafe for TextLayout
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