Dillo v3.1.1-111-gd4f56d0d
Loading...
Searching...
No Matches
dw::core::Widget::WidgetImgRenderer Class Reference

Implementation which represents the whole widget. More...

#include <widget.hh>

Public Member Functions

 WidgetImgRenderer (Widget *widget)
 
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::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 ()
 

Private Attributes

Widgetwidget
 

Detailed Description

Implementation which represents the whole widget.

The only instance is set created needed.

Definition at line 104 of file widget.hh.

Constructor & Destructor Documentation

◆ WidgetImgRenderer()

dw::core::Widget::WidgetImgRenderer::WidgetImgRenderer ( Widget widget)
inline

Definition at line 110 of file widget.hh.

References widget.

Member Function Documentation

◆ draw()

void dw::core::Widget::WidgetImgRenderer::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 67 of file widget.cc.

◆ getBgArea()

void dw::core::Widget::WidgetImgRenderer::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 50 of file widget.cc.

◆ getRefArea()

void dw::core::Widget::WidgetImgRenderer::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 56 of file widget.cc.

◆ getStyle()

style::Style * dw::core::Widget::WidgetImgRenderer::getStyle ( )
virtual

Return the style this background image is part of.

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

Definition at line 62 of file widget.cc.

◆ readyToDraw()

bool dw::core::Widget::WidgetImgRenderer::readyToDraw ( )
virtual

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

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

Definition at line 45 of file widget.cc.

References dw::core::Widget::wasAllocated(), and widget.

Member Data Documentation

◆ widget

Widget* dw::core::Widget::WidgetImgRenderer::widget
private

Definition at line 107 of file widget.hh.

Referenced by readyToDraw(), and WidgetImgRenderer().


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