The Battle for Wesnoth  1.19.5+dev
Namespaces | Functions
status_label_helper.hpp File Reference
#include "gettext.hpp"
#include "gui/core/event/dispatcher.hpp"
#include "gui/widgets/menu_button.hpp"
#include "gui/widgets/selectable_item.hpp"
#include "gui/widgets/styled_widget.hpp"
#include <functional>
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 >
t_string gui2::default_status_value_getter (const T &w)
 
template<typename W >
std::function< void()> gui2::bind_status_label (widget *find_in, const std::string &source_id, const std::function< t_string(const 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...