[][src]Struct fontdue::layout::GlyphPosition

pub struct GlyphPosition {
    pub key: GlyphRasterConfig,
    pub x: f32,
    pub y: f32,
    pub width: usize,
    pub height: usize,
}

A positioned scaled glyph.

Fields

key: GlyphRasterConfig

Hashable key that can be used to uniquely identify a rasterized glyph.

x: f32

The left side of the glyph bounding box. Dimensions are in pixels, and are alawys whole numebrs.

y: f32

The bottom side of the glyph bounding box. Dimensions are in pixels and are always whole numbers.

width: usize

The width of the glyph. Dimensions are in pixels.

height: usize

The height of the glyph. Dimensions are in pixels.

Trait Implementations

impl Clone for GlyphPosition[src]

impl Copy for GlyphPosition[src]

impl Debug for GlyphPosition[src]

impl PartialEq<GlyphPosition> for GlyphPosition[src]

impl StructuralPartialEq for GlyphPosition[src]

Auto Trait Implementations

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> 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.