Struct font_kit::properties::Stretch
source · [−]pub struct Stretch(pub f32);Expand description
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.
Tuple Fields
0: f32Implementations
sourceimpl Stretch
impl Stretch
sourcepub const ULTRA_CONDENSED: Stretch
pub const ULTRA_CONDENSED: Stretch
Ultra-condensed width (50%), the narrowest possible.
sourcepub const EXTRA_CONDENSED: Stretch
pub const EXTRA_CONDENSED: Stretch
Extra-condensed width (62.5%).
sourcepub const SEMI_CONDENSED: Stretch
pub const SEMI_CONDENSED: Stretch
Semi-condensed width (87.5%).
sourcepub const SEMI_EXPANDED: Stretch
pub const SEMI_EXPANDED: Stretch
Semi-expanded width (112.5%).
sourcepub const EXTRA_EXPANDED: Stretch
pub const EXTRA_EXPANDED: Stretch
Extra-expanded width (150%).
sourcepub const ULTRA_EXPANDED: Stretch
pub const ULTRA_EXPANDED: Stretch
Ultra-expanded width (200%), the widest possible.
Trait Implementations
sourceimpl PartialOrd<Stretch> for Stretch
impl PartialOrd<Stretch> for Stretch
sourcefn partial_cmp(&self, other: &Stretch) -> Option<Ordering>
fn partial_cmp(&self, other: &Stretch) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for Stretch
impl StructuralPartialEq for Stretch
Auto Trait Implementations
impl RefUnwindSafe for Stretch
impl Send for Stretch
impl Sync for Stretch
impl Unpin for Stretch
impl UnwindSafe for Stretch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more