The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
gui2::tcanvas::tshape Class Referenceabstract

Abstract base class for all other shapes. More...

#include <canvas.hpp>

Inheritance diagram for gui2::tcanvas::tshape:
Inheritance graph

Public Member Functions

virtual ~tshape ()
 
virtual void draw (surface &canvas, const game_logic::map_formula_callable &variables)=0
 Draws the canvas. More...
 
- Public Member Functions inherited from reference_counted_object
 reference_counted_object ()
 
 reference_counted_object (const reference_counted_object &)
 
reference_counted_objectoperator= (const reference_counted_object &)
 
virtual ~reference_counted_object ()
 
void add_ref () const
 
void dec_ref () const
 
int refcount () const
 

Additional Inherited Members

- Protected Member Functions inherited from reference_counted_object
void turn_reference_counting_off () const
 

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 53 of file canvas.hpp.

Constructor & Destructor Documentation

virtual gui2::tcanvas::tshape::~tshape ( )
inlinevirtual

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

Draws the canvas.

Parameters
canvasThe resulting image will be blitted upon this canvas.
variablesThe 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: