pub struct PositionedGlyph {
pub glyph_id: u16,
pub x: f32,
pub y: f32,
pub codepoint: char,
}Expand description
A positioned glyph ready for rendering
Fields§
§glyph_id: u16Glyph ID in the font
x: f32X position in pixels
y: f32Y position in pixels (baseline)
codepoint: charCharacter this glyph represents
Trait Implementations§
Source§impl Clone for PositionedGlyph
impl Clone for PositionedGlyph
Source§fn clone(&self) -> PositionedGlyph
fn clone(&self) -> PositionedGlyph
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PositionedGlyph
impl Debug for PositionedGlyph
impl Copy 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