pub struct ScaleFlags(pub(crate) u32);Expand description
Flags that define how scaling and hinting is applied.
Tuple Fields§
§0: u32Implementations§
Source§impl ScaleFlags
impl ScaleFlags
Sourcepub const HORIZONTAL_SNAP: Self
pub const HORIZONTAL_SNAP: Self
Stem width snapping.
Sourcepub const VERTICAL_SNAP: Self
pub const VERTICAL_SNAP: Self
Stem height snapping.
Sourcepub const STEM_ADJUST: Self
pub const STEM_ADJUST: Self
Stem width/height adjustment.
Sourcepub const NO_HORIZONTAL: Self
pub const NO_HORIZONTAL: Self
Disable horizontal hinting.
Sourcepub const NO_VERTICAL: Self
pub const NO_VERTICAL: Self
Disable vertical hinting.
Sourcepub const NO_ADVANCE: Self
pub const NO_ADVANCE: Self
Disable advance hinting.
Source§impl ScaleFlags
impl ScaleFlags
Sourcepub const fn from_bits_truncate(bits: u32) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
Creates new flags, truncating the given bits to valid values.
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns true if self contains all flags in other.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns true if self contains any flags in other.
Trait Implementations§
Source§impl BitAnd for ScaleFlags
impl BitAnd for ScaleFlags
Source§impl BitAndAssign for ScaleFlags
impl BitAndAssign for ScaleFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for ScaleFlags
impl BitOr for ScaleFlags
Source§impl BitOrAssign for ScaleFlags
impl BitOrAssign for ScaleFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for ScaleFlags
impl Clone for ScaleFlags
Source§fn clone(&self) -> ScaleFlags
fn clone(&self) -> ScaleFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScaleFlags
impl Debug for ScaleFlags
Source§impl Default for ScaleFlags
impl Default for ScaleFlags
Source§fn default() -> ScaleFlags
fn default() -> ScaleFlags
Returns the “default value” for a type. Read more
Source§impl Not for ScaleFlags
impl Not for ScaleFlags
Source§impl PartialEq for ScaleFlags
impl PartialEq for ScaleFlags
impl Copy for ScaleFlags
impl Eq for ScaleFlags
impl StructuralPartialEq for ScaleFlags
Auto Trait Implementations§
impl Freeze for ScaleFlags
impl RefUnwindSafe for ScaleFlags
impl Send for ScaleFlags
impl Sync for ScaleFlags
impl Unpin for ScaleFlags
impl UnsafeUnpin for ScaleFlags
impl UnwindSafe for ScaleFlags
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