ionflux.org | Impressum

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

Cairo drawing canvas. More...

#include <CairoCanvas.hpp>

Inheritance diagram for Ionflux::Tools::CairoCanvas:

Inheritance graph
[legend]
Collaboration diagram for Ionflux::Tools::CairoCanvas:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CairoCanvas ()
 Constructor.
 CairoCanvas (const Ionflux::Tools::Cairo::CairoContext &initCairoContext)
 Constructor.
 CairoCanvas (cairo_t *initCairoContext)
 Constructor.
 CairoCanvas (cairo_surface_t *initSurface)
 Constructor.
 CairoCanvas (Ionflux::Tools::Cairo::Surface &initSurface)
 Constructor.
 CairoCanvas (const CairoCanvas &initCairoCanvas)
 Constructor.
virtual ~CairoCanvas ()
 Destructor.
virtual void drawLine (double x1, double y1, double x2, double y2, double width=0.0, const Color *color=0, Matrix3 *transform=0)
 Draw line.
virtual void drawRectangle (double x, double y, double width, double height, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)
 Draw rectangle.
virtual void drawArc (double x, double y, double width, double height, double angle1, double angle2, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)
 Draw arc.
virtual void drawArcEc (double xc, double yc, double radius, double angle1, double angle2, double eccentricity=0.0, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)
 Draw arc.
virtual void drawEllipse (double x, double y, double width, double height, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)
 Draw ellipse.
virtual void drawEllipseEc (double xc, double yc, double radius, double eccentricity=0.0, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)
 Draw ellipse.
virtual void drawCircle (double xc, double yc, double radius, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)
 Draw circle.
virtual void drawCurve (double x1, double y1, double x2, double y2, double x3, double y3, double strokeWidth=0.0, const Color *color=0, Matrix3 *transform=0)
 Draw curve.
virtual void drawText (double x, double y, const std::string &text, const std::string &fontDesc="", double fontSize=0.0, const Color *color=0, Matrix3 *transform=0)
 Draw text.
virtual void getTextSize (const std::string &text, double &width, double &height, const std::string &fontDesc="", double fontSize=0.0, Matrix3 *transform=0)
 Get text size.
virtual CairoCanvasoperator= (const Ionflux::Tools::Cairo::CairoContext &newCairoContext)
 Assignment operator.
virtual CairoCanvasoperator= (cairo_t *newCairoContext)
 Assignment operator.
virtual CairoCanvasoperator= (const CairoCanvas &newCairoCanvas)
 Assignment operator.

Protected Member Functions

virtual void setTransform (Matrix3 *transform=0)
 Set transform.

Detailed Description

Cairo drawing canvas.

A canvas which uses Cairo for drawing operations.


Constructor & Destructor Documentation

Ionflux::Tools::CairoCanvas::CairoCanvas  ) 
 

Constructor.

Construct new CairoCanvas object.

Ionflux::Tools::CairoCanvas::CairoCanvas const Ionflux::Tools::Cairo::CairoContext initCairoContext  ) 
 

Constructor.

Construct new CairoCanvas object.

Parameters:
initCairoContext Cairo context.

Ionflux::Tools::CairoCanvas::CairoCanvas cairo_t *  initCairoContext  ) 
 

Constructor.

Construct new CairoCanvas object.

Parameters:
initCairoContext Cairo context.

Ionflux::Tools::CairoCanvas::CairoCanvas cairo_surface_t *  initSurface  ) 
 

Constructor.

Construct new CairoCanvas object.

Parameters:
initSurface Cairo surface.

Ionflux::Tools::CairoCanvas::CairoCanvas Ionflux::Tools::Cairo::Surface initSurface  ) 
 

Constructor.

Construct new CairoCanvas object.

Parameters:
initSurface Cairo surface.

Ionflux::Tools::CairoCanvas::CairoCanvas const CairoCanvas initCairoCanvas  ) 
 

Constructor.

Construct new CairoCanvas object.

Parameters:
initCairoCanvas Cairo canvas.

Ionflux::Tools::CairoCanvas::~CairoCanvas  )  [virtual]
 

Destructor.

Destruct CairoCanvas object.


Member Function Documentation

void Ionflux::Tools::CairoCanvas::drawArc double  x,
double  y,
double  width,
double  height,
double  angle1,
double  angle2,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[virtual]
 

Draw arc.

Draw an arc.

Parameters:
x x coordinate.
y y coordinate.
width Width.
height Height.
angle1 Angle 1.
angle2 Angle 2.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::drawArcEc double  xc,
double  yc,
double  radius,
double  angle1,
double  angle2,
double  eccentricity = 0.0,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[virtual]
 

Draw arc.

Draw an arc with specified eccentricity.

Parameters:
xc x center.
yc y center.
radius Radius.
angle1 Angle 1.
angle2 Angle 2.
eccentricity Eccentricity.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::drawCircle double  xc,
double  yc,
double  radius,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[virtual]
 

Draw circle.

Draw a circle.

Parameters:
xc x center.
yc y center.
radius Radius.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::drawCurve double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3,
double  strokeWidth = 0.0,
const Color color = 0,
Matrix3 transform = 0
[virtual]
 

Draw curve.

Draw a curve.

Parameters:
x1 x1 coordinate.
y1 y1 coordinate.
x2 x2 coordinate.
y2 y2 coordinate.
x3 x3 coordinate.
y3 y3 coordinate.
strokeWidth Stroke width.
color Stroke color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::drawEllipse double  x,
double  y,
double  width,
double  height,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[virtual]
 

Draw ellipse.

Draw an ellipse.

Parameters:
x x coordinate.
y y coordinate.
width Width.
height Height.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::drawEllipseEc double  xc,
double  yc,
double  radius,
double  eccentricity = 0.0,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[virtual]
 

Draw ellipse.

Draw an ellipse.

Parameters:
xc x center.
yc y center.
radius Radius.
eccentricity Eccentricity.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::drawLine double  x1,
double  y1,
double  x2,
double  y2,
double  width = 0.0,
const Color color = 0,
Matrix3 transform = 0
[virtual]
 

Draw line.

Draw a line.

Parameters:
x1 x1 coordinate.
y1 y1 coordinate.
x2 x2 coordinate.
y2 y2 coordinate.
width Stroke width.
color Stroke color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::drawRectangle double  x,
double  y,
double  width,
double  height,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[virtual]
 

Draw rectangle.

Draw a rectangle.

Parameters:
x x coordinate.
y y coordinate.
width Width.
height Height.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::drawText double  x,
double  y,
const std::string &  text,
const std::string &  fontDesc = "",
double  fontSize = 0.0,
const Color color = 0,
Matrix3 transform = 0
[virtual]
 

Draw text.

Draw a text.

Parameters:
x x coordinate.
y y coordinate.
text Text.
fontDesc Font description.
fontSize Font size.
color Color.
transform Transform matrix.

Implements Ionflux::Tools::Canvas.

void Ionflux::Tools::CairoCanvas::getTextSize const std::string &  text,
double &  width,
double &  height,
const std::string &  fontDesc = "",
double  fontSize = 0.0,
Matrix3 transform = 0
[virtual]
 

Get text size.

Get the size of the specified text.

Parameters:
text Text.
width Where to store the text width.
height Where to store the text height.
fontDesc Font description.
fontSize Font size.
transform Transform matrix.

CairoCanvas & Ionflux::Tools::CairoCanvas::operator= const CairoCanvas newCairoCanvas  )  [virtual]
 

Assignment operator.

Assign a Cairo canvas to another Cairo canvas.

Parameters:
newCairoCanvas Cairo canvas.
Returns:
The object itself.

CairoCanvas & Ionflux::Tools::CairoCanvas::operator= cairo_t *  newCairoContext  )  [virtual]
 

Assignment operator.

Assign a Cairo context to a Cairo canvas.

Parameters:
newCairoContext Cairo context.
Returns:
The object itself.

Reimplemented from Ionflux::Tools::Cairo::CairoContext.

CairoCanvas & Ionflux::Tools::CairoCanvas::operator= const Ionflux::Tools::Cairo::CairoContext newCairoContext  )  [virtual]
 

Assignment operator.

Assign a Cairo context to a Cairo canvas.

Parameters:
newCairoContext Cairo context.
Returns:
The object itself.

Reimplemented from Ionflux::Tools::Cairo::CairoContext.

void Ionflux::Tools::CairoCanvas::setTransform Matrix3 transform = 0  )  [protected, virtual]
 

Set transform.

Set transform.

Parameters:
transform Transform matrix.


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