Public Member Functions | Private Attributes

surface_restorer Struct Reference

#include <sdl_utils.hpp>

Collaboration diagram for surface_restorer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 surface_restorer ()
 surface_restorer (class CVideo *target, const SDL_Rect &rect)
 ~surface_restorer ()
void restore () const
void restore (SDL_Rect const &dst) const
void update ()
void cancel ()
const SDL_Rect & area () const

Private Attributes

class CVideotarget_
SDL_Rect rect_
surface surface_

Detailed Description

Definition at line 402 of file sdl_utils.hpp.


Constructor & Destructor Documentation

surface_restorer::surface_restorer (  ) 

Definition at line 2009 of file sdl_utils.cpp.

surface_restorer::surface_restorer ( class CVideo target,
const SDL_Rect &  rect 
)

Definition at line 2013 of file sdl_utils.cpp.

References update().

Here is the call graph for this function:

surface_restorer::~surface_restorer (  ) 

Definition at line 2019 of file sdl_utils.cpp.

References restore().

Here is the call graph for this function:


Member Function Documentation

const SDL_Rect& surface_restorer::area (  )  const [inline]

Definition at line 413 of file sdl_utils.hpp.

References rect_.

void surface_restorer::cancel (  ) 

Definition at line 2055 of file sdl_utils.cpp.

References surface::assign(), and surface_.

Here is the call graph for this function:

void surface_restorer::restore ( SDL_Rect const &  dst  )  const

Definition at line 2024 of file sdl_utils.cpp.

References CVideo::getSurface(), intersect_rects(), surface::null(), rect_, sdl_blit(), surface_, target_, and update_rect().

Here is the call graph for this function:

void surface_restorer::restore (  )  const

Definition at line 2038 of file sdl_utils.cpp.

References CVideo::getSurface(), surface::null(), rect_, sdl_blit(), surface_, target_, and update_rect().

Referenced by default_map_generator::user_config(), and ~surface_restorer().

Here is the call graph for this function:

Here is the caller graph for this function:

void surface_restorer::update (  ) 

Definition at line 2047 of file sdl_utils.cpp.

References surface::assign(), get_surface_portion(), CVideo::getSurface(), rect_, surface_, and target_.

Referenced by surface_restorer().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

SDL_Rect surface_restorer::rect_ [private]

Definition at line 417 of file sdl_utils.hpp.

Referenced by area(), restore(), and update().

Definition at line 418 of file sdl_utils.hpp.

Referenced by cancel(), restore(), and update().

Definition at line 416 of file sdl_utils.hpp.

Referenced by restore(), and update().


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

Generated by doxygen 1.7.1 on Fri May 25 2012 01:14:17 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs