gui2::tcanvas::tshape Class Reference

Base class for all other shapes. More...

#include <canvas.hpp>

Inheritance diagram for gui2::tcanvas::tshape:

Inheritance graph
[legend]
Collaboration diagram for gui2::tcanvas::tshape:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

Base class for all other shapes.

The other shapes are declared and defined in canvas.cpp.

Definition at line 50 of file canvas.hpp.


Constructor & Destructor Documentation

virtual gui2::tcanvas::tshape::~tshape (  )  [inline, virtual]

Definition at line 56 of file canvas.hpp.


Member Function Documentation

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

void gui2::tcanvas::tshape::put_pixel ( ptrdiff_t  start,
Uint32  colour,
unsigned  w,
unsigned  x,
unsigned  y 
) [protected]

Definition at line 761 of file canvas.cpp.

Referenced by draw_line().

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().


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

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