Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SkRecords::PreCachedPath Struct Reference

#include <SkRecords.h>

Inheritance diagram for SkRecords::PreCachedPath:
SkPath

Public Member Functions

 PreCachedPath ()
 
 PreCachedPath (const SkPath &path)
 
- Public Member Functions inherited from SkPath
 SkPath ()
 
 SkPath (const SkPath &path)
 
 ~SkPath ()
 
SkPath snapshot () const
 
SkPath detach ()
 
SkPathoperator= (const SkPath &path)
 
bool isInterpolatable (const SkPath &compare) const
 
bool interpolate (const SkPath &ending, SkScalar weight, SkPath *out) const
 
SkPathFillType getFillType () const
 
void setFillType (SkPathFillType ft)
 
bool isInverseFillType () const
 
void toggleInverseFillType ()
 
bool isConvex () const
 
bool isOval (SkRect *bounds) const
 
bool isRRect (SkRRect *rrect) const
 
bool isArc (SkArc *arc) const
 
SkPathreset ()
 
SkPathrewind ()
 
bool isEmpty () const
 
bool isLastContourClosed () const
 
bool isFinite () const
 
bool isVolatile () const
 
SkPathsetIsVolatile (bool isVolatile)
 
bool isLine (SkPoint line[2]) const
 
int countPoints () const
 
SkPoint getPoint (int index) const
 
int getPoints (SkPoint points[], int max) const
 
int countVerbs () const
 
int getVerbs (uint8_t verbs[], int max) const
 
size_t approximateBytesUsed () const
 
void swap (SkPath &other)
 
const SkRectgetBounds () const
 
void updateBoundsCache () const
 
SkRect computeTightBounds () const
 
bool conservativelyContainsRect (const SkRect &rect) const
 
void incReserve (int extraPtCount, int extraVerbCount=0, int extraConicCount=0)
 
SkPathmoveTo (SkScalar x, SkScalar y)
 
SkPathmoveTo (const SkPoint &p)
 
SkPathrMoveTo (SkScalar dx, SkScalar dy)
 
SkPathlineTo (SkScalar x, SkScalar y)
 
SkPathlineTo (const SkPoint &p)
 
SkPathrLineTo (SkScalar dx, SkScalar dy)
 
SkPathquadTo (SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2)
 
SkPathquadTo (const SkPoint &p1, const SkPoint &p2)
 
SkPathrQuadTo (SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2)
 
SkPathconicTo (SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar w)
 
SkPathconicTo (const SkPoint &p1, const SkPoint &p2, SkScalar w)
 
SkPathrConicTo (SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2, SkScalar w)
 
