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_ |
Definition at line 272 of file canvas.cpp.
gui2::trectangle::trectangle | ( | const config & | cfg | ) |
Definition at line 296 of file canvas.cpp.
References border_colour_, border_thickness_, DBG_G_P, and debug.
void gui2::trectangle::draw | ( | surface & | canvas, | |
const game_logic::map_formula_callable & | variables | |||
) | [virtual] |
Implement shape::draw().
Implements gui2::tcanvas::tshape.
Definition at line 343 of file canvas.cpp.
References _, border_colour_, border_thickness_, DBG_G_D, gui2::tcanvas::tshape::draw_line(), fill_colour_, h_, VALIDATE, w_, x_, and y_.
tformula<unsigned> gui2::trectangle::x_ [private] |
tformula<unsigned> gui2::trectangle::y_ [private] |
tformula<unsigned> gui2::trectangle::w_ [private] |
tformula<unsigned> gui2::trectangle::h_ [private] |
unsigned gui2::trectangle::border_thickness_ [private] |
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().
Uint32 gui2::trectangle::border_colour_ [private] |
Uint32 gui2::trectangle::fill_colour_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |