Struct theme_parser::parser::pff2::Glyph
source · pub struct Glyph {
pub code: u32,
pub x_offset: isize,
pub y_offset: isize,
pub device_width: isize,
pub bitmap: Bitmap,
}
Expand description
A single glyph inside the font.
Fields§
§code: u32
The UTF codepoint of the character
x_offset: isize
§y_offset: isize
§device_width: isize
§bitmap: Bitmap
The bitmap that represents a rendered glyph.
Implementations§
Trait Implementations§
source§impl PartialEq for Glyph
impl PartialEq for Glyph
impl Eq for Glyph
impl StructuralEq for Glyph
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl RefUnwindSafe for Glyph
impl !Send for Glyph
impl !Sync for Glyph
impl Unpin for Glyph
impl UnwindSafe for Glyph
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