pub struct TextLayout {
pub clusters: Vec<ClusterInfo>,
pub lines: Vec<LineInfo>,
pub font_size: f32,
}Expand description
Cluster and line positions, matching TextRasterizer::rasterize.
Fields§
§clusters: Vec<ClusterInfo>Clusters (the unit of letter spacing) in logical order.
lines: Vec<LineInfo>Lines, top to bottom.
font_size: f32Font size in pixels.
Trait Implementations§
Source§impl Clone for TextLayout
impl Clone for TextLayout
Source§impl Debug for TextLayout
impl Debug for TextLayout
Source§impl PartialEq for TextLayout
impl PartialEq for TextLayout
impl StructuralPartialEq 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