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: f32
Implementations§
source§impl 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.
pub(crate) const MAPPING: [f32; 9] = _
Trait Implementations§
source§impl PartialEq for Stretch
impl PartialEq for Stretch
source§impl PartialOrd for Stretch
impl PartialOrd for Stretch
1.0.0 · source§fn 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 moreimpl Copy for Stretch
impl StructuralPartialEq for Stretch
Auto Trait Implementations§
impl Freeze for Stretch
impl RefUnwindSafe for Stretch
impl Send for Stretch
impl Sync for Stretch
impl Unpin for Stretch
impl UnwindSafe for Stretch
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more