pub struct GlyphRaster {
pub width: u16,
pub height: u16,
pub advance_x: f32,
pub bearing_x: i16,
pub bearing_y: i16,
pub alpha: Vec<u8>,
}Expand description
Rasterized glyph bitmap.
Fields§
§width: u16Bitmap width in pixels.
height: u16Bitmap height in pixels.
advance_x: f32Horizontal advance in pixels.
bearing_x: i16Left-side bearing in pixels.
bearing_y: i16Top bearing in pixels.
alpha: Vec<u8>Alpha bitmap, row-major.
Implementations§
Trait Implementations§
Source§impl Clone for GlyphRaster
impl Clone for GlyphRaster
Source§fn clone(&self) -> GlyphRaster
fn clone(&self) -> GlyphRaster
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlyphRaster
impl Debug for GlyphRaster
Source§impl PartialEq for GlyphRaster
impl PartialEq for GlyphRaster
impl StructuralPartialEq for GlyphRaster
Auto Trait Implementations§
impl Freeze for GlyphRaster
impl RefUnwindSafe for GlyphRaster
impl Send for GlyphRaster
impl Sync for GlyphRaster
impl Unpin for GlyphRaster
impl UnsafeUnpin for GlyphRaster
impl UnwindSafe for GlyphRaster
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