Enum printpdf::ctm::CurTransMat
source · [−]pub enum CurTransMat {
Translate(Pt, Pt),
Rotate(f64),
TranslateRotate(Pt, Pt, f64),
Scale(f64, f64),
Raw([f64; 6]),
Identity,
}
Expand description
PDF “current transformation matrix”. Once set, will operate on all following shapes,
until the layer.restore_graphics_state()
is called. It is important to
call layer.save_graphics_state()
earlier.
Variants
Translate(Pt, Pt)
Translation matrix (in points from bottom left corner) X and Y can have different values
Rotate(f64)
Rotation matrix (clockwise, in degrees)
TranslateRotate(Pt, Pt, f64)
Combined rotate + translate matrix
Scale(f64, f64)
Scale matrix (1.0 = 100% scale, no change) X and Y can have different values
Raw([f64; 6])
Raw (PDF-internal) PDF matrix
Identity
Identity matrix
Implementations
Trait Implementations
sourceimpl Clone for CurTransMat
impl Clone for CurTransMat
sourcefn clone(&self) -> CurTransMat
fn clone(&self) -> CurTransMat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CurTransMat
impl Debug for CurTransMat
sourceimpl Into<Object> for CurTransMat
impl Into<Object> for CurTransMat
sourceimpl Into<Operation> for CurTransMat
impl Into<Operation> for CurTransMat
impl Copy for CurTransMat
Auto Trait Implementations
impl RefUnwindSafe for CurTransMat
impl Send for CurTransMat
impl Sync for CurTransMat
impl Unpin for CurTransMat
impl UnwindSafe for CurTransMat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more