SkRectShape Class Reference

#include <SkRectShape.h>

Inherits SkPaintShape.

Collaboration diagram for SkRectShape:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkRectShape ()
void setRect (const SkRect &)
void setOval (const SkRect &)
void setCircle (SkScalar x, SkScalar y, SkScalar radius)
void setRRect (const SkRect &, SkScalar rx, SkScalar ry)
virtual Factory getFactory ()
virtual void flatten (SkFlattenableWriteBuffer &)

Static Public Member Functions

static SkFlattenableCreateProc (SkFlattenableReadBuffer &)

Protected Member Functions

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

Detailed Description

Definition at line 27 of file SkRectShape.h.


Constructor & Destructor Documentation

SkRectShape::SkRectShape (  ) 
SkRectShape::SkRectShape ( SkFlattenableReadBuffer  )  [protected]

Member Function Documentation

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

Reimplemented from SkShape.

virtual void SkRectShape::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 SkPaintShape.

virtual Factory SkRectShape::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().

Reimplemented from SkShape.

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

Reimplemented from SkShape.

void SkRectShape::setCircle ( SkScalar  x,
SkScalar  y,
SkScalar  radius 
)
void SkRectShape::setOval ( const SkRect  ) 
void SkRectShape::setRect ( const SkRect  ) 
void SkRectShape::setRRect ( const SkRect ,
SkScalar  rx,
SkScalar  ry 
)

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