pub struct Scale26Dot6 {
x: Fixed,
y: Fixed,
ppem: f32,
}Expand description
Scales design-unit metrics to 26.6 pixels with 16.16 fixed-point arithmetic.
Sums saturate and halves round toward negative infinity. A measurement
with a fraction is rounded to a whole unit before it is scaled;
ScaleF32 keeps the fraction.
Fields§
§x: Fixed§y: Fixed§ppem: f32Implementations§
Source§impl Scale26Dot6
impl Scale26Dot6
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 (const: unstable) · 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
Source§impl Debug for Scale26Dot6
impl Debug for Scale26Dot6
Source§impl Scale for Scale26Dot6
impl Scale for Scale26Dot6
Source§fn scale_y(&self, value: F48Dot16) -> F26Dot6
fn scale_y(&self, value: F48Dot16) -> F26Dot6
Scales a measurement along the y axis. Read more
Source§fn scale_glyph_extents(
&self,
e: GlyphExtents<F48Dot16>,
) -> GlyphExtents<F26Dot6>
fn scale_glyph_extents( &self, e: GlyphExtents<F48Dot16>, ) -> GlyphExtents<F26Dot6>
Scales where a glyph’s ink sits. Read more
Source§fn scale_rect(&self, b: BoundingBox<F48Dot16>) -> BoundingBox<F26Dot6>
fn scale_rect(&self, b: BoundingBox<F48Dot16>) -> BoundingBox<F26Dot6>
Scales a region given by its corners. Read more
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