Public Member Functions | Protected Member Functions

GR_CairoRasterImage Class Reference

An abstract Cairo image. More...

#include <gr_CairoGraphics.h>

Inheritance diagram for GR_CairoRasterImage:
GR_RasterImage GR_Image GR_CocoaImage GR_UnixImage GR_UnixCroppedImage

List of all members.

Public Member Functions

virtual GR_ImagecreateImageSegment (GR_Graphics *pG, const UT_Rect &rec)
virtual void cairoSetSource (cairo_t *)=0

Protected Member Functions

virtual GR_CairoRasterImagemakeSubimage (const std::string &n, UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h) const =0

Detailed Description

An abstract Cairo image.

Member Function Documentation

virtual void GR_CairoRasterImage::cairoSetSource ( cairo_t *   )  [pure virtual]
GR_Image * GR_CairoRasterImage::createImageSegment ( GR_Graphics pG,
const UT_Rect rec 
) [virtual]

The idea is to create a new image from the rectangular segment in device units defined by UT_Rect rec. The Image should be deleted by the calling routine.

Implements GR_Image.

References GR_Image::getDisplayHeight(), GR_Image::getDisplayWidth(), GR_Image::getName(), UT_Rect::height, UT_Rect::left, makeSubimage(), GR_Image::setDisplaySize(), GR_Graphics::tdu(), UT_Rect::top, UT_std_string_sprintf(), and UT_Rect::width.

Referenced by GR_RSVGVectorImage::createImageSegment().

virtual GR_CairoRasterImage* GR_CairoRasterImage::makeSubimage ( const std::string &  n,
UT_sint32  x,
UT_sint32  y,
UT_sint32  w,
UT_sint32  h 
) const [protected, pure virtual]

Implemented in GR_CocoaImage, and GR_UnixImage.

Referenced by createImageSegment().

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