The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
surface_restorer Struct Reference

#include <utils.hpp>

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 473 of file utils.hpp.

Constructor & Destructor Documentation

surface_restorer::surface_restorer ( )

Definition at line 2467 of file utils.cpp.

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

Definition at line 2471 of file utils.cpp.

References update().

surface_restorer::~surface_restorer ( )

Definition at line 2477 of file utils.cpp.

References restore().

Member Function Documentation

const SDL_Rect& surface_restorer::area ( ) const
inline

Definition at line 484 of file utils.hpp.

References rect_.

void surface_restorer::cancel ( )

Definition at line 2513 of file utils.cpp.

References surface::assign(), and surface_.

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

Definition at line 2505 of file utils.cpp.

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

Referenced by surface_restorer().

Member Data Documentation

SDL_Rect surface_restorer::rect_
private

Definition at line 488 of file utils.hpp.

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

surface surface_restorer::surface_
private

Definition at line 489 of file utils.hpp.

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

class CVideo* surface_restorer::target_
private

Definition at line 487 of file utils.hpp.

Referenced by restore(), and update().


The documentation for this struct was generated from the following files: