[−][src]Struct skia_bindings::SkMatrix
Fields
fMat: [SkScalar; 9]
fTypeMask: u32
Methods
impl SkMatrix
[src]
pub unsafe fn MakeScale(sx: SkScalar, sy: SkScalar) -> SkMatrix
[src]
pub unsafe fn MakeScale1(scale: SkScalar) -> SkMatrix
[src]
pub unsafe fn MakeTrans(dx: SkScalar, dy: SkScalar) -> SkMatrix
[src]
pub unsafe fn MakeAll(
scaleX: SkScalar,
skewX: SkScalar,
transX: SkScalar,
skewY: SkScalar,
scaleY: SkScalar,
transY: SkScalar,
pers0: SkScalar,
pers1: SkScalar,
pers2: SkScalar
) -> SkMatrix
[src]
scaleX: SkScalar,
skewX: SkScalar,
transX: SkScalar,
skewY: SkScalar,
scaleY: SkScalar,
transY: SkScalar,
pers0: SkScalar,
pers1: SkScalar,
pers2: SkScalar
) -> SkMatrix
pub unsafe fn getType(&self) -> SkMatrix_TypeMask
[src]
pub unsafe fn isIdentity(&self) -> bool
[src]
pub unsafe fn isScaleTranslate(&self) -> bool
[src]
pub unsafe fn isTranslate(&self) -> bool
[src]
pub unsafe fn rectStaysRect(&self) -> bool
[src]
pub unsafe fn preservesAxisAlignment(&self) -> bool
[src]
pub unsafe fn hasPerspective(&self) -> bool
[src]
pub unsafe fn isSimilarity(&self, tol: SkScalar) -> bool
[src]
pub unsafe fn preservesRightAngles(&self, tol: SkScalar) -> bool
[src]
pub unsafe fn get(&self, index: c_int) -> SkScalar
[src]
pub unsafe fn getScaleX(&self) -> SkScalar
[src]
pub unsafe fn getScaleY(&self) -> SkScalar
[src]
pub unsafe fn getSkewY(&self) -> SkScalar
[src]
pub unsafe fn getSkewX(&self) -> SkScalar
[src]
pub unsafe fn getTranslateX(&self) -> SkScalar
[src]
pub unsafe fn getTranslateY(&self) -> SkScalar
[src]
pub unsafe fn getPerspX(&self) -> SkScalar
[src]
pub unsafe fn getPerspY(&self) -> SkScalar
[src]
pub unsafe fn set(&mut self, index: c_int, value: SkScalar)
[src]
pub unsafe fn setScaleX(&mut self, v: SkScalar)
[src]
pub unsafe fn setScaleY(&mut self, v: SkScalar)
[src]
pub unsafe fn setSkewY(&mut self, v: SkScalar)
[src]
pub unsafe fn setSkewX(&mut self, v: SkScalar)
[src]
pub unsafe fn setTranslateX(&mut self, v: SkScalar)
[src]
pub unsafe fn setTranslateY(&mut self, v: SkScalar)
[src]
pub unsafe fn setPerspX(&mut self, v: SkScalar)
[src]
pub unsafe fn setPerspY(&mut self, v: SkScalar)
[src]
pub unsafe fn setAll(
&mut self,
scaleX: SkScalar,
skewX: SkScalar,
transX: SkScalar,
skewY: SkScalar,
scaleY: SkScalar,
transY: SkScalar,
persp0: SkScalar,
persp1: SkScalar,
persp2: SkScalar
)
[src]
&mut self,
scaleX: SkScalar,
skewX: SkScalar,
transX: SkScalar,
skewY: SkScalar,
scaleY: SkScalar,
transY: SkScalar,
persp0: SkScalar,
persp1: SkScalar,
persp2: SkScalar
)
pub unsafe fn get9(&self, buffer: *mut SkScalar)
[src]
pub unsafe fn set9(&mut self, buffer: *const SkScalar)
[src]
pub unsafe fn reset(&mut self)
[src]
pub unsafe fn setIdentity(&mut self)
[src]
pub unsafe fn setTranslate(&mut self, dx: SkScalar, dy: SkScalar)
[src]
pub unsafe fn setTranslate1(&mut self, v: *const SkVector)
[src]
pub unsafe fn setScale(
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
)
[src]
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn setScale1(&mut self, sx: SkScalar, sy: SkScalar)
[src]
pub unsafe fn setRotate(
&mut self,
degrees: SkScalar,
px: SkScalar,
py: SkScalar
)
[src]
&mut self,
degrees: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn setRotate1(&mut self, degrees: SkScalar)
[src]
pub unsafe fn setSinCos(
&mut self,
sinValue: SkScalar,
cosValue: SkScalar,
px: SkScalar,
py: SkScalar
)
[src]
&mut self,
sinValue: SkScalar,
cosValue: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn setSinCos1(&mut self, sinValue: SkScalar, cosValue: SkScalar)
[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
)
[src]
&mut self,
kx: SkScalar,
ky: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn setSkew1(&mut self, kx: SkScalar, ky: SkScalar)
[src]
pub unsafe fn setConcat(&mut self, a: *const SkMatrix, b: *const SkMatrix)
[src]
pub unsafe fn preTranslate(&mut self, dx: SkScalar, dy: SkScalar)
[src]
pub unsafe fn preScale(
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
)
[src]
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn preScale1(&mut self, sx: SkScalar, sy: SkScalar)
[src]
pub unsafe fn preRotate(
&mut self,
degrees: SkScalar,
px: SkScalar,
py: SkScalar
)
[src]
&mut self,
degrees: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn preRotate1(&mut self, degrees: SkScalar)
[src]
pub unsafe fn preSkew(
&mut self,
kx: SkScalar,
ky: SkScalar,
px: SkScalar,
py: SkScalar
)
[src]
&mut self,
kx: SkScalar,
ky: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn preSkew1(&mut self, kx: SkScalar, ky: SkScalar)
[src]
pub unsafe fn preConcat(&mut self, other: *const SkMatrix)
[src]
pub unsafe fn postTranslate(&mut self, dx: SkScalar, dy: SkScalar)
[src]
pub unsafe fn postScale(
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
)
[src]
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn postScale1(&mut self, sx: SkScalar, sy: SkScalar)
[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
)
[src]
&mut self,
degrees: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn postRotate1(&mut self, degrees: SkScalar)
[src]
pub unsafe fn postSkew(
&mut self,
kx: SkScalar,
ky: SkScalar,
px: SkScalar,
py: SkScalar
)
[src]
&mut self,
kx: SkScalar,
ky: SkScalar,
px: SkScalar,
py: SkScalar
)
pub unsafe fn postSkew1(&mut self, kx: SkScalar, ky: SkScalar)
[src]
pub unsafe fn postConcat(&mut self, other: *const SkMatrix)
[src]
pub unsafe fn setRectToRect(
&mut self,
src: *const SkRect,
dst: *const SkRect,
stf: SkMatrix_ScaleToFit
) -> bool
[src]
&mut self,
src: *const SkRect,
dst: *const SkRect,
stf: SkMatrix_ScaleToFit
) -> bool
pub unsafe fn MakeRectToRect(
src: *const SkRect,
dst: *const SkRect,
stf: SkMatrix_ScaleToFit
) -> SkMatrix
[src]
src: *const SkRect,
dst: *const SkRect,
stf: SkMatrix_ScaleToFit
) -> SkMatrix
pub unsafe fn setPolyToPoly(
&mut self,
src: *const SkPoint,
dst: *const SkPoint,
count: c_int
) -> bool
[src]
&mut self,
src: *const SkPoint,
dst: *const SkPoint,
count: c_int
) -> bool
pub unsafe fn invert(&self, inverse: *mut SkMatrix) -> 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)
[src]
pub unsafe fn mapPoints(
&self,
dst: *mut SkPoint,
src: *const SkPoint,
count: c_int
)
[src]
&self,
dst: *mut SkPoint,
src: *const SkPoint,
count: c_int
)
pub unsafe fn mapPoints1(&self, pts: *mut SkPoint, count: c_int)
[src]
pub unsafe fn mapHomogeneousPoints(
&self,
dst: *mut SkPoint3,
src: *const SkPoint3,
count: c_int
)
[src]
&self,
dst: *mut SkPoint3,
src: *const SkPoint3,
count: c_int
)
pub unsafe fn mapXY(&self, x: SkScalar, y: SkScalar, result: *mut SkPoint)
[src]
pub unsafe fn mapXY1(&self, x: SkScalar, y: SkScalar) -> SkPoint
[src]
pub unsafe fn mapVectors(
&self,
dst: *mut SkVector,
src: *const SkVector,
count: c_int
)
[src]
&self,
dst: *mut SkVector,
src: *const SkVector,
count: c_int
)
pub unsafe fn mapVectors1(&self, vecs: *mut SkVector, count: c_int)
[src]
pub unsafe fn mapVector(
&self,
dx: SkScalar,
dy: SkScalar,
result: *mut SkVector
)
[src]
&self,
dx: SkScalar,
dy: SkScalar,
result: *mut SkVector
)
pub unsafe fn mapVector1(&self, dx: SkScalar, dy: SkScalar) -> SkVector
[src]
pub unsafe fn mapRect(&self, dst: *mut SkRect, src: *const SkRect) -> bool
[src]
pub unsafe fn mapRect1(&self, rect: *mut SkRect) -> bool
[src]
pub unsafe fn mapRect2(&self, src: *const SkRect) -> SkRect
[src]
pub unsafe fn mapRectToQuad(&self, dst: *mut SkPoint, rect: *const SkRect)
[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 cheapEqualTo(&self, m: *const SkMatrix) -> bool
[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]
&self,
scale: *mut SkSize,
remaining: *mut SkMatrix
) -> bool
pub unsafe fn I() -> *const SkMatrix
[src]
pub unsafe fn InvalidMatrix() -> *const SkMatrix
[src]
pub unsafe fn Concat(a: *const SkMatrix, b: *const SkMatrix) -> SkMatrix
[src]
pub unsafe fn dirtyMatrixTypeCache(&mut self)
[src]
pub unsafe fn setScaleTranslate(
&mut self,
sx: SkScalar,
sy: SkScalar,
tx: SkScalar,
ty: SkScalar
)
[src]
&mut self,
sx: SkScalar,
sy: SkScalar,
tx: SkScalar,
ty: SkScalar
)
pub unsafe fn isFinite(&self) -> bool
[src]
pub unsafe fn new() -> Self
[src]
Trait Implementations
impl Clone for SkMatrix
[src]
fn clone(&self) -> SkMatrix
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SkMatrix
[src]
impl Debug for SkMatrix
[src]
Auto Trait Implementations
impl Sync for SkMatrix
impl Send for SkMatrix
impl Unpin for SkMatrix
impl RefUnwindSafe for SkMatrix
impl UnwindSafe for SkMatrix
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,