pub struct SbixGlyph<'a> {
pub origin_offset_x: i16,
pub origin_offset_y: i16,
pub graphic_type: u32,
pub data: &'a [u8],
}
Expand description
An sbix
bitmap glyph.
Fields
origin_offset_x: i16
The horizontal (x-axis) offset from the left edge of the graphic to the glyph’s origin.
That is, the x-coordinate of the point on the baseline at the left edge of the glyph.
origin_offset_y: i16
The vertical (y-axis) offset from the bottom edge of the graphic to the glyph’s origin.
That is, the y-coordinate of the point on the baseline at the left edge of the glyph.
graphic_type: u32
Indicates the format of the embedded graphic data.
One of jpg
, png
or tiff
, or the special format dupe
.
data: &'a [u8]
The actual embedded graphic data.
Trait Implementations
sourceimpl From<&SbixGlyph<'_>> for OriginOffset
impl From<&SbixGlyph<'_>> for OriginOffset
Auto Trait Implementations
impl<'a> RefUnwindSafe for SbixGlyph<'a>
impl<'a> Send for SbixGlyph<'a>
impl<'a> Sync for SbixGlyph<'a>
impl<'a> Unpin for SbixGlyph<'a>
impl<'a> UnwindSafe for SbixGlyph<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more