#include "global.hpp"
#include "config.hpp"
#include "font.hpp"
#include "gettext.hpp"
#include "language.hpp"
#include "log.hpp"
#include "sdl_utils.hpp"
#include "theme.hpp"
#include "util.hpp"
#include "serialization/string_utils.hpp"
#include "wml_exception.hpp"
#include <cassert>
#include <cstdlib>
#include <sstream>
Go to the source code of this file.
Defines | |
#define | DBG_DP LOG_STREAM(debug, display) |
#define | LOG_DP LOG_STREAM(info, display) |
#define | ERR_DP LOG_STREAM(err, 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 | |
const int | XDim = 1024 |
const int | YDim = 768 |
const size_t | DefaultFontSize = font::SIZE_NORMAL |
const Uint32 | DefaultFontRGB = 0x00C8C8C8 |
_rect | ref_rect = { 0, 0, 0, 0 } |
config | empty_config = config() |
Definition in file theme.cpp.
static size_t compute | ( | std::string | expr, | |
size_t | ref1, | |||
size_t | ref2 = 0 | |||
) | [static] |
Definition at line 49 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 232 of file theme.cpp.
References config::add_child(), ERR_DP, find_ref(), config::ordered_begin(), config::ordered_end(), read_rect(), ref_rect, resolve_rect(), value, and config::values.
Referenced by theme::theme().
Definition at line 162 of file theme.cpp.
References config::add_child(), config::all_children(), config::find_child(), find_ref(), config::get_children(), parent, and config::values.
Referenced by theme::theme().
Definition at line 126 of file theme.cpp.
References config::all_children(), empty_config, config::find_child(), and config::remove_child().
Referenced by do_resolve_rects(), expand_partialresolution(), and theme::refresh_title2().
Definition at line 62 of file theme.cpp.
References rect, 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] |
const Uint32 DefaultFontRGB = 0x00C8C8C8 [static] |
Definition at line 44 of file theme.cpp.
Referenced by theme::label::label(), and theme::status_item::status_item().
const size_t DefaultFontSize = font::SIZE_NORMAL [static] |
Definition at line 43 of file theme.cpp.
Referenced by theme::label::label(), and theme::status_item::status_item().
config empty_config = config() [static] |
Definition at line 46 of file theme.cpp.
Referenced by do_resolve_rects(), resolve_rect(), and theme::set_object_location().
const int XDim = 1024 [static] |
const int YDim = 768 [static] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |