Skia
2D Graphics Library
|
#include <SkPath.h>
Public Member Functions | |
RawIter () | |
Initializes RawIter with an empty SkPath. More... | |
RawIter (const SkPath &path) | |
Sets RawIter to return elements of verb array, SkPoint array, and conic weight in path. More... | |
void | setPath (const SkPath &) |
Sets SkPath::Iter to return elements of verb array, SkPoint array, and conic weight in path. More... | |
Verb | next (SkPoint[4]) |
Returns next SkPath::Verb in verb array, and advances RawIter. More... | |
Verb | peek () const |
Returns next SkPath::Verb, but does not advance RawIter. More... | |
SkScalar | conicWeight () const |
Returns conic weight if next() returned kConic_Verb. More... | |
Friends | |
class | SkPath |
Use Iter instead.
This class will soon be removed and RangeIter will be made private.
|
inline |
|
inline |
|
inline |
Verb SkPath::RawIter::next | ( | SkPoint | [4] | ) |
Returns next SkPath::Verb in verb array, and advances RawIter.
When verb array is exhausted, returns kDone_Verb. Zero to four SkPoint are stored in pts, depending on the returned SkPath::Verb.
pts | storage for SkPoint data describing returned SkPath::Verb |
|
inline |
Returns next SkPath::Verb, but does not advance RawIter.
void SkPath::RawIter::setPath | ( | const SkPath & | ) |
Sets SkPath::Iter to return elements of verb array, SkPoint array, and conic weight in path.
path | SkPath to iterate |
|
friend |