Public Member Functions | Protected Member Functions | Protected Attributes

gfxPatternDrawable Class Reference

gfxPatternDrawable A convenience implementation of gfxDrawable for patterns. More...

#include <gfxDrawable.h>

Inheritance diagram for gfxPatternDrawable:
Collaboration diagram for gfxPatternDrawable:

List of all members.

Public Member Functions

 gfxPatternDrawable (gfxPattern *aPattern, const gfxIntSize aSize)
virtual ~gfxPatternDrawable ()
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
< gfxCallbackDrawable
MakeCallbackDrawable ()

Protected Attributes

nsRefPtr< gfxPatternmPattern

Detailed Description

gfxPatternDrawable A convenience implementation of gfxDrawable for patterns.


Constructor & Destructor Documentation

gfxPatternDrawable::gfxPatternDrawable ( gfxPattern aPattern,
const gfxIntSize  aSize 
)
virtual gfxPatternDrawable::~gfxPatternDrawable (  )  [inline, virtual]

Member Function Documentation

virtual PRBool gfxPatternDrawable::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<gfxCallbackDrawable> gfxPatternDrawable::MakeCallbackDrawable (  )  [protected]

Member Data Documentation


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