ionflux.org | Impressum

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

Cairo path. More...

#include <CairoPath.hpp>

Inheritance diagram for Ionflux::Tools::Cairo::Path:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Path ()
 Constructor.
 Path (const Path &initPath)
 Constructor.
 Path (cairo_path_t *initPath)
 Constructor.
virtual ~Path ()
 Destructor.
virtual void destroy ()
 Destroy.
virtual cairo_status_t getStatus ()
 Get status.
virtual cairo_path_data_t * getData ()
 Get data.
virtual PathDatagetDataElement (unsigned int elementIndex)
 Get data element.
virtual unsigned int getNumData ()
 Get number of data elements.
virtual PathIterator begin ()
 Begin.
virtual PathIterator end ()
 End.
virtual Pathoperator= (const Path &newCairoPath)
 Assignment operator.
virtual Pathoperator= (cairo_path_t *newCairoPath)
 Assignment operator.
virtual void setCairoPath (cairo_path_t *newCairoPath)
 Set cairo path.
virtual cairo_path_t * getCairoPath () const
 Get cairo path.

Protected Member Functions

virtual void initPathData ()
 Initialize path data.
virtual void clearPathData ()
 Clear path data.

Protected Attributes

Ionflux::Tools::ObjectPool pool
 Object pool.
std::vector< PathData * > pathData
 Path data.
cairo_path_t * cairoPath
 Cairo path.

Detailed Description

Cairo path.

A path in 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::Path::Path  ) 
 

Constructor.

Construct new Path object.

Ionflux::Tools::Cairo::Path::Path const Path initPath  ) 
 

Constructor.

Construct new Path object.

Parameters:
initPath Cairo path.

Ionflux::Tools::Cairo::Path::Path cairo_path_t *  initPath  ) 
 

Constructor.

Construct new Path object.

Parameters:
initPath Cairo path.

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

Destructor.

Destruct Path object.


Member Function Documentation

PathIterator Ionflux::Tools::Cairo::Path::begin  )  [virtual]
 

Begin.

Return an iterator to the beginning of the path element list.

Returns:
.

void Ionflux::Tools::Cairo::Path::clearPathData  )  [protected, virtual]
 

Clear path data.

Clear the path data vector

void Ionflux::Tools::Cairo::Path::destroy  )  [virtual]
 

Destroy.

Destroy path

PathIterator Ionflux::Tools::Cairo::Path::end  )  [virtual]
 

End.

Return an iterator to the end of the path element list.

Returns:
.

cairo_path_t * Ionflux::Tools::Cairo::Path::getCairoPath  )  const [virtual]
 

Get cairo path.

Returns:
Current value of cairo path.

cairo_path_data_t * Ionflux::Tools::Cairo::Path::getData  )  [virtual]
 

Get data.

Get data

Returns:
Path data.

PathData * Ionflux::Tools::Cairo::Path::getDataElement unsigned int  elementIndex  )  [virtual]
 

Get data element.

Get the data element with the specified index.

Parameters:
elementIndex Element index.
Returns:
Path data element, or 0 if the element with the specified index doesn't exist..

unsigned int Ionflux::Tools::Cairo::Path::getNumData  )  [virtual]
 

Get number of data elements.

Get number of data elements

Returns:
Number of data elements.

cairo_status_t Ionflux::Tools::Cairo::Path::getStatus  )  [virtual]
 

Get status.

Get status

Returns:
Status.

void Ionflux::Tools::Cairo::Path::initPathData  )  [protected, virtual]
 

Initialize path data.

Initialize the path data vector

Path & Ionflux::Tools::Cairo::Path::operator= cairo_path_t *  newCairoPath  )  [virtual]
 

Assignment operator.

Assign a cairo path to this path object.

Parameters:
newCairoPath Cairo path.
Returns:
The object itself.

Path & Ionflux::Tools::Cairo::Path::operator= const Path newCairoPath  )  [virtual]
 

Assignment operator.

Assign a path to another path.

Parameters:
newCairoPath Cairo path.
Returns:
The object itself.

void Ionflux::Tools::Cairo::Path::setCairoPath cairo_path_t *  newCairoPath  )  [virtual]
 

Set cairo path.

Set new value of cairo path.

Parameters:
newCairoPath New value of cairo path.


Member Data Documentation

cairo_path_t* Ionflux::Tools::Cairo::Path::cairoPath [protected]
 

Cairo path.

std::vector<PathData*> Ionflux::Tools::Cairo::Path::pathData [protected]
 

Path data.

Ionflux::Tools::ObjectPool Ionflux::Tools::Cairo::Path::pool [protected]
 

Object pool.


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