pub struct Glyph {
pub character: char,
pub bitmap: Vec<u8>,
pub width: u8,
pub height: u8,
pub x_offset: i8,
pub y_offset: i8,
pub advance: u8,
}Expand description
Glyph (single character) representation
Fields§
§character: charCharacter code
bitmap: Vec<u8>Bitmap data (1 bit per pixel)
width: u8Width in pixels
height: u8Height in pixels
x_offset: i8X offset for rendering
y_offset: i8Y offset for rendering
advance: u8Advance width (spacing to next character)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnwindSafe for Glyph
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)