Skia
2D Graphics Library
|
#include <SkContourMeasure.h>
Public Member Functions | |
SkContourMeasureIter () | |
SkContourMeasureIter (const SkPath &path, bool forceClosed, SkScalar resScale=1) | |
Initialize the Iter with a path. More... | |
~SkContourMeasureIter () | |
SkContourMeasureIter (SkContourMeasureIter &&) | |
SkContourMeasureIter & | operator= (SkContourMeasureIter &&) |
void | reset (const SkPath &path, bool forceClosed, SkScalar resScale=1) |
Reset the Iter with a path. More... | |
sk_sp< SkContourMeasure > | next () |
Iterates through contours in path, returning a contour-measure object for each contour in the path. More... | |
SkContourMeasureIter::SkContourMeasureIter | ( | ) |
SkContourMeasureIter::SkContourMeasureIter | ( | const SkPath & | path, |
bool | forceClosed, | ||
SkScalar | resScale = 1 |
||
) |
Initialize the Iter with a path.
The parts of the path that are needed are copied, so the client is free to modify/delete the path after this call.
resScale controls the precision of the measure. values > 1 increase the precision (and possibly slow down the computation).
SkContourMeasureIter::~SkContourMeasureIter | ( | ) |
SkContourMeasureIter::SkContourMeasureIter | ( | SkContourMeasureIter && | ) |
sk_sp<SkContourMeasure> SkContourMeasureIter::next | ( | ) |
Iterates through contours in path, returning a contour-measure object for each contour in the path.
Returns null when it is done.
This only returns non-zero length contours, where a contour is the segments between a kMove_Verb and either ...
SkContourMeasureIter& SkContourMeasureIter::operator= | ( | SkContourMeasureIter && | ) |
Reset the Iter with a path.
The parts of the path that are needed are copied, so the client is free to modify/delete the path after this call.