#include <SkDraw.h>
Public Member Functions | |
SkDraw () | |
SkDraw (const SkDraw &src) | |
void | drawPaint (const SkPaint &) const |
void | drawPoints (SkCanvas::PointMode, size_t count, const SkPoint[], const SkPaint &) const |
void | drawRect (const SkRect &, const SkPaint &) const |
void | drawPath (const SkPath &srcPath, const SkPaint &, const SkMatrix *prePathMatrix, bool pathIsMutable) const |
void | drawBitmap (const SkBitmap &, const SkMatrix &, const SkPaint &) const |
void | drawSprite (const SkBitmap &, int x, int y, const SkPaint &) const |
void | drawText (const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkPaint &paint) const |
void | drawPosText (const char text[], size_t byteLength, const SkScalar pos[], SkScalar constY, int scalarsPerPosition, const SkPaint &paint) const |
void | drawTextOnPath (const char text[], size_t byteLength, const SkPath &, const SkMatrix *, const SkPaint &) const |
void | drawVertices (SkCanvas::VertexMode mode, int count, const SkPoint vertices[], const SkPoint textures[], const SkColor colors[], SkXfermode *xmode, const uint16_t indices[], int ptCount, const SkPaint &paint) const |
void | drawPath (const SkPath &src, const SkPaint &paint) const |
Static Public Member Functions | |
static bool | DrawToMask (const SkPath &devPath, const SkIRect *clipBounds, SkMaskFilter *filter, const SkMatrix *filterMatrix, SkMask *mask, SkMask::CreateMode mode) |
Public Attributes | |
const SkBitmap * | fBitmap |
const SkMatrix * | fMatrix |
const SkRegion * | fClip |
SkDevice * | fDevice |
SkBounder * | fBounder |
SkDrawProcs * | fProcs |
Definition at line 34 of file SkDraw.h.
SkDraw::SkDraw | ( | const SkDraw & | src | ) |
void SkDraw::drawPaint | ( | const SkPaint & | ) | const |
void SkDraw::drawPath | ( | const SkPath & | srcPath, | |
const SkPaint & | , | |||
const SkMatrix * | prePathMatrix, | |||
bool | pathIsMutable | |||
) | const |
void SkDraw::drawPoints | ( | SkCanvas::PointMode | , | |
size_t | count, | |||
const | SkPoint[], | |||
const SkPaint & | ||||
) | const |
void SkDraw::drawPosText | ( | const char | text[], | |
size_t | byteLength, | |||
const SkScalar | pos[], | |||
SkScalar | constY, | |||
int | scalarsPerPosition, | |||
const SkPaint & | paint | |||
) | const |
void SkDraw::drawText | ( | const char | text[], | |
size_t | byteLength, | |||
SkScalar | x, | |||
SkScalar | y, | |||
const SkPaint & | paint | |||
) | const |
void SkDraw::drawTextOnPath | ( | const char | text[], | |
size_t | byteLength, | |||
const SkPath & | , | |||
const SkMatrix * | , | |||
const SkPaint & | ||||
) | const |
static bool SkDraw::DrawToMask | ( | const SkPath & | devPath, | |
const SkIRect * | clipBounds, | |||
SkMaskFilter * | filter, | |||
const SkMatrix * | filterMatrix, | |||
SkMask * | mask, | |||
SkMask::CreateMode | mode | |||
) | [static] |
Helper function that creates a mask from a path and an optional maskfilter. Note however, that the resulting mask will not have been actually filtered, that must be done afterwards (by calling filterMask). The maskfilter is provided solely to assist in computing the mask's bounds (if the mode requests that).
void SkDraw::drawVertices | ( | SkCanvas::VertexMode | mode, | |
int | count, | |||
const SkPoint | vertices[], | |||
const SkPoint | textures[], | |||
const SkColor | colors[], | |||
SkXfermode * | xmode, | |||
const uint16_t | indices[], | |||
int | ptCount, | |||
const SkPaint & | paint | |||
) | const |
const SkBitmap* SkDraw::fBitmap |
const SkRegion* SkDraw::fClip |
const SkMatrix* SkDraw::fMatrix |
SkDrawProcs* SkDraw::fProcs |