|
Dillo
|
Implementation used for words. More...
#include <textblock.hh>
Public Member Functions | |
| WordImgRenderer (Textblock *textblock, int wordNo) | |
| ~WordImgRenderer () | |
| void | setData (int xWordWidget, int lineNo) |
| bool | readyToDraw () |
| If this method returns false, nothing is done at all. More... | |
| void | getBgArea (int *x, int *y, int *width, int *height) |
| Return the area covered by the background image. More... | |
| void | getRefArea (int *xRef, int *yRef, int *widthRef, int *heightRef) |
| Return the "reference area". More... | |
| core::style::Style * | getStyle () |
| Return the style this background image is part of. More... | |
| void | draw (int x, int y, int width, int height) |
| Draw (or queue for drawing) an area, which is given in canvas coordinates. More... | |
Public Member Functions inherited from dw::core::style::StyleImage::ExternalWidgetImgRenderer | |
| void | getPaddingArea (int *x, int *y, int *width, int *height) |
| StyleImage * | getBackgroundImage () |
| BackgroundRepeat | getBackgroundRepeat () |
| BackgroundAttachment | getBackgroundAttachment () |
| Length | getBackgroundPositionX () |
| Length | getBackgroundPositionY () |
Public Member Functions inherited from dw::core::style::StyleImage::ExternalImgRenderer | |
| 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 () |
Protected Attributes | |
| Textblock * | textblock |
| int | wordNo |
| int | xWordWidget |
| int | lineNo |
| bool | dataSet |
Implementation used for words.
| dw::Textblock::WordImgRenderer::WordImgRenderer | ( | Textblock * | textblock, |
| int | wordNo | ||
| ) |
| dw::Textblock::WordImgRenderer::~WordImgRenderer | ( | ) |
|
virtual |
Draw (or queue for drawing) an area, which is given in canvas coordinates.
Implements dw::core::style::StyleImage::ExternalImgRenderer.
|
virtual |
Return the area covered by the background image.
Implements dw::core::style::StyleImage::ExternalImgRenderer.
Reimplemented in dw::Textblock::SpaceImgRenderer.
References dw::Textblock::Line::borderAscent, and dw::Textblock::Line::borderDescent.
|
virtual |
Return the "reference area".
See comment of "drawBackground".
Implements dw::core::style::StyleImage::ExternalImgRenderer.
|
virtual |
Return the style this background image is part of.
Implements dw::core::style::StyleImage::ExternalWidgetImgRenderer.
Reimplemented in dw::Textblock::SpaceImgRenderer.
|
virtual |
If this method returns false, nothing is done at all.
Implements dw::core::style::StyleImage::ExternalImgRenderer.
References dw::core::Widget::wasAllocated().
| void dw::Textblock::WordImgRenderer::setData | ( | int | xWordWidget, |
| int | lineNo | ||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.8