Public Member Functions | Protected Member Functions | Protected Attributes

gfxCallbackDrawable Class Reference

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

#include <gfxDrawable.h>

Inheritance diagram for gfxCallbackDrawable:
Collaboration diagram for gfxCallbackDrawable:

List of all members.

Public Member Functions

 gfxCallbackDrawable (gfxDrawingCallback *aCallback, const gfxIntSize aSize)
virtual ~gfxCallbackDrawable ()
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 Member Functions

already_AddRefed
< gfxSurfaceDrawable
MakeSurfaceDrawable (const gfxPattern::GraphicsFilter aFilter=gfxPattern::FILTER_FAST)

Protected Attributes

nsRefPtr< gfxDrawingCallbackmCallback
nsRefPtr< gfxSurfaceDrawablemSurfaceDrawable

Detailed Description

gfxSurfaceDrawable A convenience implementation of gfxDrawable for callbacks.


Constructor & Destructor Documentation

gfxCallbackDrawable::gfxCallbackDrawable ( gfxDrawingCallback aCallback,
const gfxIntSize  aSize 
)
virtual gfxCallbackDrawable::~gfxCallbackDrawable (  )  [inline, virtual]

Member Function Documentation

virtual PRBool gfxCallbackDrawable::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.

already_AddRefed<gfxSurfaceDrawable> gfxCallbackDrawable::MakeSurfaceDrawable ( const gfxPattern::GraphicsFilter  aFilter = gfxPattern::FILTER_FAST  )  [protected]

Member Data Documentation


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