synfig-core  1.0.3
Classes | Public Types | Public Member Functions | List of all members
synfig::CairoSurface Class Reference

Generic Cairo backed surface. It allows to create a image surface equivalent to the current backend for custom modifications purposes. More...

#include <surface.h>

Classes

class  alpha_pen
 Alpha-Blending Pen. More...

Public Types

typedef CairoColor value_type

Public Member Functions

 CairoSurface ()
 CairoSurface (cairo_surface_t *cs)
 ~CairoSurface ()
void set_wh (int w, int h, int pitch=0)
void set_wh (int w, int h, unsigned char *data, int pitch)
void blit_to (alpha_pen &DEST_PEN, int x, int y, int w, int h)
void set_cairo_surface (cairo_surface_t *cs)
cairo_surface_t * get_cairo_surface () const
cairo_surface_t * get_cairo_image_surface () const
bool map_cairo_image ()
void unmap_cairo_image ()
bool is_mapped () const

Detailed Description

Generic Cairo backed surface. It allows to create a image surface equivalent to the current backend for custom modifications purposes.

Todo:
writeme

Member Typedef Documentation

Constructor & Destructor Documentation

synfig::CairoSurface::CairoSurface ( )
inline
synfig::CairoSurface::CairoSurface ( cairo_surface_t *  cs)
inline

References set_cairo_surface().

synfig::CairoSurface::~CairoSurface ( )
inline

Member Function Documentation

void CairoSurface::set_wh ( int  w,
int  h,
int  pitch = 0 
)

References synfig::warning().

Referenced by map_cairo_image(), and set_wh().

void synfig::CairoSurface::set_wh ( int  w,
int  h,
unsigned char *  data,
int  pitch 
)
inline

References set_wh().

void synfig::CairoSurface::blit_to ( alpha_pen DEST_PEN,
int  x,
int  y,
int  w,
int  h 
)
void CairoSurface::set_cairo_surface ( cairo_surface_t *  cs)
cairo_surface_t * CairoSurface::get_cairo_surface ( ) const
cairo_surface_t * CairoSurface::get_cairo_image_surface ( ) const
bool CairoSurface::map_cairo_image ( )
void CairoSurface::unmap_cairo_image ( )
bool CairoSurface::is_mapped ( ) const

The documentation for this class was generated from the following files: