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.
Trait Implementations§
Source§impl PartialOrd for Stretch
impl PartialOrd for Stretch
impl 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