The Battle for Wesnoth  1.15.1+dev
Classes | Namespaces | Macros | Typedefs | Functions | Variables
minimap.cpp File Reference
#include "gui/widgets/minimap.hpp"
#include "gui/core/log.hpp"
#include "gui/core/widget_definition.hpp"
#include "gui/core/window_builder.hpp"
#include "gui/core/register_widget.hpp"
#include "gui/widgets/settings.hpp"
#include "map/map.hpp"
#include "map/exception.hpp"
#include "sdl/rect.hpp"
#include "terrain/type_data.hpp"
#include "../../minimap.hpp"
#include "utils/functional.hpp"
#include <algorithm>
Include dependency graph for minimap.cpp:

Go to the source code of this file.

Classes

struct  gui2::key_type
 Key type for the cache. More...
 
struct  gui2::value_type
 Value type for the cache. More...
 

Namespaces

 gui2
 Generic file dialog.
 
 gui2::implementation
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define ERR_CF   LOG_STREAM_INDENT(err, log_config)
 
#define LOG_SCOPE_HEADER   get_control_type() + " [" + id() + "] " + __func__
 
#define LOG_HEADER   LOG_SCOPE_HEADER + ':'
 

Typedefs

typedef std::map< key_type, value_type > gui2::tcache
 The cache. More...
 

Functions

static bool gui2::operator< (const key_type &lhs, const key_type &rhs)
 
static bool gui2::compare (const std::pair< unsigned, tcache::iterator > &lhs, const std::pair< unsigned, tcache::iterator > &rhs)
 
static void gui2::shrink_cache ()
 

Variables

static lg::log_domain log_config ("config")
 
static const size_t gui2::cache_max_size = 100
 Maximum number of items in the cache (multiple of 4). More...
 
static const ::configgui2::terrain = nullptr
 The terrain used to create the cache. More...
 
static tcache gui2::cache
 

Macro Definition Documentation

◆ ERR_CF

#define ERR_CF   LOG_STREAM_INDENT(err, log_config)

Definition at line 35 of file minimap.cpp.

Referenced by gui2::minimap::get_image().

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file minimap.cpp.

◆ LOG_HEADER

#define LOG_HEADER   LOG_SCOPE_HEADER + ':'

Definition at line 38 of file minimap.cpp.

Referenced by gui2::minimap::impl_draw_background().

◆ LOG_SCOPE_HEADER

#define LOG_SCOPE_HEADER   get_control_type() + " [" + id() + "] " + __func__

Definition at line 37 of file minimap.cpp.

Variable Documentation

◆ log_config

lg::log_domain log_config("config")
static