ionflux.org | Impressum

Ionflux::Tools::Cairo::Gradient Class Reference
[Cairo]

Cairo gradient. More...

#include <CairoGradient.hpp>

Inheritance diagram for Ionflux::Tools::Cairo::Gradient:

Inheritance graph
[legend]
Collaboration diagram for Ionflux::Tools::Cairo::Gradient:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Gradient ()
 Constructor.
 Gradient (const Gradient &initGradient)
 Constructor.
 Gradient (cairo_pattern_t *initGradient)
 Constructor.
virtual ~Gradient ()
 Destructor.
virtual void addColorStopRgb (double offset, double red, double green, double blue)
 Pattern color stop rgb.
virtual void addColorStopRgba (double offset, double red, double green, double blue, double alpha)
 Pattern color stop rgba.
virtual void addColorStop (double offset, const Ionflux::Tools::Color &color)
 Pattern color stop.
virtual Gradientoperator= (const Gradient &newCairoPattern)
 Assignment operator.
virtual Gradientoperator= (cairo_pattern_t *newCairoPattern)
 Assignment operator.

Detailed Description

Cairo gradient.

Gradient for use with the Cairo vector graphics API (see http://www.cairographics.org/).

Note:
Not all features of Cairo are supported yet by this wrapper.


Constructor & Destructor Documentation

Ionflux::Tools::Cairo::Gradient::Gradient  ) 
 

Constructor.

Construct new Gradient object.

Ionflux::Tools::Cairo::Gradient::Gradient const Gradient initGradient  ) 
 

Constructor.

Construct new Gradient object.

Parameters:
initGradient Cairo gradient.

Ionflux::Tools::Cairo::Gradient::Gradient cairo_pattern_t *  initGradient  ) 
 

Constructor.

Construct new Gradient object.

Parameters:
initGradient Cairo gradient.

Ionflux::Tools::Cairo::Gradient::~Gradient  )  [virtual]
 

Destructor.

Destruct Gradient object.


Member Function Documentation

void Ionflux::Tools::Cairo::Gradient::addColorStop double  offset,
const Ionflux::Tools::Color color
[virtual]
 

Pattern color stop.

Pattern color stop

Parameters:
offset Offset.
color Color.

void Ionflux::Tools::Cairo::Gradient::addColorStopRgb double  offset,
double  red,
double  green,
double  blue
[virtual]
 

Pattern color stop rgb.

Pattern color stop rgb

Parameters:
offset Offset.
red Red.
green Green.
blue Blue.

void Ionflux::Tools::Cairo::Gradient::addColorStopRgba double  offset,
double  red,
double  green,
double  blue,
double  alpha
[virtual]
 

Pattern color stop rgba.

Pattern color stop rgba

Parameters:
offset Offset.
red Red.
green Green.
blue Blue.
alpha Alpha.

Gradient & Ionflux::Tools::Cairo::Gradient::operator= cairo_pattern_t *  newCairoPattern  )  [virtual]
 

Assignment operator.

Assign a cairo pattern to this pattern object.

Parameters:
newCairoPattern Cairo solid pattern.
Returns:
The object itself.

Reimplemented from Ionflux::Tools::Cairo::Pattern.

Reimplemented in Ionflux::Tools::Cairo::LinearGradient, and Ionflux::Tools::Cairo::RadialGradient.

Gradient & Ionflux::Tools::Cairo::Gradient::operator= const Gradient newCairoPattern  )  [virtual]
 

Assignment operator.

Assign a pattern to another pattern.

Parameters:
newCairoPattern Cairo solid pattern.
Returns:
The object itself.


The documentation for this class was generated from the following files:
Generated on Tue Mar 14 21:12:17 2006 for Ionflux Tools Class Library (iftools) by  doxygen 1.4.6