SkDraw Class Reference

#include <SkDraw.h>

Collaboration diagram for SkDraw:
Collaboration graph
[legend]

List of all members.

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 SkBitmapfBitmap
const SkMatrixfMatrix
const SkRegionfClip
SkDevicefDevice
SkBounderfBounder
SkDrawProcs * fProcs

Detailed Description

Definition at line 34 of file SkDraw.h.


Constructor & Destructor Documentation

SkDraw::SkDraw (  )  [inline]

Definition at line 36 of file SkDraw.h.

SkDraw::SkDraw ( const SkDraw src  ) 

Member Function Documentation

void SkDraw::drawBitmap ( const SkBitmap ,
const SkMatrix ,
const SkPaint  
) const
void SkDraw::drawPaint ( const SkPaint  )  const
void SkDraw::drawPath ( const SkPath src,
const SkPaint paint 
) const [inline]

Definition at line 63 of file SkDraw.h.

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::drawRect ( const SkRect ,
const SkPaint  
) const
void SkDraw::drawSprite ( const SkBitmap ,
int  x,
int  y,
const SkPaint  
) 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

Member Data Documentation

Definition at line 83 of file SkDraw.h.

Definition at line 87 of file SkDraw.h.

Definition at line 85 of file SkDraw.h.

Definition at line 86 of file SkDraw.h.

Definition at line 84 of file SkDraw.h.

SkDrawProcs* SkDraw::fProcs

Definition at line 88 of file SkDraw.h.


The documentation for this class was generated from the following file:

Generated on Tue Oct 20 11:03:42 2009 for Skia by  doxygen 1.6.1