The Battle for Wesnoth  1.15.1+dev
Namespaces | Functions
status_label_helper.hpp File Reference
#include "gettext.hpp"
#include "gui/core/event/dispatcher.hpp"
#include "gui/widgets/integer_selector.hpp"
#include "gui/widgets/selectable_item.hpp"
#include "gui/widgets/styled_widget.hpp"
#include "utils/functional.hpp"
Include dependency graph for status_label_helper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 gui2
 Generic file dialog.
 

Functions

template<typename T >
static std::enable_if_t< std::is_base_of< selectable_item, T >::value, std::string > gui2::default_status_value_getter (T &w)
 Default value getter for selectable widgets (like toggle buttons) More...
 
template<typename T >
static std::enable_if_t< std::is_base_of< integer_selector, T >::value, std::string > gui2::default_status_value_getter (T &w)
 Default value getter for integer-based widgets (like sliders) More...
 
template<typename W >
std::function< void()> gui2::bind_status_label (widget *find_in, const std::string &source_id, const std::function< std::string(W &)> value_getter=default_status_value_getter< W >, const std::string &label_id="")
 Creates a bound status label that will reflect the label state of a widget. More...