#include <SkCullPoints.h>
Public Types | |
enum | LineToResult { kNo_Result, kLineTo_Result, kMoveToLineTo_Result } |
Public Member Functions | |
SkCullPoints () | |
SkCullPoints (const SkIRect &r) | |
void | reset (const SkIRect &r) |
void | moveTo (int x, int y) |
LineToResult | lineTo (int x, int y, SkIPoint pts[2]) |
Definition at line 22 of file SkCullPoints.h.
kNo_Result |
line segment was completely clipped out |
kLineTo_Result |
path.lineTo(pts[1]); |
kMoveToLineTo_Result |
path.moveTo(pts[0]); path.lineTo(pts[1]); |
Definition at line 33 of file SkCullPoints.h.
SkCullPoints::SkCullPoints | ( | ) |
SkCullPoints::SkCullPoints | ( | const SkIRect & | r | ) |
LineToResult SkCullPoints::lineTo | ( | int | x, | |
int | y, | |||
SkIPoint | pts[2] | |||
) |
Connect a line to the previous call to lineTo (or moveTo).
void SkCullPoints::moveTo | ( | int | x, | |
int | y | |||
) |
Start a contour at (x,y). Follow this with call(s) to lineTo(...)
void SkCullPoints::reset | ( | const SkIRect & | r | ) |