Flutter Engine
The Flutter Engine
|
#include <SkPathRef.h>
Public Member Functions | |
Editor (sk_sp< SkPathRef > *pathRef, int incReserveVerbs=0, int incReservePoints=0, int incReserveConics=0) | |
~Editor () | |
SkPoint * | writablePoints () |
const SkPoint * | points () const |
SkPoint * | atPoint (int i) |
const SkPoint * | atPoint (int i) const |
SkPoint * | growForVerb (int verb, SkScalar weight=0) |
SkPoint * | growForRepeatedVerb (int verb, int numVbs, SkScalar **weights=nullptr) |
std::tuple< SkPoint *, SkScalar * > | growForVerbsInPath (const SkPathRef &path) |
void | resetToSize (int newVerbCnt, int newPointCnt, int newConicCount) |
SkPathRef * | pathRef () |
void | setIsOval (bool isCCW, unsigned start, bool isClosed) |
void | setIsRRect (bool isCCW, unsigned start) |
void | setIsArc (const SkArc &arc) |
void | setBounds (const SkRect &rect) |
Definition at line 93 of file SkPathRef.h.
SkPathRef::Editor::Editor | ( | sk_sp< SkPathRef > * | pathRef, |
int | incReserveVerbs = 0 , |
||
int | incReservePoints = 0 , |
||
int | incReserveConics = 0 |
||
) |
Definition at line 27 of file SkPathRef.cpp.
|
inline |
Definition at line 100 of file SkPathRef.h.
Definition at line 112 of file SkPathRef.h.
|
inline |
Allocates space for multiple instances of a particular verb and the requisite points & weights. The return pointer points at the first new point (indexed normally []). If 'verb' is kConic_Verb, 'weights' will return a pointer to the space for the conic weights (indexed normally).
Definition at line 131 of file SkPathRef.h.
Adds the verb and allocates space for the number of points indicated by the verb. The return value is a pointer to where the points for the verb should be written. 'weight' is only used if 'verb' is kConic_Verb
Definition at line 119 of file SkPathRef.h.
|
inline |
Concatenates all verbs from 'path' onto the pathRef's verbs array. Increases the point count by the number of points in 'path', and the conic weight count by the number of conics in 'path'.
Returns pointers to the uninitialized points and conic weights data.
Definition at line 144 of file SkPathRef.h.
|
inline |
Gets the path ref that is wrapped in the Editor.
Definition at line 159 of file SkPathRef.h.
|
inline |
Definition at line 106 of file SkPathRef.h.
Resets the path ref to a new verb and point count. The new verbs and points are uninitialized.
Definition at line 152 of file SkPathRef.h.
|
inline |
Definition at line 173 of file SkPathRef.h.
|
inline |
Definition at line 169 of file SkPathRef.h.
|
inline |
Definition at line 161 of file SkPathRef.h.
|
inline |
Definition at line 165 of file SkPathRef.h.
|
inline |
Returns the array of points.
Definition at line 105 of file SkPathRef.h.