ionflux.org | Impressum

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

Cairo surface. More...

#include <CairoSurface.hpp>

Inheritance diagram for Ionflux::Tools::Cairo::Surface:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Surface ()
 Constructor.
 Surface (const Surface &initSurface)
 Constructor.
 Surface (cairo_surface_t *initSurface)
 Constructor.
virtual ~Surface ()
 Destructor.
virtual cairo_surface_t * createSimilar (cairo_content_t content, int width, int height)
 Surface similar.
virtual void reference ()
 Surface.
virtual void destroy ()
 Surface.
virtual void finish ()
 Surface.
virtual void * getUserData (const cairo_user_data_key_t *key)
 Surface user data.
virtual cairo_status_t setUserData (const cairo_user_data_key_t *key, void *user_data, cairo_destroy_func_t destroy)
 Surface user data.
virtual void setDeviceOffset (double x_offset, double y_offset)
 Surface device offset.
virtual Surfaceoperator= (const Surface &newCairoSurface)
 Assignment operator.
virtual Surfaceoperator= (cairo_surface_t *newCairoSurface)
 Assignment operator.
virtual void setCairoSurface (cairo_surface_t *newCairoSurface)
 Set cairo surface.
virtual cairo_surface_t * getCairoSurface () const
 Get cairo surface.

Protected Attributes

cairo_surface_t * cairoSurface
 Cairo surface.

Detailed Description

Cairo surface.

Base class for the Cairo vector graphics API surface types (see http://www.cairographics.org/).

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


Constructor & Destructor Documentation

Ionflux::Tools::Cairo::Surface::Surface  ) 
 

Constructor.

Construct new Surface object.

Ionflux::Tools::Cairo::Surface::Surface const Surface initSurface  ) 
 

Constructor.

Construct new Surface object.

Parameters:
initSurface Cairo surface.

Ionflux::Tools::Cairo::Surface::Surface cairo_surface_t *  initSurface  ) 
 

Constructor.

Construct new Surface object.

Parameters:
initSurface Cairo surface.

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

Destructor.

Destruct Surface object.


Member Function Documentation

cairo_surface_t * Ionflux::Tools::Cairo::Surface::createSimilar cairo_content_t  content,
int  width,
int  height
[virtual]
 

Surface similar.

Surface similar

Parameters:
content Content.
width Width.
height Height.
Returns:
.

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

Surface.

Surface

void Ionflux::Tools::Cairo::Surface::finish  )  [virtual]
 

Surface.

Surface

cairo_surface_t * Ionflux::Tools::Cairo::Surface::getCairoSurface  )  const [virtual]
 

Get cairo surface.

Returns:
Current value of cairo surface.

void * Ionflux::Tools::Cairo::Surface::getUserData const cairo_user_data_key_t *  key  )  [virtual]
 

Surface user data.

Surface user data

Parameters:
key Key.
Returns:
.

Surface & Ionflux::Tools::Cairo::Surface::operator= cairo_surface_t *  newCairoSurface  )  [virtual]
 

Assignment operator.

Assign a cairo surface to this surface object.

Parameters:
newCairoSurface Cairo surface.
Returns:
The object itself.

Reimplemented in Ionflux::Tools::Cairo::ImageSurface.

Surface & Ionflux::Tools::Cairo::Surface::operator= const Surface newCairoSurface  )  [virtual]
 

Assignment operator.

Assign a surface to another surface.

Parameters:
newCairoSurface Cairo surface.
Returns:
The object itself.

void Ionflux::Tools::Cairo::Surface::reference  )  [virtual]
 

Surface.

Surface

void Ionflux::Tools::Cairo::Surface::setCairoSurface cairo_surface_t *  newCairoSurface  )  [virtual]
 

Set cairo surface.

Set new value of cairo surface.

Parameters:
newCairoSurface New value of cairo surface.

void Ionflux::Tools::Cairo::Surface::setDeviceOffset double  x_offset,
double  y_offset
[virtual]
 

Surface device offset.

Surface device offset

Parameters:
x_offset X_offset.
y_offset Y_offset.

cairo_status_t Ionflux::Tools::Cairo::Surface::setUserData const cairo_user_data_key_t *  key,
void *  user_data,
cairo_destroy_func_t  destroy
[virtual]
 

Surface user data.

Surface user data

Parameters:
key Key.
user_data User_data.
destroy Destroy.
Returns:
.


Member Data Documentation

cairo_surface_t* Ionflux::Tools::Cairo::Surface::cairoSurface [protected]
 

Cairo surface.


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