pub(crate) struct Scale26Dot6 {
scale: Fixed,
is_scaled: bool,
}Expand description
Scales from font units to 26.6 fixed point with the given size.
Fields§
§scale: Fixed§is_scaled: boolTrue if we’re actually applying a scale factor.
Implementations§
Source§impl Scale26Dot6
impl Scale26Dot6
fn new(ppem: Option<f32>, units_per_em: u16) -> Self
fn apply(&self, value: i32) -> F26Dot6
fn apply_point(&self, value: Point<i32>) -> Point<F26Dot6>
fn mul(&self, value: F26Dot6) -> F26Dot6
fn mul_point(&self, value: Point<F26Dot6>) -> Point<F26Dot6>
pub(crate) fn to_bits(self) -> i32
Trait Implementations§
Source§impl Clone for Scale26Dot6
impl Clone for Scale26Dot6
Source§fn clone(&self) -> Scale26Dot6
fn clone(&self) -> Scale26Dot6
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 moreimpl Copy for Scale26Dot6
Auto Trait Implementations§
impl Freeze for Scale26Dot6
impl RefUnwindSafe for Scale26Dot6
impl Send for Scale26Dot6
impl Sync for Scale26Dot6
impl Unpin for Scale26Dot6
impl UnsafeUnpin for Scale26Dot6
impl UnwindSafe for Scale26Dot6
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