#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 CVideo * | target_ |
SDL_Rect | rect_ |
surface | surface_ |
surface_restorer::surface_restorer | ( | class CVideo * | target, |
const SDL_Rect & | rect | ||
) |
surface_restorer::~surface_restorer | ( | ) |
|
inline |
void surface_restorer::cancel | ( | ) |
Definition at line 2513 of file utils.cpp.
References surface::assign(), and surface_.
void surface_restorer::restore | ( | ) | const |
Definition at line 2496 of file utils.cpp.
References CVideo::getSurface(), surface::null(), rect_, sdl_blit(), surface_, target_, and update_rect().
Referenced by hotkey::show_binding_dialog(), default_map_generator::user_config(), and ~surface_restorer().
void surface_restorer::restore | ( | SDL_Rect const & | dst | ) | const |
Definition at line 2482 of file utils.cpp.
References CVideo::getSurface(), sdl::intersect_rects(), surface::null(), rect_, sdl_blit(), surface_, target_, and update_rect().
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().
|
private |
|
private |
|
private |