Public Types | Public Member Functions | Protected Attributes

gfxPattern Class Reference

#include <gfxPattern.h>

List of all members.

Public Types

enum  GraphicsExtend {
  EXTEND_NONE, EXTEND_REPEAT, EXTEND_REFLECT, EXTEND_PAD,
  EXTEND_PAD_EDGE = 1000
}
enum  GraphicsPatternType { PATTERN_SOLID, PATTERN_SURFACE, PATTERN_LINEAR, PATTERN_RADIAL }
enum  GraphicsFilter {
  FILTER_FAST, FILTER_GOOD, FILTER_BEST, FILTER_NEAREST,
  FILTER_BILINEAR, FILTER_GAUSSIAN
}

Public Member Functions

 gfxPattern (cairo_pattern_t *aPattern)
 gfxPattern (const gfxRGBA &aColor)
 gfxPattern (gfxASurface *surface)
 gfxPattern (gfxFloat x0, gfxFloat y0, gfxFloat x1, gfxFloat y1)
 gfxPattern (gfxFloat cx0, gfxFloat cy0, gfxFloat radius0, gfxFloat cx1, gfxFloat cy1, gfxFloat radius1)
virtual ~gfxPattern ()
cairo_pattern_tCairoPattern ()
void AddColorStop (gfxFloat offset, const gfxRGBA &c)
void SetMatrix (const gfxMatrix &matrix)
gfxMatrix GetMatrix () const
void SetExtend (GraphicsExtend extend)
GraphicsExtend Extend () const
GraphicsPatternType GetType () const
int CairoStatus ()
void SetFilter (GraphicsFilter filter)
GraphicsFilter Filter () const
PRBool GetSolidColor (gfxRGBA &aColor)
already_AddRefed< gfxASurfaceGetSurface ()

Protected Attributes

cairo_pattern_tmPattern

Member Enumeration Documentation

Enumerator:
EXTEND_NONE 
EXTEND_REPEAT 
EXTEND_REFLECT 
EXTEND_PAD 
EXTEND_PAD_EDGE 
Enumerator:
FILTER_FAST 
FILTER_GOOD 
FILTER_BEST 
FILTER_NEAREST 
FILTER_BILINEAR 
FILTER_GAUSSIAN 
Enumerator:
PATTERN_SOLID 
PATTERN_SURFACE 
PATTERN_LINEAR 
PATTERN_RADIAL 

Constructor & Destructor Documentation

gfxPattern::gfxPattern ( cairo_pattern_t aPattern  ) 
gfxPattern::gfxPattern ( const gfxRGBA aColor  ) 
gfxPattern::gfxPattern ( gfxASurface surface  ) 
gfxPattern::gfxPattern ( gfxFloat  x0,
gfxFloat  y0,
gfxFloat  x1,
gfxFloat  y1 
)
gfxPattern::gfxPattern ( gfxFloat  cx0,
gfxFloat  cy0,
gfxFloat  radius0,
gfxFloat  cx1,
gfxFloat  cy1,
gfxFloat  radius1 
)
virtual gfxPattern::~gfxPattern (  )  [virtual]

Member Function Documentation

void gfxPattern::AddColorStop ( gfxFloat  offset,
const gfxRGBA c 
)
cairo_pattern_t* gfxPattern::CairoPattern (  ) 
int gfxPattern::CairoStatus (  ) 
GraphicsExtend gfxPattern::Extend (  )  const
GraphicsFilter gfxPattern::Filter (  )  const
gfxMatrix gfxPattern::GetMatrix (  )  const
PRBool gfxPattern::GetSolidColor ( gfxRGBA aColor  ) 
already_AddRefed<gfxASurface> gfxPattern::GetSurface (  ) 
GraphicsPatternType gfxPattern::GetType (  )  const
void gfxPattern::SetExtend ( GraphicsExtend  extend  ) 
void gfxPattern::SetFilter ( GraphicsFilter  filter  ) 
void gfxPattern::SetMatrix ( const gfxMatrix matrix  ) 

Member Data Documentation


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