pub struct TextMeasurement {
pub width: f32,
pub height: f32,
pub ascender: f32,
pub descender: f32,
}Expand description
Text measurement result with full metrics
Fields§
§width: f32Width in pixels
height: f32Height in pixels
ascender: f32Ascender in pixels (distance from baseline to top)
descender: f32Descender in pixels (distance from baseline to bottom, typically negative)
Trait Implementations§
Source§impl Clone for TextMeasurement
impl Clone for TextMeasurement
impl Copy for TextMeasurement
Source§impl Debug for TextMeasurement
impl Debug for TextMeasurement
Auto Trait Implementations§
impl Freeze for TextMeasurement
impl RefUnwindSafe for TextMeasurement
impl Send for TextMeasurement
impl Sync for TextMeasurement
impl Unpin for TextMeasurement
impl UnsafeUnpin for TextMeasurement
impl UnwindSafe for TextMeasurement
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