Struct ab_glyph::GlyphImage
source · pub struct GlyphImage<'a> {
pub origin: Point,
pub scale: f32,
pub data: &'a [u8],
pub format: GlyphImageFormat,
}
👎Deprecated since 0.2.22: Deprecated in favor of
v2::GlyphImage
Expand description
Old version of v2::GlyphImage
.
Fields§
§origin: Point
👎Deprecated since 0.2.22: Deprecated in favor of
v2::GlyphImage
Offset of the image from the normal origin (top at the baseline plus ascent), measured in pixels at the image’s current scale.
scale: f32
👎Deprecated since 0.2.22: Deprecated in favor of
v2::GlyphImage
Current scale of the image in pixels per em.
data: &'a [u8]
👎Deprecated since 0.2.22: Deprecated in favor of
v2::GlyphImage
Raw image data, not a bitmap in the case of GlyphImageFormat::Png
format.
format: GlyphImageFormat
👎Deprecated since 0.2.22: Deprecated in favor of
v2::GlyphImage
Format of the raw data.
Trait Implementations§
source§impl<'a> Clone for GlyphImage<'a>
impl<'a> Clone for GlyphImage<'a>
source§fn clone(&self) -> GlyphImage<'a>
fn clone(&self) -> GlyphImage<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for GlyphImage<'a>
impl<'a> Send for GlyphImage<'a>
impl<'a> Sync for GlyphImage<'a>
impl<'a> Unpin for GlyphImage<'a>
impl<'a> UnwindSafe for GlyphImage<'a>
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