[−][src]Struct skia_bindings::SkMatrix
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]
&mut self,
dx: SkScalar,
dy: SkScalar
) -> *mut SkMatrix
pub unsafe fn setScale(
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
[src]
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
degrees: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
sinValue: SkScalar,
cosValue: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
pub unsafe fn setSinCos1(
&mut self,
sinValue: SkScalar,
cosValue: SkScalar
) -> *mut SkMatrix
[src]
&mut self,
sinValue: SkScalar,
cosValue: SkScalar
) -> *mut SkMatrix
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]
&mut self,
kx: SkScalar,
ky: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
a: *const SkMatrix,
b: *const SkMatrix
) -> *mut SkMatrix
pub unsafe fn preTranslate(
&mut self,
dx: SkScalar,
dy: SkScalar
) -> *mut SkMatrix
[src]
&mut self,
dx: SkScalar,
dy: SkScalar
) -> *mut SkMatrix
pub unsafe fn preScale(
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
[src]
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
degrees: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
kx: SkScalar,
ky: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
dx: SkScalar,
dy: SkScalar
) -> *mut SkMatrix
pub unsafe fn postScale(
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
[src]
&mut self,
sx: SkScalar,
sy: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
degrees: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
kx: SkScalar,
ky: SkScalar,
px: SkScalar,
py: SkScalar
) -> *mut SkMatrix
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]
&mut self,
src: *const SkRect,
dst: *const SkRect,
stf: SkMatrix_ScaleToFit
) -> bool
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 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]
&self,
dst: *mut SkPoint,
src: *const SkPoint,
count: c_int
)
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 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 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]
&self,
scale: *mut SkSize,
remaining: *mut SkMatrix
) -> bool
pub unsafe fn I() -> *const SkMatrix
[src]
pub unsafe fn InvalidMatrix() -> *const SkMatrix
[src]
Trait Implementations
Auto Trait Implementations
impl Send for SkMatrix
impl Unpin for SkMatrix
impl Sync 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
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,