#include "global.hpp"#include "font.hpp"#include "foreach.hpp"#include "gettext.hpp"#include "hotkeys.hpp"#include "log.hpp"#include "serialization/string_utils.hpp"#include "theme.hpp"#include "wml_exception.hpp"
Go to the source code of this file.
Defines | |
| #define | DBG_DP LOG_STREAM(debug, log_display) |
| #define | LOG_DP LOG_STREAM(info, log_display) |
| #define | ERR_DP LOG_STREAM(err, log_display) |
Functions | |
| static size_t | compute (std::string expr, size_t ref1, size_t ref2=0) |
| static _rect | read_rect (const config &cfg) |
| static SDL_Rect | read_sdl_rect (const config &cfg) |
| static std::string | resolve_rect (const std::string &rect_str) |
| static config & | find_ref (const std::string &id, config &cfg, bool remove=false) |
| static void | expand_partialresolution (config &dst_cfg, const config &top_cfg) |
| static void | do_resolve_rects (const config &cfg, config &resolved_config, config *resol_cfg=NULL) |
Variables | |
| static lg::log_domain | log_display ("display") |
Definition in file theme.cpp.
| #define DBG_DP LOG_STREAM(debug, log_display) |
Definition at line 31 of file theme.cpp.
Referenced by theme::add_object().
| #define ERR_DP LOG_STREAM(err, log_display) |
Definition at line 33 of file theme.cpp.
Referenced by do_resolve_rects(), and theme::set_resolution().
| #define LOG_DP LOG_STREAM(info, log_display) |
Definition at line 32 of file theme.cpp.
Referenced by theme::modify_label(), and theme::set_resolution().
| static size_t compute | ( | std::string | expr, | |
| size_t | ref1, | |||
| size_t | ref2 = 0 | |||
| ) | [static] |
Definition at line 45 of file theme.cpp.
Referenced by theme::object::modify_location(), and resolve_rect().

| static void do_resolve_rects | ( | const config & | cfg, | |
| config & | resolved_config, | |||
| config * | resol_cfg = NULL | |||
| ) | [static] |
Definition at line 217 of file theme.cpp.
References config::add_child(), config::all_children_range(), config::any_child::cfg, ERR_DP, find_ref(), config::any_child::key, config::merge_attributes(), read_rect(), and resolve_rect().
Referenced by theme::theme().


Definition at line 161 of file theme.cpp.
References config::add_child(), config::any_child::cfg, config::child_range(), error(), config::find_child(), find_ref(), config::any_child::key, config::merge_attributes(), and parent.
Referenced by theme::theme().


Definition at line 118 of file theme.cpp.
References config::all_children_range(), and config::erase().
Referenced by do_resolve_rects(), expand_partialresolution(), and theme::refresh_title2().


Definition at line 58 of file theme.cpp.
References utils::split(), _rect::x1, _rect::x2, _rect::y1, and _rect::y2.
Referenced by do_resolve_rects(), and read_sdl_rect().


| static SDL_Rect read_sdl_rect | ( | const config & | cfg | ) | [static] |
| static std::string resolve_rect | ( | const std::string & | rect_str | ) | [static] |
Definition at line 91 of file theme.cpp.
References compute(), utils::split(), _rect::x1, _rect::x2, _rect::y1, and _rect::y2.
Referenced by do_resolve_rects().


lg::log_domain log_display("display") [static] |
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:10:49 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |