gui2::trectangle Class Reference

Definition of a rectangle shape. More...

Inheritance diagram for gui2::trectangle:

Inheritance graph
[legend]
Collaboration diagram for gui2::trectangle:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 trectangle (const config &cfg)
void draw (surface &canvas, const game_logic::map_formula_callable &variables)
 Implement shape::draw().

Private Attributes

tformula< unsigned > x_
tformula< unsigned > y_
tformula< unsigned > w_
tformula< unsigned > h_
unsigned border_thickness_
 Border thickness if 0 the fill colour is used for the entire widget.
Uint32 border_colour_
Uint32 fill_colour_


Detailed Description

Definition of a rectangle shape.

Definition at line 272 of file canvas.cpp.


Constructor & Destructor Documentation

gui2::trectangle::trectangle ( const config cfg  ) 

Definition at line 296 of file canvas.cpp.

References border_colour_, border_thickness_, DBG_G_P, and debug.


Member Function Documentation

void gui2::trectangle::draw ( surface canvas,
const game_logic::map_formula_callable variables 
) [virtual]


Member Data Documentation

tformula<unsigned> gui2::trectangle::x_ [private]

Definition at line 283 of file canvas.cpp.

Referenced by draw().

tformula<unsigned> gui2::trectangle::y_ [private]

Definition at line 283 of file canvas.cpp.

Referenced by draw().

tformula<unsigned> gui2::trectangle::w_ [private]

Definition at line 283 of file canvas.cpp.

Referenced by draw().

tformula<unsigned> gui2::trectangle::h_ [private]

Definition at line 283 of file canvas.cpp.

Referenced by draw().

Border thickness if 0 the fill colour is used for the entire widget.

Definition at line 290 of file canvas.cpp.

Referenced by draw(), and trectangle().

Definition at line 291 of file canvas.cpp.

Referenced by draw(), and trectangle().

Definition at line 293 of file canvas.cpp.

Referenced by draw().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs