Dillo
Public Member Functions | Private Attributes | List of all members
dw::core::style::StyleImage::StyleImgRenderer Class Reference

Public Member Functions

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

Private Attributes

StyleImageimage
 

Constructor & Destructor Documentation

dw::core::style::StyleImage::StyleImgRenderer::StyleImgRenderer ( StyleImage image)
inline

References image.

Member Function Documentation

void dw::core::style::StyleImage::StyleImgRenderer::drawRow ( int  row)
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.

Implements dw::core::ImgRenderer.

References image.

void dw::core::style::StyleImage::StyleImgRenderer::fatal ( )
virtual

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

The implementation may use this to indicate an error.

Implements dw::core::ImgRenderer.

void dw::core::style::StyleImage::StyleImgRenderer::finish ( )
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.

Implements dw::core::ImgRenderer.

void dw::core::style::StyleImage::StyleImgRenderer::setBuffer ( core::Imgbuf buffer,
bool  resize 
)
virtual

Called, when an image buffer is attached.

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

Implements dw::core::ImgRenderer.

References DBG_OBJ_ASSOC, image, lout::misc::max(), and dw::core::style::MIN_BG_IMG_H.

Member Data Documentation

StyleImage* dw::core::style::StyleImage::StyleImgRenderer::image
private

Referenced by StyleImgRenderer().


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