Public Member Functions

gui2::tcanvas::tshape Class Reference

Abstract 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 ~tshape ()
virtual void draw (surface &canvas, const game_logic::map_formula_callable &variables)=0
 Draws the canvas.

Detailed Description

Abstract base class for all other shapes.

The other shapes are declared and defined in canvas.cpp, since the implementation details are not interesting for users of the canvas.

Definition at line 54 of file canvas.hpp.


Constructor & Destructor Documentation

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

Definition at line 57 of file canvas.hpp.


Member Function Documentation

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

Draws the canvas.

Parameters:
canvas The resulting image will be blitted upon this canvas.
variables The canvas can have formulas in it's definition, this parameter contains the values for these formulas.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:49 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs