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.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)