Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkRecords::TypedMatrix Struct Reference

#include <SkRecords.h>

Inheritance diagram for SkRecords::TypedMatrix:
SkMatrix

Public Member Functions

 TypedMatrix ()
 
 TypedMatrix (const SkMatrix &matrix)
 
- Public Member Functions inherited from SkMatrix
constexpr SkMatrix ()
 
TypeMask getType () const
 
bool isIdentity () const
 
bool isScaleTranslate () const
 
bool isTranslate () const
 
bool rectStaysRect () const
 
bool preservesAxisAlignment () const
 
bool hasPerspective () const
 
bool isSimilarity (SkScalar tol=SK_ScalarNearlyZero) const
 
bool preservesRightAngles (SkScalar tol=SK_ScalarNearlyZero) const
 
SkScalar operator[] (int index) const
 
SkScalar get (int index) const
 
SkScalar rc (int r, int c) const
 
SkScalar getScaleX () const
 
SkScalar getScaleY () const
 
SkScalar getSkewY () const
 
SkScalar getSkewX () const
 
SkScalar getTranslateX () const
 
SkScalar getTranslateY () const
 
SkScalar getPerspX () const
 
SkScalar getPerspY () const
 
SkScalaroperator[] (int index)
 
SkMatrixset (int index, SkScalar value)
 
SkMatrixsetScaleX (SkScalar v)
 
SkMatrixsetScaleY (SkScalar v)
 
SkMatrixsetSkewY (SkScalar v)
 
SkMatrixsetSkewX (SkScalar v)
 
SkMatrixsetTranslateX (SkScalar v)
 
SkMatrixsetTranslateY (SkScalar v)
 
SkMatrixsetPerspX (SkScalar v)
 
SkMatrixsetPerspY (SkScalar v)
 
SkMatrixsetAll (SkScalar scaleX, SkScalar skewX, SkScalar transX, SkScalar skewY, SkScalar scaleY, SkScalar transY, SkScalar persp0, SkScalar persp1, SkScalar persp2)
 
void get9 (SkScalar buffer[9]) const
 
SkMatrixset9 (const SkScalar buffer[9])
 
SkMatrixreset ()
 
SkMatrixsetIdentity ()
 
SkMatrixsetTranslate (SkScalar dx, SkScalar dy)
 
SkMatrixsetTranslate (const SkVector &v)
 
