papyrus logo

Papyrus::RadialGradient Class Reference

Radial gradients. More...

#include <radialgradient.h>

Inheritance diagram for Papyrus::RadialGradient:
Inheritance graph
[legend]

List of all members.

Classes

struct  Circle

Public Member Functions

 PAPYRUS_RENDERABLE (RadialGradient)
virtual ~RadialGradient ()
const Circleouter_circle () const
void set_outer_circle (const Circle &outer)
const Circleinner_circle () const
void set_inner_circle (const Circle &inner)
void set_circles (const Circle &outer, const Circle &inner)
virtual void render (Context &cairo) const

Static Public Member Functions

static pointer create (double ox, double oy, double orad, Quantity q=ABSOLUTE)
static pointer create (const Circle &outer)
static pointer create (const Circle &outer, const Circle &inner)

Protected Member Functions

 RadialGradient (const Circle &outer, const Circle &inner)

Protected Attributes

Circle m_outer_circle
Circle m_inner_circle

Detailed Description

Radial gradients.

This is similar to the cairo radial gradient class. However, several items have been added to support SVG style gradients.

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Constructor & Destructor Documentation

Papyrus::RadialGradient::RadialGradient ( const Circle outer,
const Circle inner 
) [protected]

Referenced by create().

Papyrus::RadialGradient::~RadialGradient (  )  [virtual]

Member Function Documentation

RadialGradient::pointer Papyrus::RadialGradient::create ( const Circle outer,
const Circle inner 
) [static]

References RadialGradient().

RadialGradient::pointer Papyrus::RadialGradient::create ( const Circle outer  )  [static]

References RadialGradient().

RadialGradient::pointer Papyrus::RadialGradient::create ( double  ox,
double  oy,
double  orad,
Quantity  q = ABSOLUTE 
) [static]

References RadialGradient().

Referenced by render().

const RadialGradient::Circle & Papyrus::RadialGradient::inner_circle (  )  const

References m_inner_circle.

const RadialGradient::Circle & Papyrus::RadialGradient::outer_circle (  )  const

References m_outer_circle.

Papyrus::RadialGradient::PAPYRUS_RENDERABLE ( RadialGradient   ) 
void Papyrus::RadialGradient::render ( Context cairo  )  const [virtual]
void Papyrus::RadialGradient::set_circles ( const Circle outer,
const Circle inner 
)
void Papyrus::RadialGradient::set_inner_circle ( const Circle inner  ) 
void Papyrus::RadialGradient::set_outer_circle ( const Circle outer  ) 

Member Data Documentation


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

Generated on Fri Apr 16 12:41:08 2010 for papyrus by doxygen 1.6.1