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]
impl Stretch
pub const ULTRA_CONDENSED: Stretch
ULTRA_CONDENSED: Stretch = Stretch(0.5)
Ultra-condensed width (50%), the narrowest possible.
pub const EXTRA_CONDENSED: Stretch
EXTRA_CONDENSED: Stretch = Stretch(0.625)
Extra-condensed width (62.5%).
pub const CONDENSED: Stretch
CONDENSED: Stretch = Stretch(0.75)
Condensed width (75%).
pub const SEMI_CONDENSED: Stretch
SEMI_CONDENSED: Stretch = Stretch(0.875)
Semi-condensed width (87.5%).
pub const NORMAL: Stretch
NORMAL: Stretch = Stretch(1.0)
Normal width (100%).
pub const SEMI_EXPANDED: Stretch
SEMI_EXPANDED: Stretch = Stretch(1.125)
Semi-expanded width (112.5%).
pub const EXPANDED: Stretch
EXPANDED: Stretch = Stretch(1.25)
Expanded width (125%).
pub const EXTRA_EXPANDED: Stretch
EXTRA_EXPANDED: Stretch = Stretch(1.5)
Extra-expanded width (150%).
pub const ULTRA_EXPANDED: Stretch
ULTRA_EXPANDED: Stretch = Stretch(2.0)
Ultra-expanded width (200%), the widest possible.
Trait Implementations
impl Clone for Stretch
[src]
impl Clone for Stretch
fn clone(&self) -> Stretch
[src]
fn clone(&self) -> Stretch
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Stretch
[src]
impl Copy for Stretch
impl Debug for Stretch
[src]
impl Debug for Stretch
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Stretch
[src]
impl PartialEq for Stretch
fn eq(&self, other: &Stretch) -> bool
[src]
fn eq(&self, other: &Stretch) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Stretch) -> bool
[src]
fn ne(&self, other: &Stretch) -> bool
This method tests for !=
.
impl PartialOrd for Stretch
[src]
impl PartialOrd for Stretch
fn partial_cmp(&self, other: &Stretch) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Stretch) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Stretch) -> bool
[src]
fn lt(&self, other: &Stretch) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Stretch) -> bool
[src]
fn le(&self, other: &Stretch) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Stretch) -> bool
[src]
fn gt(&self, other: &Stretch) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Stretch) -> bool
[src]
fn ge(&self, other: &Stretch) -> bool
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]
impl Default for Stretch