Public Member Functions | Protected Attributes

gfxSurfaceDrawable Class Reference

gfxSurfaceDrawable A convenience implementation of gfxDrawable for surfaces. More...

#include <gfxDrawable.h>

Inheritance diagram for gfxSurfaceDrawable:
Collaboration diagram for gfxSurfaceDrawable:

List of all members.

Public Member Functions

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

Protected Attributes

nsRefPtr< gfxASurfacemSurface
const gfxMatrix mTransform

Detailed Description

gfxSurfaceDrawable A convenience implementation of gfxDrawable for surfaces.


Constructor & Destructor Documentation

gfxSurfaceDrawable::gfxSurfaceDrawable ( gfxASurface aSurface,
const gfxIntSize  aSize,
const gfxMatrix  aTransform = gfxMatrix() 
)
virtual gfxSurfaceDrawable::~gfxSurfaceDrawable (  )  [inline, virtual]

Member Function Documentation

virtual PRBool gfxSurfaceDrawable::Draw ( gfxContext aContext,
const gfxRect aFillRect,
PRBool  aRepeat,
const gfxPattern::GraphicsFilter aFilter,
const gfxMatrix aTransform = gfxMatrix() 
) [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

Implements gfxDrawable.


Member Data Documentation


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