[][src]Struct skia_bindings::SkMatrix

#[repr(C)]
pub struct SkMatrix {
    pub fMat: [SkScalar; 9],
    pub fTypeMask: u32,
}

Fields

fMat: [SkScalar; 9]fTypeMask: u32

Methods

impl SkMatrix[src]

pub unsafe fn isSimilarity(&self, tol: SkScalar) -> bool[src]

pub unsafe fn preservesRightAngles(&self, tol: SkScalar) -> bool[src]

pub unsafe fn set9(&mut self, buffer: *const SkScalar) -> *mut SkMatrix[src]

pub unsafe fn reset(&mut self) -> *mut SkMatrix[src]

pub unsafe fn setTranslate(
    &mut self,
    dx: SkScalar,
    dy: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn setScale(
    &mut self,
    sx: SkScalar,
    sy: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn setScale1(&mut self, sx: SkScalar, sy: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn setRotate(
    &mut self,
    degrees: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn setRotate1(&mut self, degrees: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn setSinCos(
    &mut self,
    sinValue: SkScalar,
    cosValue: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn setSinCos1(
    &mut self,
    sinValue: SkScalar,
    cosValue: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn setRSXform(&mut self, rsxForm: *const SkRSXform) -> *mut SkMatrix[src]

pub unsafe fn setSkew(
    &mut self,
    kx: SkScalar,
    ky: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn setSkew1(&mut self, kx: SkScalar, ky: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn setConcat(
    &mut self,
    a: *const SkMatrix,
    b: *const SkMatrix
) -> *mut SkMatrix
[src]

pub unsafe fn preTranslate(
    &mut self,
    dx: SkScalar,
    dy: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn preScale(
    &mut self,
    sx: SkScalar,
    sy: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn preScale1(&mut self, sx: SkScalar, sy: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn preRotate(
    &mut self,
    degrees: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn preRotate1(&mut self, degrees: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn preSkew(
    &mut self,
    kx: SkScalar,
    ky: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn preSkew1(&mut self, kx: SkScalar, ky: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn preConcat(&mut self, other: *const SkMatrix) -> *mut SkMatrix[src]

pub unsafe fn postTranslate(
    &mut self,
    dx: SkScalar,
    dy: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn postScale(
    &mut self,
    sx: SkScalar,
    sy: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn postScale1(&mut self, sx: SkScalar, sy: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn postIDiv(&mut self, divx: c_int, divy: c_int) -> bool[src]

pub unsafe fn postRotate(
    &mut self,
    degrees: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn postRotate1(&mut self, degrees: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn postSkew(
    &mut self,
    kx: SkScalar,
    ky: SkScalar,
    px: SkScalar,
    py: SkScalar
) -> *mut SkMatrix
[src]

pub unsafe fn postSkew1(&mut self, kx: SkScalar, ky: SkScalar) -> *mut SkMatrix[src]

pub unsafe fn postConcat(&mut self, other: *const SkMatrix) -> *mut SkMatrix[src]

pub unsafe fn setRectToRect(
    &mut self,
    src: *const SkRect,
    dst: *const SkRect,
    stf: SkMatrix_ScaleToFit
) -> bool
[src]

pub unsafe fn setPolyToPoly(
    &mut self,
    src: *const SkPoint,
    dst: *const SkPoint,
    count: c_int
) -> bool
[src]

pub unsafe fn SetAffineIdentity(affine: *mut SkScalar)[src]

pub unsafe fn asAffine(&self, affine: *mut SkScalar) -> bool[src]

pub unsafe fn setAffine(&mut self, affine: *const SkScalar) -> *mut SkMatrix[src]

pub unsafe fn mapPoints(
    &self,
    dst: *mut SkPoint,
    src: *const SkPoint,
    count: c_int
)
[src]

pub unsafe fn mapHomogeneousPoints(
    &self,
    dst: *mut SkPoint3,
    src: *const SkPoint3,
    count: c_int
)
[src]

pub unsafe fn mapXY(&self, x: SkScalar, y: SkScalar, result: *mut SkPoint)[src]

pub unsafe fn mapVectors(
    &self,
    dst: *mut SkVector,
    src: *const SkVector,
    count: c_int
)
[src]

pub unsafe fn mapRect(&self, dst: *mut SkRect, src: *const SkRect) -> bool[src]

pub unsafe fn mapRectScaleTranslate(&self, dst: *mut SkRect, src: *const SkRect)[src]

pub unsafe fn mapRadius(&self, radius: SkScalar) -> SkScalar[src]

pub unsafe fn isFixedStepInX(&self) -> bool[src]

pub unsafe fn fixedStepInX(&self, y: SkScalar) -> SkVector[src]

pub unsafe fn dump(&self)[src]

pub unsafe fn getMinScale(&self) -> SkScalar[src]

pub unsafe fn getMaxScale(&self) -> SkScalar[src]

pub unsafe fn getMinMaxScales(&self, scaleFactors: *mut SkScalar) -> bool[src]

pub unsafe fn decomposeScale(
    &self,
    scale: *mut SkSize,
    remaining: *mut SkMatrix
) -> bool
[src]

pub unsafe fn I() -> *const SkMatrix[src]

pub unsafe fn InvalidMatrix() -> *const SkMatrix[src]

Trait Implementations

impl Clone for SkMatrix[src]

impl Copy for SkMatrix[src]

Auto Trait Implementations

Blanket Implementations

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> From<T> for T[src]

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.

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

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

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