Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
dw::Textblock::SpaceImgRenderer Class Reference

#include <textblock.hh>

Public Member Functions

 SpaceImgRenderer (Textblock *textblock, int wordNo)
 
void getBgArea (int *x, int *y, int *width, int *height)
 Return the area covered by the background image.
 
core::style::StylegetStyle ()
 Return the style this background image is part of.
 
- Public Member Functions inherited from dw::Textblock::WordImgRenderer
 WordImgRenderer (Textblock *textblock, int wordNo)
 
 ~WordImgRenderer ()
 
void setData (int xWordWidget, int lineNo)
 
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".
 
core::style::StylegetStyle ()
 Return the style this background image is part of.
 
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::ExternalWidgetImgRenderer
void getPaddingArea (int *x, int *y, int *width, int *height)
 
StyleImagegetBackgroundImage ()
 
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.
 
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 ()
 

Additional Inherited Members

- Protected Attributes inherited from dw::Textblock::WordImgRenderer
Textblocktextblock
 
int wordNo
 
int xWordWidget
 
int lineNo
 
bool dataSet
 

Detailed Description

Definition at line 324 of file textblock.hh.

Constructor & Destructor Documentation

◆ SpaceImgRenderer()

dw::Textblock::SpaceImgRenderer::SpaceImgRenderer ( Textblock textblock,
int  wordNo 
)
inline

Definition at line 327 of file textblock.hh.

Member Function Documentation

◆ getBgArea()

void dw::Textblock::SpaceImgRenderer::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 110 of file textblock.cc.

References dw::Textblock::WordImgRenderer::getBgArea().

◆ getStyle()

core::style::Style * dw::Textblock::SpaceImgRenderer::getStyle ( )
virtual

Return the style this background image is part of.

Implements dw::core::style::StyleImage::ExternalWidgetImgRenderer.

Definition at line 118 of file textblock.cc.


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