Dillo v3.1.1-111-gd4f56d0d
|
Suitable for widgets and parts of widgets. More...
#include <style.hh>
Public Member Functions | |
void | getPaddingArea (int *x, int *y, int *width, int *height) |
StyleImage * | getBackgroundImage () |
BackgroundRepeat | getBackgroundRepeat () |
BackgroundAttachment | getBackgroundAttachment () |
Length | getBackgroundPositionX () |
Length | getBackgroundPositionY () |
virtual Style * | getStyle ()=0 |
Return the style this background image is part of. | |
Public Member Functions inherited from dw::core::style::StyleImage::ExternalImgRenderer | |
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. | |
virtual bool | readyToDraw ()=0 |
If this method returns false, nothing is done at all. | |
virtual void | getBgArea (int *x, int *y, int *width, int *height)=0 |
Return the area covered by the background image. | |
virtual void | getRefArea (int *xRef, int *yRef, int *widthRef, int *heightRef)=0 |
Return the "reference area". | |
virtual void | draw (int x, int y, int width, int height)=0 |
Draw (or queue for drawing) an area, which is given in canvas coordinates. | |
Public Member Functions inherited from dw::core::ImgRenderer | |
virtual | ~ImgRenderer () |
|
virtual |
Implements dw::core::style::StyleImage::ExternalImgRenderer.
Definition at line 731 of file style.cc.
References dw::core::style::BACKGROUND_ATTACHMENT_SCROLL, and dw::core::style::StyleAttrs::backgroundAttachment.
|
virtual |
Implements dw::core::style::StyleImage::ExternalImgRenderer.
Definition at line 718 of file style.cc.
References dw::core::style::StyleAttrs::backgroundImage.
|
virtual |
Implements dw::core::style::StyleImage::ExternalImgRenderer.
Definition at line 737 of file style.cc.
References dw::core::style::StyleAttrs::backgroundPositionX, and dw::core::style::createPerLength().
|
virtual |
Implements dw::core::style::StyleImage::ExternalImgRenderer.
Definition at line 743 of file style.cc.
References dw::core::style::StyleAttrs::backgroundPositionY, and dw::core::style::createPerLength().
|
virtual |
Implements dw::core::style::StyleImage::ExternalImgRenderer.
Definition at line 724 of file style.cc.
References dw::core::style::BACKGROUND_REPEAT, and dw::core::style::StyleAttrs::backgroundRepeat.
void dw::core::style::StyleImage::ExternalWidgetImgRenderer::getPaddingArea | ( | int * | x, |
int * | y, | ||
int * | width, | ||
int * | height | ||
) |
|
pure virtual |
Return the style this background image is part of.
Implemented in dw::Textblock::WordImgRenderer, dw::Textblock::SpaceImgRenderer, and dw::core::Widget::WidgetImgRenderer.