SkMatrixsetScale (SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
 
SkMatrixsetScale (SkScalar sx, SkScalar sy)
 
SkMatrixsetRotate (SkScalar degrees, SkScalar px, SkScalar py)
 
SkMatrixsetRotate (SkScalar degrees)
 
SkMatrixsetSinCos (SkScalar sinValue, SkScalar cosValue, SkScalar px, SkScalar py)
 
SkMatrixsetSinCos (SkScalar sinValue, SkScalar cosValue)
 
SkMatrixsetRSXform (const SkRSXform &rsxForm)
 
SkMatrixsetSkew (SkScalar kx, SkScalar ky, SkScalar px, SkScalar py)
 
SkMatrixsetSkew (SkScalar kx, SkScalar ky)
 
SkMatrixsetConcat (const SkMatrix &a, const SkMatrix &b)
 
SkMatrixpreTranslate (SkScalar dx, SkScalar dy)
 
SkMatrixpreScale (SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
 
SkMatrixpreScale (SkScalar sx, SkScalar sy)
 
SkMatrixpreRotate (SkScalar degrees, SkScalar px, SkScalar py)
 
SkMatrixpreRotate (SkScalar degrees)
 
SkMatrixpreSkew (SkScalar kx, SkScalar ky, SkScalar px, SkScalar py)
 
SkMatrixpreSkew (SkScalar kx, SkScalar ky)
 
SkMatrixpreConcat (const SkMatrix &other)
 
SkMatrixpostTranslate (SkScalar dx, SkScalar dy)
 
SkMatrixpostScale (SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
 
SkMatrixpostScale (SkScalar sx, SkScalar sy)
 
SkMatrixpostRotate (SkScalar degrees, SkScalar px, SkScalar py)
 
SkMatrixpostRotate (SkScalar degrees)
 
SkMatrixpostSkew (SkScalar kx, SkScalar ky, SkScalar px, SkScalar py)
 
SkMatrixpostSkew (SkScalar kx, SkScalar ky)
 
SkMatrixpostConcat (const SkMatrix &other)
 
bool setRectToRect (const SkRect &src, const SkRect &dst, ScaleToFit stf)
 
bool setPolyToPoly (const SkPoint src[], const SkPoint dst[], int count)
 
bool invert (SkMatrix *inverse) const
 
bool asAffine (SkScalar affine[6]) const
 
SkMatrixsetAffine (const SkScalar affine[6])
 
void normalizePerspective ()
 
void mapPoints (SkPoint dst[], const SkPoint src[], int count) const
 
void mapPoints (SkPoint pts[], int count) const
 
void mapHomogeneousPoints (SkPoint3 dst[], const SkPoint3 src[], int count) const
 
void mapHomogeneousPoints (SkPoint3 dst[], const SkPoint src[], int count) const
 
SkPoint mapPoint (SkPoint pt) const
 
void mapXY (SkScalar x, SkScalar y, SkPoint *result) const
 
SkPoint mapXY (SkScalar x, SkScalar y) const
 
SkPoint mapOrigin () const
 
void mapVectors (SkVector dst[], const SkVector src[], int count) const
 
void mapVectors (SkVector vecs[], int count) const
 
void mapVector (SkScalar dx, SkScalar dy, SkVector *result) const
 
SkVector mapVector (SkScalar dx, SkScalar dy) const
 
bool mapRect (SkRect *dst, const SkRect &src, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
 
bool mapRect (SkRect *rect, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
 
SkRect mapRect (const SkRect &src, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
 
void mapRectToQuad (SkPoint dst[4], const SkRect &rect) const
 
void mapRectScaleTranslate (SkRect *dst, const SkRect &src) const
 
SkScalar mapRadius (SkScalar radius) const
 
void dump () const
 
SkScalar getMinScale () const
 
SkScalar getMaxScale () const
 
bool getMinMaxScales (SkScalar scaleFactors[2]) const
 
bool decomposeScale (SkSize *scale, SkMatrix *remaining=nullptr) const
 
void dirtyMatrixTypeCache ()
 
void setScaleTranslate (SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty)
 
bool isFinite () const
 

Additional Inherited Members

- Public Types inherited from SkMatrix
enum  ScaleToFit { kFill_ScaleToFit , kStart_ScaleToFit , kCenter_ScaleToFit , kEnd_ScaleToFit }
 
enum  TypeMask {
  kIdentity_Mask = 0 , kTranslate_Mask = 0x01 , kScale_Mask = 0x02 , kAffine_Mask = 0x04 ,
  kPerspective_Mask = 0x08
}
 
- Static Public Member Functions inherited from SkMatrix
static SkMatrix Scale (SkScalar sx, SkScalar sy)
 
static SkMatrix Translate (SkScalar dx, SkScalar dy)
 
static SkMatrix Translate (SkVector t)
 
static SkMatrix Translate (SkIVector t)
 
static SkMatrix RotateDeg (SkScalar deg)
 
static SkMatrix RotateDeg (SkScalar deg, SkPoint pt)
 
static SkMatrix RotateRad (SkScalar rad)
 
static SkMatrix Skew (SkScalar kx, SkScalar ky)
 
static SkMatrix RectToRect (const SkRect &src, const SkRect &dst, ScaleToFit mode=kFill_ScaleToFit)
 
static SkMatrix MakeAll (SkScalar scaleX, SkScalar skewX, SkScalar transX, SkScalar skewY, SkScalar scaleY, SkScalar transY, SkScalar pers0, SkScalar pers1, SkScalar pers2)
 
static SkMatrix MakeRectToRect (const SkRect &src, const SkRect &dst, ScaleToFit stf)
 
static void SetAffineIdentity (SkScalar affine[6])
 
static const SkMatrixI ()
 
static const SkMatrixInvalidMatrix ()
 
static SkMatrix Concat (const SkMatrix &a, const SkMatrix &b)
 
- Static Public Attributes inherited from SkMatrix
static constexpr int kMScaleX = 0
 horizontal scale factor More...
 
static constexpr int kMSkewX = 1
 horizontal skew factor More...
 
static constexpr int kMTransX = 2
 horizontal translation More...
 
static constexpr int kMSkewY = 3
 vertical skew factor More...
 
static constexpr int kMScaleY = 4
 vertical scale factor More...
 
static constexpr int kMTransY = 5
 vertical translation More...
 
static constexpr int kMPersp0 = 6
 input x perspective factor More...
 
static constexpr int kMPersp1 = 7
 input y perspective factor More...
 
static constexpr int kMPersp2 = 8
 perspective bias More...
 
static constexpr int kAScaleX = 0
 horizontal scale factor More...
 
static constexpr int kASkewY = 1
 vertical skew factor More...
 
static constexpr int kASkewX = 2
 horizontal skew factor More...
 
static constexpr int kAScaleY = 3
 vertical scale factor More...
 
static constexpr int kATransX = 4
 horizontal translation More...
 
static constexpr int kATransY = 5
 vertical translation More...
 

Detailed Description

Definition at line 153 of file SkRecords.h.

Constructor & Destructor Documentation

◆ TypedMatrix() [1/2]

SkRecords::TypedMatrix::TypedMatrix ( )
inline

Definition at line 154 of file SkRecords.h.

154{}

◆ TypedMatrix() [2/2]

SkRecords::TypedMatrix::TypedMatrix ( const SkMatrix matrix)

Definition at line 16 of file SkRecords.cpp.

16 : SkMatrix(matrix) {
17 (void)this->getType();
18 }
constexpr SkMatrix()
Definition: SkMatrix.h:63
TypeMask getType() const
Definition: SkMatrix.h:207
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258

The documentation for this struct was generated from the following files: