The Battle for Wesnoth  1.15.1+dev
Namespaces | Macros | Variables
help_text_area.cpp File Reference
#include "help/help_text_area.hpp"
#include "config.hpp"
#include "game_config.hpp"
#include "help/help_impl.hpp"
#include "picture.hpp"
#include "log.hpp"
#include "preferences/general.hpp"
#include "sdl/rect.hpp"
#include "serialization/parser.hpp"
#include "video.hpp"
#include <algorithm>
#include <ostream>
#include <vector>
Include dependency graph for help_text_area.cpp:

Go to the source code of this file.

Namespaces

 help
 

Macros

#define WRN_DP   LOG_STREAM(warn, log_display)
 
#define TRY(name)
 

Variables

static lg::log_domain log_display ("display")
 

Macro Definition Documentation

◆ TRY

#define TRY (   name)
Value:
do { \
if (config &child = cfg.child(#name)) \
handle_##name##_cfg(child); \
} while (0)
config & child(config_key_type key, int n=0)
Returns the nth child with the given key, or a reference to an invalid config if there is none...
Definition: config.cpp:420
static const char * name(const std::vector< SDL_Joystick *> &joysticks, const std::size_t index)
Definition: joystick.cpp:48
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:92

Referenced by help::help_text_area::set_items().

◆ WRN_DP

#define WRN_DP   LOG_STREAM(warn, log_display)

Definition at line 32 of file help_text_area.cpp.

Referenced by help::help_text_area::add_img_item().

Variable Documentation

◆ log_display

lg::log_domain log_display("display")
static