Dillo v3.1.1-99-gf3103cc4
Loading...
Searching...
No Matches
dw::core::Layout::LayoutImgRenderer Class Reference

Public Member Functions

 LayoutImgRenderer (Layout *layout)
 
bool readyToDraw ()
 If this method returns false, nothing is done at all.
 
void getBgArea (int *x, int *y, int *width, int *height)
 Return the area covered by the background image.
 
void getRefArea (int *xRef, int *yRef, int *widthRef, int *heightRef)
 Return the "reference area".
 
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.
 
- 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.
 
- Public Member Functions inherited from dw::core::ImgRenderer
virtual ~ImgRenderer ()
 

Private Attributes

Layoutlayout
 

Detailed Description

Definition at line 21 of file layout.hh.

Constructor & Destructor Documentation

◆ LayoutImgRenderer()

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

Definition at line 26 of file layout.hh.

References layout.

Member Function Documentation

◆ draw()

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.

Definition at line 89 of file layout.cc.

References layout.

◆ getBackgroundAttachment()

style::BackgroundAttachment dw::core::Layout::LayoutImgRenderer::getBackgroundAttachment ( )
virtual

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

Definition at line 74 of file layout.cc.

References layout.

◆ getBackgroundImage()

style::StyleImage * dw::core::Layout::LayoutImgRenderer::getBackgroundImage ( )
virtual

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

Definition at line 63 of file layout.cc.

References layout.

◆ getBackgroundPositionX()

style::Length dw::core::Layout::LayoutImgRenderer::getBackgroundPositionX ( )
virtual

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

Definition at line 79 of file layout.cc.

References layout.

◆ getBackgroundPositionY()

style::Length dw::core::Layout::LayoutImgRenderer::getBackgroundPositionY ( )
virtual

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

Definition at line 84 of file layout.cc.

References layout.

◆ getBackgroundRepeat()

style::BackgroundRepeat dw::core::Layout::LayoutImgRenderer::getBackgroundRepeat ( )
virtual

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

Definition at line 68 of file layout.cc.

References layout.

◆ getBgArea()

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.

Definition at line 42 of file layout.cc.

◆ getRefArea()

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.

Definition at line 49 of file layout.cc.

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

◆ readyToDraw()

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

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

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

Definition at line 37 of file layout.cc.

Member Data Documentation

◆ layout

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

Definition at line 23 of file layout.hh.

Referenced by LayoutImgRenderer().


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