[][src]Struct cairo::Matrix

#[repr(C)]
pub struct Matrix {
    pub xx: c_double,
    pub yx: c_double,
    pub xy: c_double,
    pub yy: c_double,
    pub x0: c_double,
    pub y0: c_double,
}

Fields

xx: c_doubleyx: c_doublexy: c_doubleyy: c_doublex0: c_doubley0: c_double

Methods

impl Matrix[src]

pub fn identity() -> Matrix[src]

pub fn new(xx: f64, yx: f64, xy: f64, yy: f64, x0: f64, y0: f64) -> Matrix[src]

pub fn multiply(left: &Matrix, right: &Matrix) -> Matrix[src]

pub fn translate(&mut self, tx: f64, ty: f64)[src]

pub fn scale(&mut self, sx: f64, sy: f64)[src]

pub fn rotate(&mut self, angle: f64)[src]

pub fn invert(&mut self)[src]

pub fn try_invert(&self) -> Result<Matrix, Status>[src]

pub fn transform_distance(&self, _dx: f64, _dy: f64) -> (f64, f64)[src]

pub fn transform_point(&self, _x: f64, _y: f64) -> (f64, f64)[src]

Trait Implementations

impl Clone for Matrix[src]

impl Copy for Matrix[src]

impl Debug for Matrix[src]

impl Default for Matrix[src]

impl PartialEq<Matrix> for Matrix[src]

impl StructuralPartialEq for Matrix[src]

Auto Trait Implementations

impl RefUnwindSafe for Matrix

impl Send for Matrix

impl Sync for Matrix

impl Unpin for Matrix

impl UnwindSafe for Matrix

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> 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.