pub struct LineMetrics {
pub line_count: u32,
pub widest: f32,
pub height: f32,
pub first_baseline: f32,
pub last_baseline: f32,
}Expand description
Lines of a shaped text at one wrapping width (ShapedText::lines_at).
Fields§
§line_count: u32Number of lines.
widest: f32Widest line advance, excluding trailing spaces.
height: f32Unrounded box height.
first_baseline: f32First alphabetic baseline, in pixels from the box’s top.
last_baseline: f32Last alphabetic baseline, in pixels from the box’s top.
Trait Implementations§
Source§impl Clone for LineMetrics
impl Clone for LineMetrics
impl Copy for LineMetrics
Source§impl Debug for LineMetrics
impl Debug for LineMetrics
Source§impl PartialEq for LineMetrics
impl PartialEq for LineMetrics
impl StructuralPartialEq for LineMetrics
Auto Trait Implementations§
impl Freeze for LineMetrics
impl RefUnwindSafe for LineMetrics
impl Send for LineMetrics
impl Sync for LineMetrics
impl Unpin for LineMetrics
impl UnsafeUnpin for LineMetrics
impl UnwindSafe for LineMetrics
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