gui2::timage Class Reference

Definition of an image shape. More...

Inheritance diagram for gui2::timage:

Inheritance graph
[legend]
Collaboration diagram for gui2::timage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 timage (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_
SDL_Rect src_clip_
SDL_Rect dst_clip_
surface image_
bool stretch_


Detailed Description

Definition of an image shape.

Definition at line 420 of file canvas.cpp.


Constructor & Destructor Documentation

gui2::timage::timage ( const config cfg  ) 


Member Function Documentation

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


Member Data Documentation

tformula<unsigned> gui2::timage::x_ [private]

Definition at line 431 of file canvas.cpp.

Referenced by draw().

tformula<unsigned> gui2::timage::y_ [private]

Definition at line 431 of file canvas.cpp.

Referenced by draw().

tformula<unsigned> gui2::timage::w_ [private]

Definition at line 431 of file canvas.cpp.

Referenced by draw().

tformula<unsigned> gui2::timage::h_ [private]

Definition at line 431 of file canvas.cpp.

Referenced by draw().

SDL_Rect gui2::timage::src_clip_ [private]

Definition at line 436 of file canvas.cpp.

Referenced by draw(), and timage().

SDL_Rect gui2::timage::dst_clip_ [private]

Definition at line 437 of file canvas.cpp.

Referenced by draw().

Definition at line 438 of file canvas.cpp.

Referenced by draw(), and timage().

bool gui2::timage::stretch_ [private]

Definition at line 440 of file canvas.cpp.

Referenced by draw().


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

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