#include <canvas.hpp>
Public Member Functions | |
virtual void | draw (surface &canvas, const game_logic::map_formula_callable &variables)=0 |
virtual | ~tshape () |
Protected Member Functions | |
void | put_pixel (ptrdiff_t start, Uint32 colour, unsigned w, unsigned x, unsigned y) |
void | draw_line (surface &canvas, Uint32 colour, const unsigned x1, unsigned y1, const unsigned x2, unsigned y2) |
The other shapes are declared and defined in canvas.cpp.
Definition at line 50 of file canvas.hpp.
virtual gui2::tcanvas::tshape::~tshape | ( | ) | [inline, virtual] |
Definition at line 56 of file canvas.hpp.
virtual void gui2::tcanvas::tshape::draw | ( | surface & | canvas, | |
const game_logic::map_formula_callable & | variables | |||
) | [pure virtual] |
Implemented in gui2::tline, gui2::trectangle, gui2::timage, and gui2::ttext.
void gui2::tcanvas::tshape::put_pixel | ( | ptrdiff_t | start, | |
Uint32 | colour, | |||
unsigned | w, | |||
unsigned | x, | |||
unsigned | y | |||
) | [protected] |
void gui2::tcanvas::tshape::draw_line | ( | surface & | canvas, | |
Uint32 | colour, | |||
const unsigned | x1, | |||
unsigned | y1, | |||
const unsigned | x2, | |||
unsigned | y2 | |||
) | [protected] |
Definition at line 769 of file canvas.cpp.
References DBG_G_D, and put_pixel().
Referenced by gui2::trectangle::draw(), and gui2::tline::draw().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |