![]() |
Flutter Engine
The Flutter Engine
|
#include <SkContourMeasure.h>
Classes | |
class | Impl |
Public Member Functions | |
SkContourMeasureIter () | |
SkContourMeasureIter (const SkPath &path, bool forceClosed, SkScalar resScale=1) | |
~SkContourMeasureIter () | |
SkContourMeasureIter (SkContourMeasureIter &&) | |
SkContourMeasureIter & | operator= (SkContourMeasureIter &&) |
void | reset (const SkPath &path, bool forceClosed, SkScalar resScale=1) |
sk_sp< SkContourMeasure > | next () |
Definition at line 96 of file SkContourMeasure.h.
SkContourMeasureIter::SkContourMeasureIter | ( | ) |
Definition at line 500 of file SkContourMeasure.cpp.
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).
Definition at line 503 of file SkContourMeasure.cpp.
SkContourMeasureIter::~SkContourMeasureIter | ( | ) |
Definition at line 508 of file SkContourMeasure.cpp.
|
default |
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 ...
Definition at line 523 of file SkContourMeasure.cpp.
|
default |
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.
Assign a new path, or null to have none.
Definition at line 515 of file SkContourMeasure.cpp.