[][src]Enum printpdf::types::plugins::graphics::ctm::CurTransMat

pub enum CurTransMat {
    Translate(MmMm),
    Rotate(f64),
    Scale(f64f64),
    Identity,
}

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(MmMm)

Translation matrix (in points from bottom left corner) X and Y can have different values

Rotate(f64)

Rotation matrix (clockwise, in degrees)

Scale(f64f64)

Scale matrix (1.0 = 100% scale, no change) X and Y can have different values

Identity

Identity matrix

Trait Implementations

impl Clone for CurTransMat[src]

impl Copy for CurTransMat[src]

impl Debug for CurTransMat[src]

impl Into<[f64; 6]> for CurTransMat[src]

impl Into<Object> for CurTransMat[src]

impl Into<Operation> for CurTransMat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.