The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Functions
settings.hpp File Reference

This file contains the settings handling of the widget library. More...

#include "utils/functional.hpp"
#include "config.hpp"
#include "gui/core/widget_definition.hpp"
#include "gui/core/window_builder.hpp"
#include "tstring.hpp"
#include <string>
#include <vector>
Include dependency graph for settings.hpp:

Go to the source code of this file.

Classes

class  gui2::tunit_test_access_only
 Special helper class to get the list of registered windows. More...
 
struct  gui2::twindow_builder_invalid_id
 Helper struct to signal that get_window_builder failed. More...
 

Namespaces

 gui2
 A class inherited from ttext_box that displays its input as stars.
 
 gui2::settings
 This namespace contains the 'global' settings.
 

Functions

void gui2::register_window (const std::string &id)
 Registers a window. More...
 
void gui2::register_widget (const std::string &id, std::function< void(tgui_definition &gui_definition,const std::string &definition_type,const config &cfg,const char *key)> functor)
 Registers a widgets. More...
 
void gui2::load_widget_definitions (tgui_definition &gui_definition, const std::string &definition_type, const std::vector< tcontrol_definition_ptr > &definitions)
 Loads the definitions of a widget. More...
 
template<class T >
void gui2::load_widget_definitions (tgui_definition &gui_definition, const std::string &definition_type, const config &cfg, const char *key)
 Loads the definitions of a widget. More...
 
tresolution_definition_ptr gui2::get_control (const std::string &control_type, const std::string &definition)
 
std::vector
< twindow_builder::tresolution >
::const_iterator 
gui2::get_window_builder (const std::string &type)
 Returns an interator to the requested builder. More...
 
void gui2::load_settings ()
 Loads the setting for the theme. More...
 
std::vector< ttip > gui2::settings::get_tips ()
 

Detailed Description

This file contains the settings handling of the widget library.

Definition in file settings.hpp.