pub struct PositionedGlyph {
pub id: GlyphId,
pub x: f32,
pub y: f32,
}Expand description
A glyph placed by a text layout, relative to the layout’s origin.
Fields§
§id: GlyphIdThe glyph to draw.
x: f32Pen position in pixels (may be fractional: drawn at the nearest subpixel bin).
y: f32Baseline in pixels, y down (rounded to a whole pixel when drawn).
Trait Implementations§
Source§impl Clone for PositionedGlyph
impl Clone for PositionedGlyph
impl Copy for PositionedGlyph
Source§impl Debug for PositionedGlyph
impl Debug for PositionedGlyph
Source§impl PartialEq for PositionedGlyph
impl PartialEq for PositionedGlyph
impl StructuralPartialEq for PositionedGlyph
Auto Trait Implementations§
impl Freeze for PositionedGlyph
impl RefUnwindSafe for PositionedGlyph
impl Send for PositionedGlyph
impl Sync for PositionedGlyph
impl Unpin for PositionedGlyph
impl UnsafeUnpin for PositionedGlyph
impl UnwindSafe for PositionedGlyph
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