Struct allsorts_no_std::bitmap::sbix::SbixGlyph[][src]

pub struct SbixGlyph<'a> {
    pub origin_offset_x: i16,
    pub origin_offset_y: i16,
    pub graphic_type: u32,
    pub data: &'a [u8],
}

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

impl From<&'_ SbixGlyph<'_>> for OriginOffset[src]

impl<'a> ReadBinaryDep<'a> for SbixGlyph<'a>[src]

type Args = usize

type HostType = Self

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.