#include <SkShape.h>
Inherits SkFlattenable.
Inherited by SkGroupShape, and SkPaintShape.
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 SkFlattenable * | CreateProc (SkFlattenableReadBuffer &) |
Protected Member Functions | |
virtual void | onDraw (SkCanvas *) |
SkShape (SkFlattenableReadBuffer &) |
Definition at line 10 of file SkShape.h.
SkShape::SkShape | ( | ) |
virtual SkShape::~SkShape | ( | ) | [virtual] |
SkShape::SkShape | ( | SkFlattenableReadBuffer & | ) | [protected] |
static SkFlattenable* SkShape::CreateProc | ( | SkFlattenableReadBuffer & | ) | [static] |
Reimplemented in SkGroupShape, and SkRectShape.
void SkShape::draw | ( | SkCanvas * | ) |
Draw the shape with the specified matrix, applied before the shape's matrix (if any).
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.