SkPath::Iter Class Reference
#include <SkPath.h>
List of all members.
Detailed Description
Iterate through all of the segments (lines, quadratics, cubics) of each contours in a path.
Definition at line 505 of file SkPath.h.
Constructor & Destructor Documentation
SkPath::Iter::Iter |
( |
const SkPath & |
, |
|
|
bool |
forceClose | |
|
) |
| | |
Member Function Documentation
bool SkPath::Iter::isClosedContour |
( |
|
) |
const |
Returns true if the current contour is closed (has a kClose_Verb)
- Returns:
- true if the current contour is closed (has a kClose_Verb)
bool SkPath::Iter::isCloseLine |
( |
|
) |
const [inline] |
If next() returns kLine_Verb, then this query returns true if the line was the result of a close() command (i.e. the end point is the initial moveto for this contour). If next() returned a different verb, this returns an undefined value.
- Returns:
- If the last call to next() returned kLine_Verb, return true if it was the result of an explicit close command.
Definition at line 528 of file SkPath.h.
Return the next verb in this iteration of the path. When all segments have been visited, return kDone_Verb.
- Parameters:
-
| pts | The points representing the current verb and/or segment |
- Returns:
- The verb for the current segment
void SkPath::Iter::setPath |
( |
const SkPath & |
, |
|
|
bool |
forceClose | |
|
) |
| | |
The documentation for this class was generated from the following file: