Dillo v3.1.1-119-g140d9ebd
|
Public Member Functions | |
StyleImgRenderer (StyleImage *image) | |
void | setBuffer (core::Imgbuf *buffer, bool resize) |
Called, when an image buffer is attached. | |
void | drawRow (int row) |
Called, when data from a row is available and has been copied into the image buffer. | |
void | finish () |
Called, when all image data has been retrieved. | |
void | fatal () |
Called, when there are problems with the retrieval of image data. | |
Public Member Functions inherited from dw::core::ImgRenderer | |
virtual | ~ImgRenderer () |
Private Attributes | |
StyleImage * | image |
|
inline |
|
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.
Definition at line 585 of file style.cc.
References image.
|
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.
|
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.
|
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.
Definition at line 543 of file style.cc.
References dw::core::Imgbuf::createSimilarBuf(), DBG_OBJ_ASSOC, dw::core::Imgbuf::getRootHeight(), dw::core::Imgbuf::getRootWidth(), image, dw::core::style::StyleImage::imgbufSrc, dw::core::style::StyleImage::imgbufTiled, lout::misc::max(), dw::core::style::MIN_BG_IMG_H, dw::core::style::MIN_BG_IMG_W, dw::core::style::OPT_BG_IMG_H, dw::core::style::OPT_BG_IMG_W, dw::core::Imgbuf::ref(), dw::core::style::StyleImage::tilesX, dw::core::style::StyleImage::tilesY, and dw::core::Imgbuf::unref().
|
private |
Definition at line 790 of file style.hh.
Referenced by setBuffer(), and StyleImgRenderer().