[][src]Struct font_kit::properties::Stretch

pub struct Stretch(pub f32);

The width of a font as an approximate fraction of the normal width.

Widths range from 0.5 to 2.0 inclusive, with 1.0 as the normal width.

Methods

impl Stretch[src]

pub const ULTRA_CONDENSED: Stretch[src]

Ultra-condensed width (50%), the narrowest possible.

pub const EXTRA_CONDENSED: Stretch[src]

Extra-condensed width (62.5%).

pub const CONDENSED: Stretch[src]

Condensed width (75%).

pub const SEMI_CONDENSED: Stretch[src]

Semi-condensed width (87.5%).

pub const NORMAL: Stretch[src]

Normal width (100%).

pub const SEMI_EXPANDED: Stretch[src]

Semi-expanded width (112.5%).

pub const EXPANDED: Stretch[src]

Expanded width (125%).

pub const EXTRA_EXPANDED: Stretch[src]

Extra-expanded width (150%).

pub const ULTRA_EXPANDED: Stretch[src]

Ultra-expanded width (200%), the widest possible.

Trait Implementations

impl Copy for Stretch[src]

impl Default for Stretch[src]

impl Clone for Stretch[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Stretch> for Stretch[src]

impl PartialEq<Stretch> for Stretch[src]

impl Debug for Stretch[src]

Auto Trait Implementations

impl Unpin for Stretch

impl Sync for Stretch

impl Send for Stretch

impl UnwindSafe for Stretch

impl RefUnwindSafe for Stretch

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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