[−][src]Struct cairo::Matrix
Fields
xx: c_doubleyx: c_doublexy: c_doubleyy: c_doublex0: c_doubley0: c_doubleMethods
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,