ionflux.org | Impressum

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

Cairo path iterator. More...

#include <CairoPathIterator.hpp>

Collaboration diagram for Ionflux::Tools::Cairo::PathIterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PathIterator ()
 Constructor.
 PathIterator (const PathIterator &initPathIterator)
 Constructor.
 PathIterator (Path &initPath, unsigned int initIndex=0)
 Constructor.
virtual ~PathIterator ()
 Destructor.
virtual PathDataoperator * ()
 Dereference.
virtual PathDataoperator++ ()
 Increment.
virtual PathDataoperator++ (int dummy)
 Increment.
virtual PathDataoperator-- ()
 Decrement.
virtual PathDataoperator-- (int dummy)
 Decrement.
virtual bool operator== (const PathIterator &other)
 Comparison.
virtual bool operator!= (const PathIterator &other)
 Comparison.
virtual PathIteratoroperator= (const PathIterator &newPathIterator)
 Assignment operator.
virtual void setPath (Path *newPath)
 Set path.
virtual void setElementIndex (unsigned int newElementIndex)
 Set element index.
virtual PathgetPath () const
 Get path.
virtual unsigned int getElementIndex () const
 Get element index.

Protected Attributes

Pathpath
 Path.
unsigned int elementIndex
 Element index.

Detailed Description

Cairo path iterator.

Iterator for 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::PathIterator::PathIterator  ) 
 

Constructor.

Construct new PathIterator object.

Ionflux::Tools::Cairo::PathIterator::PathIterator const PathIterator initPathIterator  ) 
 

Constructor.

Construct new PathIterator object.

Parameters:
initPathIterator Cairo path iterator.

Ionflux::Tools::Cairo::PathIterator::PathIterator Path initPath,
unsigned int  initIndex = 0
 

Constructor.

Construct new PathIterator object.

Parameters:
initPath Cairo path.
initIndex Element index.

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

Destructor.

Destruct PathIterator object.


Member Function Documentation

unsigned int Ionflux::Tools::Cairo::PathIterator::getElementIndex  )  const [virtual]
 

Get element index.

Returns:
Current value of element index.

Path * Ionflux::Tools::Cairo::PathIterator::getPath  )  const [virtual]
 

Get path.

Returns:
Current value of path.

PathData & Ionflux::Tools::Cairo::PathIterator::operator *  )  [virtual]
 

Dereference.

Dereference operator.

Returns:
Path data.

bool Ionflux::Tools::Cairo::PathIterator::operator!= const PathIterator other  )  [virtual]
 

Comparison.

Comparison operator.

Parameters:
other Cairo path iterator.
Returns:
true if the path iterators are not equal, false otherwise.

PathData & Ionflux::Tools::Cairo::PathIterator::operator++ int  dummy  )  [virtual]
 

Increment.

Increment operator.

Parameters:
dummy Postfix operator dummy argument.
Returns:
Path data.

PathData & Ionflux::Tools::Cairo::PathIterator::operator++  )  [virtual]
 

Increment.

Increment operator.

Returns:
Path data.

PathData & Ionflux::Tools::Cairo::PathIterator::operator-- int  dummy  )  [virtual]
 

Decrement.

Decrement operator.

Parameters:
dummy Postfix operator dummy argument.
Returns:
Path data.

PathData & Ionflux::Tools::Cairo::PathIterator::operator--  )  [virtual]
 

Decrement.

Decrement operator.

Returns:
Path data.

PathIterator & Ionflux::Tools::Cairo::PathIterator::operator= const PathIterator newPathIterator  )  [virtual]
 

Assignment operator.

Assign a path iterator to another path iterator.

Parameters:
newPathIterator Cairo path iterator.
Returns:
The object itself.

bool Ionflux::Tools::Cairo::PathIterator::operator== const PathIterator other  )  [virtual]
 

Comparison.

Comparison operator.

Parameters:
other Cairo path iterator.
Returns:
true if the path iterators are equal, false otherwise.

void Ionflux::Tools::Cairo::PathIterator::setElementIndex unsigned int  newElementIndex  )  [virtual]
 

Set element index.

Set new value of element index.

Parameters:
newElementIndex New value of element index.

void Ionflux::Tools::Cairo::PathIterator::setPath Path newPath  )  [virtual]
 

Set path.

Set new value of path.

Parameters:
newPath New value of path.


Member Data Documentation

unsigned int Ionflux::Tools::Cairo::PathIterator::elementIndex [protected]
 

Element index.

Path* Ionflux::Tools::Cairo::PathIterator::path [protected]
 

Path.


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