The Battle for Wesnoth  1.19.5+dev
Classes | Namespaces | Typedefs | Functions
static_registry.hpp File Reference
#include "gui/core/widget_definition.hpp"
#include "gui/core/window_builder.hpp"
Include dependency graph for static_registry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gui2::registered_widget_parser
 

Namespaces

 gui2
 Generic file dialog.
 

Typedefs

using gui2::widget_parser_t = std::function< styled_widget_definition_ptr(const config &)>
 Function type alias for register_widget. More...
 
using gui2::widget_builder_func_t = std::function< builder_widget_ptr(const config &)>
 Function type alias for register_widget_builder. More...
 

Functions

void gui2::register_window (const std::string &id)
 Registers a window. More...
 
void gui2::register_widget (const std::string &type, widget_parser_t f, const char *key=nullptr)
 Registers a widget type. More...
 
void gui2::register_widget_builder (const std::string &type, widget_builder_func_t functor)
 Registers a widget builder. More...
 
std::set< std::string > & gui2::registered_window_types ()
 Returns the list of registered windows. More...
 
std::map< std::string, registered_widget_parser > & gui2::registered_widget_types ()
 Returns the list of registered widgets and their parsers. More...
 
std::map< std::string, widget_builder_func_t > & gui2::widget_builder_lookup ()
 Returns the list of registered widget builders. More...