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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub unsafe fn SetAffineIdentity(affine: *mut SkScalar)

source

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

source

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

source

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

source

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

source

pub unsafe fn mapHomogeneousPoints1( &self, dst: *mut SkPoint3, src: *const SkPoint, count: c_int )

source

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

source

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

source

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

source

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

source

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

source

pub unsafe fn dump(&self)

source

pub unsafe fn getMinScale(&self) -> SkScalar

source

pub unsafe fn getMaxScale(&self) -> SkScalar

source

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

source

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

source

pub unsafe fn I() -> *const SkMatrix

source

pub unsafe fn InvalidMatrix() -> *const SkMatrix

Trait Implementations§

source§

impl Clone for SkMatrix

source§

fn clone(&self) -> SkMatrix

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SkMatrix

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for SkMatrix

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.