Struct riddle_font::ImgFontGlyph[][src]

pub struct ImgFontGlyph {
    pub character: char,
    pub rect: Option<Rect<u32>>,
    pub placement_offset: Vector2<i32>,
    pub horizontal_spacing: u32,
}

Details describing a glyph stored in an image font

Fields

character: char

The character that the glyph maps to.

rect: Option<Rect<u32>>

The part of the imgfont that contains this character.

placement_offset: Vector2<i32>

Offset relative to to the expected location the glyph should be placed, useful if the rect is a different size than the horizontal or vertical spacing of the glyph/font.

horizontal_spacing: u32

The horizontal spacing between the left of this glyph and the left of the next glyph

Trait Implementations

impl Clone for ImgFontGlyph[src]

impl Debug for ImgFontGlyph[src]

impl Default for ImgFontGlyph[src]

Auto Trait Implementations

impl RefUnwindSafe for ImgFontGlyph

impl Send for ImgFontGlyph

impl Sync for ImgFontGlyph

impl Unpin for ImgFontGlyph

impl UnwindSafe for ImgFontGlyph

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> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.