pub struct GlyphBitmap {
pub left: i32,
pub top: i32,
pub width: u32,
pub rows: u32,
pub buffer: Vec<u8>,
}Expand description
A rendered glyph: FreeType’s FT_Bitmap and where it goes.
Fields§
§left: i32The display column of the leftmost pixels (bitmap_left).
top: i32The display row above the topmost pixels, y up (bitmap_top).
width: u32Pixels per row.
rows: u32Number of rows.
buffer: Vec<u8>Row-major from the top row: coverage 0..=255, or 0/1 for a
monochrome glyph (as matplotlib’s PositionedBitmap unpacks it).
Trait Implementations§
Source§impl Clone for GlyphBitmap
impl Clone for GlyphBitmap
Source§impl Debug for GlyphBitmap
impl Debug for GlyphBitmap
impl Eq for GlyphBitmap
Source§impl From<GrayBitmap> for GlyphBitmap
impl From<GrayBitmap> for GlyphBitmap
Source§fn from(bitmap: GrayBitmap) -> Self
fn from(bitmap: GrayBitmap) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GlyphBitmap
impl PartialEq for GlyphBitmap
impl StructuralPartialEq for GlyphBitmap
Auto Trait Implementations§
impl Forget for GlyphBitmap
impl Freeze for GlyphBitmap
impl Move for GlyphBitmap
impl RefUnwindSafe for GlyphBitmap
impl Send for GlyphBitmap
impl Sync for GlyphBitmap
impl Unpin for GlyphBitmap
impl UnsafeUnpin for GlyphBitmap
impl UnwindSafe for GlyphBitmap
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