SkShape Class Reference

#include <SkShape.h>

Inherits SkFlattenable.

Inherited by SkGroupShape, and SkPaintShape.

Collaboration diagram for SkShape:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkShape ()
virtual ~SkShape ()
void draw (SkCanvas *)
void drawXY (SkCanvas *, SkScalar dx, SkScalar dy)
void drawMatrix (SkCanvas *, const SkMatrix &)
virtual Factory getFactory ()
virtual void flatten (SkFlattenableWriteBuffer &)

Static Public Member Functions

static SkFlattenableCreateProc (SkFlattenableReadBuffer &)

Protected Member Functions

virtual void onDraw (SkCanvas *)
 SkShape (SkFlattenableReadBuffer &)

Detailed Description

Definition at line 10 of file SkShape.h.


Constructor & Destructor Documentation

SkShape::SkShape (  ) 
virtual SkShape::~SkShape (  )  [virtual]
SkShape::SkShape ( SkFlattenableReadBuffer  )  [protected]

Member Function Documentation

static SkFlattenable* SkShape::CreateProc ( SkFlattenableReadBuffer  )  [static]

Reimplemented in SkGroupShape, and SkRectShape.

void SkShape::draw ( SkCanvas  ) 
void SkShape::drawMatrix ( SkCanvas ,
const SkMatrix  
)

Draw the shape with the specified matrix, applied before the shape's matrix (if any).

void SkShape::drawXY ( SkCanvas ,
SkScalar  dx,
SkScalar  dy 
)

Draw the shape translated by (dx,dy), which is applied before the shape's matrix (if any).

virtual void SkShape::flatten ( SkFlattenableWriteBuffer  )  [virtual]

Override this to write data specific to your subclass into the buffer, being sure to call your super-class' version first. This data will later be passed to your Factory function, returned by getFactory().

Reimplemented from SkFlattenable.

Reimplemented in SkGroupShape, SkPaintShape, and SkRectShape.

virtual Factory SkShape::getFactory (  )  [virtual]

Implement this to return a factory function pointer that can be called to recreate your class given a buffer (previously written to by your override of flatten().

Implements SkFlattenable.

Reimplemented in SkGroupShape, and SkRectShape.

virtual void SkShape::onDraw ( SkCanvas  )  [protected, virtual]

Reimplemented in SkGroupShape, and SkRectShape.


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