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
editor::map_context_refresher Class Reference

Utility class to properly refresh the display when the map context object is replaced without duplicating code. More...

Public Member Functions

 map_context_refresher (context_manager &ec, const map_context &other_mc)
 
 ~map_context_refresher ()
 
void refresh ()
 

Private Attributes

context_managercontext_manager_
 
bool size_changed_
 
bool refreshed_
 

Detailed Description

Utility class to properly refresh the display when the map context object is replaced without duplicating code.

Definition at line 65 of file context_manager.cpp.

Constructor & Destructor Documentation

editor::map_context_refresher::map_context_refresher ( context_manager ec,
const map_context other_mc 
)
inline

Definition at line 68 of file context_manager.cpp.

editor::map_context_refresher::~map_context_refresher ( )
inline

Definition at line 72 of file context_manager.cpp.

References refresh(), and refreshed_.

Member Function Documentation

void editor::map_context_refresher::refresh ( )
inline

Member Data Documentation

context_manager& editor::map_context_refresher::context_manager_
private

Definition at line 101 of file context_manager.cpp.

Referenced by refresh().

bool editor::map_context_refresher::refreshed_
private

Definition at line 103 of file context_manager.cpp.

Referenced by refresh(), and ~map_context_refresher().

bool editor::map_context_refresher::size_changed_
private

Definition at line 102 of file context_manager.cpp.


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