Public Member Functions | Protected Attributes

gfxDrawable Class Reference

gfxDrawable An Interface representing something that has an intrinsic size and can draw itself repeatedly. More...

#include <gfxDrawable.h>

Inheritance diagram for gfxDrawable:
Collaboration diagram for gfxDrawable:

List of all members.

Public Member Functions

 gfxDrawable (const gfxIntSize aSize)
virtual ~gfxDrawable ()
virtual PRBool Draw (gfxContext *aContext, const gfxRect &aFillRect, PRBool aRepeat, const gfxPattern::GraphicsFilter &aFilter, const gfxMatrix &aTransform=gfxMatrix())=0
 Draw into aContext filling aFillRect, possibly repeating, using aFilter.
virtual gfxIntSize Size ()

Protected Attributes

const gfxIntSize mSize

Detailed Description

gfxDrawable An Interface representing something that has an intrinsic size and can draw itself repeatedly.


Constructor & Destructor Documentation

gfxDrawable::gfxDrawable ( const gfxIntSize  aSize  )  [inline]
virtual gfxDrawable::~gfxDrawable (  )  [inline, virtual]

Member Function Documentation

virtual PRBool gfxDrawable::Draw ( gfxContext aContext,
const gfxRect aFillRect,
PRBool  aRepeat,
const gfxPattern::GraphicsFilter aFilter,
const gfxMatrix aTransform = gfxMatrix() 
) [pure virtual]

Draw into aContext filling aFillRect, possibly repeating, using aFilter.

aTransform is a userspace to "image"space matrix. For example, if Draw draws using a gfxPattern, this is the matrix that should be set on the pattern prior to rendering it.

Returns:
whether drawing was successful

Implemented in gfxSurfaceDrawable, gfxCallbackDrawable, and gfxPatternDrawable.

virtual gfxIntSize gfxDrawable::Size (  )  [inline, virtual]

Member Data Documentation

const gfxIntSize gfxDrawable::mSize [protected]

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