pub struct Glyph {
pub width: u8,
pub height: u8,
pub advance: u8,
pub origin_x: i8,
pub origin_y: i8,
pub data_offset: usize,
}Expand description
Single-character bitmap descriptor: dimensions + offset into the
shared data byte buffer. Coverage bytes are always exactly 0 or
255 — the ASCII-art source is const fn-decoded to a binary mask,
so the ShapeOp::Glyph partial-alpha branch never fires.
Fields§
§width: u8§height: u8§advance: u8§origin_x: i8§origin_y: i8§data_offset: usizeTrait 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 UnsafeUnpin 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