Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
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.
 
virtual void drawRow (int row)=0
 Called, when data from a row is available and has been copied into the image buffer.
 
virtual void finish ()=0
 Called, when all image data has been retrieved.
 
virtual void fatal ()=0
 Called, when there are problems with the retrieval of image data.
 

Detailed Description

...

See also
Images and Backgrounds in Dw

Definition at line 16 of file imgrenderer.hh.

Constructor & Destructor Documentation

◆ ~ImgRenderer()

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

Definition at line 19 of file imgrenderer.hh.

Member Function Documentation

◆ drawRow()

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::Image, dw::core::ImgRendererDist, dw::core::style::StyleImage::StyleImgRenderer, and dw::core::style::StyleImage::ExternalImgRenderer.

Referenced by imageDrawTimeout().

◆ fatal()

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::Image, dw::core::ImgRendererDist, dw::core::style::StyleImage::StyleImgRenderer, and dw::core::style::StyleImage::ExternalImgRenderer.

◆ finish()

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::Image, dw::core::ImgRendererDist, dw::core::style::StyleImage::StyleImgRenderer, and dw::core::style::StyleImage::ExternalImgRenderer.

◆ setBuffer()

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::ImgRendererDist, dw::core::style::StyleImage::StyleImgRenderer, dw::core::style::StyleImage::ExternalImgRenderer, and dw::Image.

Referenced by imageInitTimeout().


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