pub struct GlyphRect {
pub width: PhysicalPixelsF,
pub height: PhysicalPixelsF,
pub bounds: PhysicalPixelsFRect,
pub texture_bounds: PhysicalPixelsRect,
}Expand description
A rectangle and texture coordinates for a glyph.
Fields§
§width: PhysicalPixelsFThe width of the glyph in pixels.
height: PhysicalPixelsFThe height of the glyph in pixels.
bounds: PhysicalPixelsFRectMesh bounds on the glyph rectangle. NOT FOR LAYOUTING.
texture_bounds: PhysicalPixelsRectThe texture bounds of the glyph in the atlas.
Trait Implementations§
impl Copy for GlyphRect
impl StructuralPartialEq for GlyphRect
Auto Trait Implementations§
impl Freeze for GlyphRect
impl RefUnwindSafe for GlyphRect
impl Send for GlyphRect
impl Sync for GlyphRect
impl Unpin for GlyphRect
impl UnsafeUnpin for GlyphRect
impl UnwindSafe for GlyphRect
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