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

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]

ULTRA_CONDENSED: Stretch = Stretch(0.5)

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

EXTRA_CONDENSED: Stretch = Stretch(0.625)

Extra-condensed width (62.5%).

CONDENSED: Stretch = Stretch(0.75)

Condensed width (75%).

SEMI_CONDENSED: Stretch = Stretch(0.875)

Semi-condensed width (87.5%).

NORMAL: Stretch = Stretch(1.0)

Normal width (100%).

SEMI_EXPANDED: Stretch = Stretch(1.125)

Semi-expanded width (112.5%).

EXPANDED: Stretch = Stretch(1.25)

Expanded width (125%).

EXTRA_EXPANDED: Stretch = Stretch(1.5)

Extra-expanded width (150%).

ULTRA_EXPANDED: Stretch = Stretch(2.0)

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

Trait Implementations

impl Clone for Stretch
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Stretch
[src]

impl Debug for Stretch
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Stretch
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Stretch
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Default for Stretch
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Stretch

impl Sync for Stretch