Struct freya_engine::prelude::Width
#[repr(transparent)]pub struct Width(_);
Expand description
Wrapper type for the width of a font.
To create a width of a font from an i32, use Width::from(). To access the underlying value of the font weight, dereference *weight.
Implementations§
§impl Width
impl Width
pub const ULTRA_CONDENSED: Width = Self(SkFontStyle_Width::kUltraCondensed_Width as _)
pub const EXTRA_CONDENSED: Width = Self(SkFontStyle_Width::kExtraCondensed_Width as _)
pub const CONDENSED: Width = Self(SkFontStyle_Width::kCondensed_Width as _)
pub const SEMI_CONDENSED: Width = Self(SkFontStyle_Width::kSemiCondensed_Width as _)
pub const NORMAL: Width = Self(SkFontStyle_Width::kNormal_Width as _)
pub const SEMI_EXPANDED: Width = Self(SkFontStyle_Width::kSemiExpanded_Width as _)
pub const EXPANDED: Width = Self(SkFontStyle_Width::kExpanded_Width as _)
pub const EXTRA_EXPANDED: Width = Self(SkFontStyle_Width::kExtraExpanded_Width as _)
pub const ULTRA_EXPANDED: Width = Self(SkFontStyle_Width::kUltraExpanded_Width as _)
Methods from Deref<Target = i32>§
pub const MIN: i32 = -2_147_483_648i32
pub const MAX: i32 = 2_147_483_647i32
pub const BITS: u32 = 32u32
Trait Implementations§
§impl Ord for Width
impl Ord for Width
§impl PartialOrd<Width> for Width
impl PartialOrd<Width> for Width
§fn partial_cmp(&self, other: &Width) -> Option<Ordering>
fn partial_cmp(&self, other: &Width) -> Option<Ordering>
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 Width
impl Eq for Width
impl StructuralEq for Width
impl StructuralPartialEq for Width
Auto Trait Implementations§
impl RefUnwindSafe for Width
impl Send for Width
impl Sync for Width
impl Unpin for Width
impl UnwindSafe for Width
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