Dillo
Public Member Functions | Private Attributes | List of all members
dw::core::Layout::LayoutImgRenderer Class Reference

Public Member Functions

 LayoutImgRenderer (Layout *layout)
 
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...
 
style::StyleImagegetBackgroundImage ()
 
style::BackgroundRepeat getBackgroundRepeat ()
 
style::BackgroundAttachment getBackgroundAttachment ()
 
style::Length getBackgroundPositionX ()
 
style::Length getBackgroundPositionY ()
 
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::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 ()
 

Private Attributes

Layoutlayout
 

Constructor & Destructor Documentation

dw::core::Layout::LayoutImgRenderer::LayoutImgRenderer ( Layout layout)
inline

References layout.

Member Function Documentation

void dw::core::Layout::LayoutImgRenderer::draw ( int  x,
int  y,
int  width,
int  height 
)
virtual

Draw (or queue for drawing) an area, which is given in canvas coordinates.

Implements dw::core::style::StyleImage::ExternalImgRenderer.

References layout.

style::BackgroundAttachment dw::core::Layout::LayoutImgRenderer::getBackgroundAttachment ( )
virtual
style::StyleImage * dw::core::Layout::LayoutImgRenderer::getBackgroundImage ( )
virtual
style::Length dw::core::Layout::LayoutImgRenderer::getBackgroundPositionX ( )
virtual
style::Length dw::core::Layout::LayoutImgRenderer::getBackgroundPositionY ( )
virtual
style::BackgroundRepeat dw::core::Layout::LayoutImgRenderer::getBackgroundRepeat ( )
virtual
void dw::core::Layout::LayoutImgRenderer::getBgArea ( int *  x,
int *  y,
int *  width,
int *  height 
)
virtual

Return the area covered by the background image.

Implements dw::core::style::StyleImage::ExternalImgRenderer.

void dw::core::Layout::LayoutImgRenderer::getRefArea ( int *  xRef,
int *  yRef,
int *  widthRef,
int *  heightRef 
)
virtual

Return the "reference area".

See comment of "drawBackground".

Implements dw::core::style::StyleImage::ExternalImgRenderer.

References layout, and lout::misc::max().

bool dw::core::Layout::LayoutImgRenderer::readyToDraw ( )
virtual

If this method returns false, nothing is done at all.

Implements dw::core::style::StyleImage::ExternalImgRenderer.

Member Data Documentation

Layout* dw::core::Layout::LayoutImgRenderer::layout
private

Referenced by LayoutImgRenderer().


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