Dillo
Public Member Functions | List of all members
dw::core::ImgRenderer Class Referenceabstract

... More...

#include <imgrenderer.hh>

Public Member Functions

virtual ~ImgRenderer ()
 
virtual void setBuffer (core::Imgbuf *buffer, bool resize=false)=0
 Called, when an image buffer is attached. More...
 
virtual void drawRow (int row)=0
 Called, when data from a row is available and has been copied into the image buffer. More...
 
virtual void finish ()=0
 Called, when all image data has been retrieved. More...
 
virtual void fatal ()=0
 Called, when there are problems with the retrieval of image data. More...
 

Detailed Description

...

See also
Images and Backgrounds in Dw

Constructor & Destructor Documentation

virtual dw::core::ImgRenderer::~ImgRenderer ( )
inlinevirtual

Member Function Documentation

virtual void dw::core::ImgRenderer::drawRow ( int  row)
pure virtual

Called, when data from a row is available and has been copied into the image buffer.

The implementation will typically queue the respective area for drawing.

Implemented in dw::core::style::StyleImage::ExternalImgRenderer, dw::core::style::StyleImage::StyleImgRenderer, dw::Image, and dw::core::ImgRendererDist.

Referenced by imageDrawTimeout().

virtual void dw::core::ImgRenderer::fatal ( )
pure virtual

Called, when there are problems with the retrieval of image data.

The implementation may use this to indicate an error.

Implemented in dw::core::style::StyleImage::ExternalImgRenderer, dw::core::style::StyleImage::StyleImgRenderer, dw::Image, and dw::core::ImgRendererDist.

virtual void dw::core::ImgRenderer::finish ( )
pure virtual

Called, when all image data has been retrieved.

The implementation may use this instead of "drawRow" for drawing, to limit the number of draws.

Implemented in dw::core::style::StyleImage::ExternalImgRenderer, dw::core::style::StyleImage::StyleImgRenderer, dw::Image, and dw::core::ImgRendererDist.

virtual void dw::core::ImgRenderer::setBuffer ( core::Imgbuf buffer,
bool  resize = false 
)
pure virtual

Called, when an image buffer is attached.

This is typically the case when all meta data (size, depth) has been read.

Implemented in dw::core::style::StyleImage::ExternalImgRenderer, dw::core::style::StyleImage::StyleImgRenderer, dw::Image, and dw::core::ImgRendererDist.

Referenced by imageInitTimeout().


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