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_ |
Definition at line 420 of file canvas.cpp.
gui2::timage::timage | ( | const config & | cfg | ) |
Definition at line 443 of file canvas.cpp.
References surface::assign(), gui2::create_rect(), DBG_G_P, debug, image::get_image(), image_, make_neutral_surface(), and src_clip_.
void gui2::timage::draw | ( | surface & | canvas, | |
const game_logic::map_formula_callable & | variables | |||
) | [virtual] |
Implement shape::draw().
Implements gui2::tcanvas::tshape.
Definition at line 492 of file canvas.cpp.
References blit_surface(), DBG_G_D, boost::foreach_detail_::done(), dst_clip_, h_, image_, scale_surface(), src_clip_, stretch_, stretch_surface_horizontal(), stretch_surface_vertical(), w_, x_, and y_.
tformula<unsigned> gui2::timage::x_ [private] |
tformula<unsigned> gui2::timage::y_ [private] |
tformula<unsigned> gui2::timage::w_ [private] |
tformula<unsigned> gui2::timage::h_ [private] |
SDL_Rect gui2::timage::src_clip_ [private] |
SDL_Rect gui2::timage::dst_clip_ [private] |
surface gui2::timage::image_ [private] |
bool gui2::timage::stretch_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |