ionflux.org | Impressum

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

Cairo path data. More...

#include <CairoPathData.hpp>

Inheritance diagram for Ionflux::Tools::Cairo::PathData:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PathData ()
 Constructor.
 PathData (const PathData &initPathData)
 Constructor.
 PathData (cairo_path_data_t *initPathData, bool initManagePathData=false)
 Constructor.
 PathData (cairo_path_data_type_t initPathDataType)
 Constructor.
virtual ~PathData ()
 Destructor.
virtual cairo_path_data_type_t getType ()
 Get type.
virtual void setType (cairo_path_data_type_t newType)
 Set type.
virtual unsigned int getNumPoints ()
 Get number of points.
virtual Point getPoint (unsigned int pointIndex=0)
 Get point.
virtual void setPoint (const Point &source, unsigned int pointIndex=0)
 Set point.
virtual void setCairoPathData (cairo_path_data_t *newCairoPathData, bool newManagePathData=false)
 Set cairo path data.
virtual cairo_path_data_t * getCairoPathData () const
 Get cairo path data.
virtual PathDataoperator= (const PathData &newCairoPathData)
 Assignment operator.
virtual PathDataoperator= (cairo_path_data_t *newCairoPathData)
 Assignment operator.
virtual void setManagePathData (bool newManagePathData)
 Set cairo path data management flag.
virtual bool getManagePathData () const
 Get cairo path data management flag.

Protected Attributes

cairo_path_data_t * cairoPathData
 Cairo path data.
bool managePathData
 Cairo path data management flag.

Detailed Description

Cairo path data.

Data element of 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::PathData::PathData  ) 
 

Constructor.

Construct new PathData object.

Ionflux::Tools::Cairo::PathData::PathData const PathData initPathData  ) 
 

Constructor.

Construct new PathData object.

Parameters:
initPathData Cairo path data.

Ionflux::Tools::Cairo::PathData::PathData cairo_path_data_t *  initPathData,
bool  initManagePathData = false
 

Constructor.

Construct new PathData object.

Parameters:
initPathData Cairo path data.
initManagePathData Cairo path data management flag.

Ionflux::Tools::Cairo::PathData::PathData cairo_path_data_type_t  initPathDataType  ) 
 

Constructor.

Construct new PathData object.

Parameters:
initPathDataType Cairo path data type.

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

Destructor.

Destruct PathData object.


Member Function Documentation

cairo_path_data_t * Ionflux::Tools::Cairo::PathData::getCairoPathData  )  const [virtual]
 

Get cairo path data.

Get the cairo path data.

Returns:
Cairo path data.

bool Ionflux::Tools::Cairo::PathData::getManagePathData  )  const [virtual]
 

Get cairo path data management flag.

Returns:
Current value of cairo path data management flag.

unsigned int Ionflux::Tools::Cairo::PathData::getNumPoints  )  [virtual]
 

Get number of points.

Get the number of points for this path element.

Returns:
Number of points.

Point Ionflux::Tools::Cairo::PathData::getPoint unsigned int  pointIndex = 0  )  [virtual]
 

Get point.

Get the point with the specified index.

Parameters:
pointIndex Point index.
Returns:
Point.

cairo_path_data_type_t Ionflux::Tools::Cairo::PathData::getType  )  [virtual]
 

Get type.

Get the type of this path element.

Returns:
Path data type.

PathData & Ionflux::Tools::Cairo::PathData::operator= cairo_path_data_t *  newCairoPathData  )  [virtual]
 

Assignment operator.

Assign a cairo path to this path object.

Note:
By default, the cairo path data will not be managed by this object.
Parameters:
newCairoPathData Cairo path data.
Returns:
The object itself.

PathData & Ionflux::Tools::Cairo::PathData::operator= const PathData newCairoPathData  )  [virtual]
 

Assignment operator.

Assign a path data to another path data.

Parameters:
newCairoPathData Cairo path data.
Returns:
The object itself.

void Ionflux::Tools::Cairo::PathData::setCairoPathData cairo_path_data_t *  newCairoPathData,
bool  newManagePathData = false
[virtual]
 

Set cairo path data.

Set the cairo path data.

Parameters:
newCairoPathData Cairo Path data.
newManagePathData Cairo Path data management flag.

void Ionflux::Tools::Cairo::PathData::setManagePathData bool  newManagePathData  )  [virtual]
 

Set cairo path data management flag.

Set new value of cairo path data management flag.

Parameters:
newManagePathData New value of cairo path data management flag.

void Ionflux::Tools::Cairo::PathData::setPoint const Point source,
unsigned int  pointIndex = 0
[virtual]
 

Set point.

Set the point with the specified index.

Parameters:
source Point.
pointIndex Point index.

void Ionflux::Tools::Cairo::PathData::setType cairo_path_data_type_t  newType  )  [virtual]
 

Set type.

Set the type of this path element.

Parameters:
newType Path data type.


Member Data Documentation

cairo_path_data_t* Ionflux::Tools::Cairo::PathData::cairoPathData [protected]
 

Cairo path data.

bool Ionflux::Tools::Cairo::PathData::managePathData [protected]
 

Cairo path data management flag.


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