pub struct GlyphBitmap {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub bearing_x: i32,
pub bearing_y: i32,
pub advance: u32,
}Expand description
Rendered glyph bitmap.
Fields§
§data: Vec<u8>Grayscale pixel data (0 = transparent, 255 = opaque).
width: u32Bitmap width in pixels.
height: u32Bitmap height in pixels.
bearing_x: i32Left bearing in pixels.
bearing_y: i32Top bearing in pixels.
advance: u32Advance width in pixels.
Trait Implementations§
Source§impl Clone for GlyphBitmap
impl Clone for GlyphBitmap
Source§fn clone(&self) -> GlyphBitmap
fn clone(&self) -> GlyphBitmap
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlyphBitmap
impl Debug for GlyphBitmap
Source§impl PartialEq for GlyphBitmap
impl PartialEq for GlyphBitmap
impl Eq for GlyphBitmap
impl StructuralPartialEq for GlyphBitmap
Auto Trait Implementations§
impl Freeze for GlyphBitmap
impl RefUnwindSafe for GlyphBitmap
impl Send for GlyphBitmap
impl Sync for GlyphBitmap
impl Unpin for GlyphBitmap
impl UnwindSafe for GlyphBitmap
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)