pub struct Transform {
pub matrix: FontMatrix,
pub scale: Option<Fixed>,
}Expand description
Combination of a matrix and optional scale.
Fields§
§matrix: FontMatrixAffine font matrix.
scale: Option<Fixed>Fixed point scale factor.
This is assumed to convert from font units to 26.6 values.
Implementations§
Trait Implementations§
impl Copy for Transform
impl Eq for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl UnwindSafe for Transform
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