pub struct TextExtents {
pub width: f32,
pub ascent: f32,
pub descent: f32,
}Expand description
Measured pixel extents of a laid-out RichText.
Mirrors the renderer’s skia TextMetrics shape so geometry formulas can be
shared verbatim between drawing (renderer) and bounds policies (model).
Fields§
§width: f32§ascent: f32§descent: f32Implementations§
Trait Implementations§
Source§impl Clone for TextExtents
impl Clone for TextExtents
impl Copy for TextExtents
Source§impl Debug for TextExtents
impl Debug for TextExtents
Source§impl PartialEq for TextExtents
impl PartialEq for TextExtents
impl StructuralPartialEq for TextExtents
Auto Trait Implementations§
impl Freeze for TextExtents
impl RefUnwindSafe for TextExtents
impl Send for TextExtents
impl Sync for TextExtents
impl Unpin for TextExtents
impl UnsafeUnpin for TextExtents
impl UnwindSafe for TextExtents
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