20 #ifndef THEME_HPP_INCLUDED
21 #define THEME_HPP_INCLUDED
26 #include <SDL_video.h>
28 typedef struct {
size_t x1,y1,x2,
y2; }
_rect;
std::vector< label > labels_
const std::string & text() const
events::generic_event theme_reset_event_
void set_title(const std::string &new_title)
std::string border_image_bottom_odd
std::string border_image_top_even
std::string border_image_bottom_even
std::string border_image_top_odd
std::string corner_image_top_left
const SDL_Rect & mini_map_location(const SDL_Rect &screen) const
std::vector< action > actions_
static void set_known_themes(const config *cfg)
const std::string tooltip(size_t index) const
void set_title(const std::string &new_title)
const std::string & overlay() const
const std::vector< std::string > & items() const
void remove_object(std::string id)
std::vector< panel > panels_
const std::vector< menu > & menus() const
const std::string & image() const
std::string border_image_right
std::string corner_image_bottom_right_even
std::vector< slider > sliders_
void add_object(const config &cfg)
bool font_rgb_set() const
Definitions for the interface to Wesnoth Markup Language (WML).
status_item(const config &cfg)
static std::map< std::string, config > known_themes
SDL_Rect & location(const SDL_Rect &screen) const
const std::vector< label > & labels() const
bool font_rgb_set() const
const std::string & image() const
std::vector< menu > menus_
const status_item * get_status_item(const std::string &item) const
const std::string & postfix() const
const std::string & overlay() const
const std::string & get_id() const
std::string corner_image_top_right_even
const std::string & icon() const
events::generic_event & theme_reset_event()
theme(const config &cfg, const SDL_Rect &screen)
const menu * get_menu_item(const std::string &key) const
void modify(const config &cfg)
std::string corner_image_bottom_left
const SDL_Rect & unit_image_location(const SDL_Rect &screen) const
const menu * context_menu() const
const std::string & title() const
std::string background_image
std::string corner_image_bottom_right_odd
const SDL_Rect & palette_location(const SDL_Rect &screen) const
const std::vector< action > & actions() const
static std::vector< theme_info > get_known_themes()
const std::vector< slider > & sliders() const
object * refresh_title(const std::string &id, const std::string &new_title)
void modify_label(const std::string &id, const std::string &text)
const std::string & title() const
std::string corner_image_top_right_odd
const tborder & border() const
const action * get_action_item(const std::string &key) const
const std::vector< panel > & panels() const
bool tooltip_name_prepend_
bool set_resolution(const SDL_Rect &screen)
std::string border_image_left
void set_text(const std::string &text)
const SDL_Rect & main_map_location(const SDL_Rect &screen) const
std::vector< std::string > items_
object * refresh_title2(const std::string &id, const std::string &title_tag)
const std::string & prefix() const
theme::object & find_element(std::string id)
void modify_location(const _rect &rect)
void set_object_location(theme::object &element, std::string rect_str, std::string ref_id)
const SDL_Rect & get_location() const
const std::string & tooltip() const
A config object defines a single node in a WML file, with access to child nodes.
static ANCHORING read_anchor(const std::string &str)
std::map< std::string, status_item > status_
GLsizei const GLcharARB ** string
const std::string & type() const
const std::string & image() const
const label * get_label() const