[][src]Struct fontdue::OutlineBounds

pub struct OutlineBounds {
    pub xmin: f32,
    pub ymin: f32,
    pub width: f32,
    pub height: f32,
}

Defines the bounds for a glyph's outline in subpixels. A glyph's outline is always contained in its bitmap.

Fields

xmin: f32

Subpixel offset of the left-most edge of the glyph's outline.

ymin: f32

Subpixel offset of the bottom-most edge of the glyph's outline.

width: f32

The width of the outline in subpixels.

height: f32

The height of the outline in subpixels.

Implementations

impl OutlineBounds[src]

pub fn scale(&self, scale: f32) -> OutlineBounds[src]

Scales the bounding box by the given factor.

Trait Implementations

impl Clone for OutlineBounds[src]

impl Copy for OutlineBounds[src]

impl Debug for OutlineBounds[src]

impl Default for OutlineBounds[src]

impl PartialEq<OutlineBounds> for OutlineBounds[src]

impl StructuralPartialEq for OutlineBounds[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.