Struct skia_bindings::SkMatrix
source · #[repr(C)]pub struct SkMatrix {
pub fMat: [SkScalar; 9],
pub fTypeMask: i32,
}
Fields§
§fMat: [SkScalar; 9]
§fTypeMask: i32
Implementations§
source§impl SkMatrix
impl SkMatrix
pub unsafe fn isSimilarity(&self, tol: SkScalar) -> bool
pub unsafe fn preservesRightAngles(&self, tol: SkScalar) -> bool
pub unsafe fn set9(&mut self, buffer: *const SkScalar) -> *mut SkMatrix
pub unsafe fn reset(&mut self) -> *mut SkMatrix
pub unsafe fn setTranslate( &mut self, dx: SkScalar, dy: SkScalar ) -> *mut SkMatrix
pub unsafe fn setScale( &mut self, sx: SkScalar, sy: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn setScale1(&mut self, sx: SkScalar, sy: SkScalar) -> *mut SkMatrix
pub unsafe fn setRotate( &mut self, degrees: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn setRotate1(&mut self, degrees: SkScalar) -> *mut SkMatrix
pub unsafe fn setSinCos( &mut self, sinValue: SkScalar, cosValue: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn setSinCos1( &mut self, sinValue: SkScalar, cosValue: SkScalar ) -> *mut SkMatrix
pub unsafe fn setRSXform(&mut self, rsxForm: *const SkRSXform) -> *mut SkMatrix
pub unsafe fn setSkew( &mut self, kx: SkScalar, ky: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn setSkew1(&mut self, kx: SkScalar, ky: SkScalar) -> *mut SkMatrix
pub unsafe fn setConcat( &mut self, a: *const SkMatrix, b: *const SkMatrix ) -> *mut SkMatrix
pub unsafe fn preTranslate( &mut self, dx: SkScalar, dy: SkScalar ) -> *mut SkMatrix
pub unsafe fn preScale( &mut self, sx: SkScalar, sy: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn preScale1(&mut self, sx: SkScalar, sy: SkScalar) -> *mut SkMatrix
pub unsafe fn preRotate( &mut self, degrees: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn preRotate1(&mut self, degrees: SkScalar) -> *mut SkMatrix
pub unsafe fn preSkew( &mut self, kx: SkScalar, ky: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn preSkew1(&mut self, kx: SkScalar, ky: SkScalar) -> *mut SkMatrix
pub unsafe fn preConcat(&mut self, other: *const SkMatrix) -> *mut SkMatrix
pub unsafe fn postTranslate( &mut self, dx: SkScalar, dy: SkScalar ) -> *mut SkMatrix
pub unsafe fn postScale( &mut self, sx: SkScalar, sy: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn postScale1(&mut self, sx: SkScalar, sy: SkScalar) -> *mut SkMatrix
pub unsafe fn postRotate( &mut self, degrees: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn postRotate1(&mut self, degrees: SkScalar) -> *mut SkMatrix
pub unsafe fn postSkew( &mut self, kx: SkScalar, ky: SkScalar, px: SkScalar, py: SkScalar ) -> *mut SkMatrix
pub unsafe fn postSkew1(&mut self, kx: SkScalar, ky: SkScalar) -> *mut SkMatrix
pub unsafe fn postConcat(&mut self, other: *const SkMatrix) -> *mut SkMatrix
pub unsafe fn setRectToRect( &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
pub unsafe fn SetAffineIdentity(affine: *mut SkScalar)
pub unsafe fn asAffine(&self, affine: *mut SkScalar) -> bool
pub unsafe fn setAffine(&mut self, affine: *const SkScalar) -> *mut SkMatrix
pub unsafe fn mapPoints( &self, dst: *mut SkPoint, src: *const SkPoint, count: c_int )
pub unsafe fn mapHomogeneousPoints( &self, dst: *mut SkPoint3, src: *const SkPoint3, count: c_int )
pub unsafe fn mapHomogeneousPoints1( &self, dst: *mut SkPoint3, src: *const SkPoint, count: c_int )
pub unsafe fn mapXY(&self, x: SkScalar, y: SkScalar, result: *mut SkPoint)
pub unsafe fn mapVectors( &self, dst: *mut SkVector, src: *const SkVector, count: c_int )
pub unsafe fn mapRect( &self, dst: *mut SkRect, src: *const SkRect, pc: SkApplyPerspectiveClip ) -> bool
pub unsafe fn mapRectScaleTranslate(&self, dst: *mut SkRect, src: *const SkRect)
pub unsafe fn mapRadius(&self, radius: SkScalar) -> SkScalar
pub unsafe fn dump(&self)
pub unsafe fn getMinScale(&self) -> SkScalar
pub unsafe fn getMaxScale(&self) -> SkScalar
pub unsafe fn getMinMaxScales(&self, scaleFactors: *mut SkScalar) -> bool
pub unsafe fn decomposeScale( &self, scale: *mut SkSize, remaining: *mut SkMatrix ) -> bool
pub unsafe fn I() -> *const SkMatrix
pub unsafe fn InvalidMatrix() -> *const SkMatrix
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SkMatrix
impl Send for SkMatrix
impl Sync for SkMatrix
impl Unpin for SkMatrix
impl UnwindSafe for SkMatrix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more