SkPathcubicTo (SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
 
SkPathcubicTo (const SkPoint &p1, const SkPoint &p2, const SkPoint &p3)
 
SkPathrCubicTo (SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2, SkScalar dx3, SkScalar dy3)
 
SkPatharcTo (const SkRect &oval, SkScalar startAngle, SkScalar sweepAngle, bool forceMoveTo)
 
SkPatharcTo (SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar radius)
 
SkPatharcTo (const SkPoint p1, const SkPoint p2, SkScalar radius)
 
SkPatharcTo (SkScalar rx, SkScalar ry, SkScalar xAxisRotate, ArcSize largeArc, SkPathDirection sweep, SkScalar x, SkScalar y)
 
SkPatharcTo (const SkPoint r, SkScalar xAxisRotate, ArcSize largeArc, SkPathDirection sweep, const SkPoint xy)
 
SkPathrArcTo (SkScalar rx, SkScalar ry, SkScalar xAxisRotate, ArcSize largeArc, SkPathDirection sweep, SkScalar dx, SkScalar dy)
 
SkPathclose ()
 
bool isRect (SkRect *rect, bool *isClosed=nullptr, SkPathDirection *direction=nullptr) const
 
SkPathaddRect (const SkRect &rect, SkPathDirection dir, unsigned start)
 
SkPathaddRect (const SkRect &rect, SkPathDirection dir=SkPathDirection::kCW)
 
SkPathaddRect (SkScalar left, SkScalar top, SkScalar right, SkScalar bottom, SkPathDirection dir=SkPathDirection::kCW)
 
SkPathaddOval (const SkRect &oval, SkPathDirection dir=SkPathDirection::kCW)
 
SkPathaddOval (const SkRect &oval, SkPathDirection dir, unsigned start)
 
SkPathaddCircle (SkScalar x, SkScalar y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
 
SkPathaddArc (const SkRect &oval, SkScalar startAngle, SkScalar sweepAngle)
 
SkPathaddRoundRect (const SkRect &rect, SkScalar rx, SkScalar ry, SkPathDirection dir=SkPathDirection::kCW)
 
SkPathaddRoundRect (const SkRect &rect, const SkScalar radii[], SkPathDirection dir=SkPathDirection::kCW)
 
SkPathaddRRect (const SkRRect &rrect, SkPathDirection dir=SkPathDirection::kCW)
 
SkPathaddRRect (const SkRRect &rrect, SkPathDirection dir, unsigned start)
 
SkPathaddPoly (const SkPoint pts[], int count, bool close)
 
SkPathaddPoly (const std::initializer_list< SkPoint > &list, bool close)
 
SkPathaddPath (const SkPath &src, SkScalar dx, SkScalar dy, AddPathMode mode=kAppend_AddPathMode)
 
SkPathaddPath (const SkPath &src, AddPathMode mode=kAppend_AddPathMode)
 
SkPathaddPath (const SkPath &src, const SkMatrix &matrix, AddPathMode mode=kAppend_AddPathMode)
 
SkPathreverseAddPath (const SkPath &src)
 
void offset (SkScalar dx, SkScalar dy, SkPath *dst) const
 
SkPathoffset (SkScalar dx, SkScalar dy)
 
void transform (const SkMatrix &matrix, SkPath *dst, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
 
SkPathtransform (const SkMatrix &matrix, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes)
 
SkPath makeTransform (const SkMatrix &m, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
 
SkPath makeScale (SkScalar sx, SkScalar sy)
 
bool getLastPt (SkPoint *lastPt) const
 
void setLastPt (SkScalar x, SkScalar y)
 
void setLastPt (const SkPoint &p)
 
uint32_t getSegmentMasks () const
 
bool contains (SkScalar x, SkScalar y) const
 
void dump (SkWStream *stream, bool dumpAsHex) const
 
void dump () const
 
void dumpHex () const
 
void dumpArrays (SkWStream *stream, bool dumpAsHex) const
 
void dumpArrays () const
 
size_t writeToMemory (void *buffer) const
 
sk_sp< SkDataserialize () const
 
size_t readFromMemory (const void *buffer, size_t length)
 
uint32_t getGenerationID () const
 
bool isValid () const
 

Additional Inherited Members

- Public Types inherited from SkPath
enum  ArcSize { kSmall_ArcSize , kLarge_ArcSize }
 
enum  AddPathMode { kAppend_AddPathMode , kExtend_AddPathMode }
 
enum  SegmentMask { kLine_SegmentMask = kLine_SkPathSegmentMask , kQuad_SegmentMask = kQuad_SkPathSegmentMask , kConic_SegmentMask = kConic_SkPathSegmentMask , kCubic_SegmentMask = kCubic_SkPathSegmentMask }
 
enum  Verb {
  kMove_Verb = static_cast<int>(SkPathVerb::kMove) , kLine_Verb = static_cast<int>(SkPathVerb::kLine) , kQuad_Verb = static_cast<int>(SkPathVerb::kQuad) , kConic_Verb = static_cast<int>(SkPathVerb::kConic) ,
  kCubic_Verb = static_cast<int>(SkPathVerb::kCubic) , kClose_Verb = static_cast<int>(SkPathVerb::kClose) , kDone_Verb = kClose_Verb + 1
}
 
using sk_is_trivially_relocatable = std::true_type
 
- Static Public Member Functions inherited from SkPath
static SkPath Make (const SkPoint[], int pointCount, const uint8_t[], int verbCount, const SkScalar[], int conicWeightCount, SkPathFillType, bool isVolatile=false)
 
static SkPath Rect (const SkRect &, SkPathDirection=SkPathDirection::kCW, unsigned startIndex=0)
 
static SkPath Oval (const SkRect &, SkPathDirection=SkPathDirection::kCW)
 
static SkPath Oval (const SkRect &, SkPathDirection, unsigned startIndex)
 
static SkPath Circle (SkScalar center_x, SkScalar center_y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
 
static SkPath RRect (const SkRRect &, SkPathDirection dir=SkPathDirection::kCW)
 
static SkPath RRect (const SkRRect &, SkPathDirection, unsigned startIndex)
 
static SkPath RRect (const SkRect &bounds, SkScalar rx, SkScalar ry, SkPathDirection dir=SkPathDirection::kCW)
 
static SkPath Polygon (const SkPoint pts[], int count, bool isClosed, SkPathFillType=SkPathFillType::kWinding, bool isVolatile=false)
 
static SkPath Polygon (const std::initializer_list< SkPoint > &list, bool isClosed, SkPathFillType fillType=SkPathFillType::kWinding, bool isVolatile=false)
 
static SkPath Line (const SkPoint a, const SkPoint b)
 
static bool IsLineDegenerate (const SkPoint &p1, const SkPoint &p2, bool exact)
 
static bool IsQuadDegenerate (const SkPoint &p1, const SkPoint &p2, const SkPoint &p3, bool exact)
 
static bool IsCubicDegenerate (const SkPoint &p1, const SkPoint &p2, const SkPoint &p3, const SkPoint &p4, bool exact)
 
static int ConvertConicToQuads (const SkPoint &p0, const SkPoint &p1, const SkPoint &p2, SkScalar w, SkPoint pts[], int pow2)
 

Detailed Description

Definition at line 146 of file SkRecords.h.

Constructor & Destructor Documentation

◆ PreCachedPath() [1/2]

SkRecords::PreCachedPath::PreCachedPath ( )
inline

Definition at line 147 of file SkRecords.h.

147{}

◆ PreCachedPath() [2/2]

SkRecords::PreCachedPath::PreCachedPath ( const SkPath path)

Definition at line 11 of file SkRecords.cpp.

11 : SkPath(path) {
12 this->updateBoundsCache();
13 (void)this->getGenerationID();
14 }
uint32_t getGenerationID() const
Definition SkPath.cpp:356
SkPath()
Definition SkPath.cpp:154
void updateBoundsCache() const
Definition SkPath.h:524

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