The Battle for Wesnoth  1.19.7+dev
Namespaces | Functions
helper.hpp File Reference
#include "color.hpp"
#include "font/text.hpp"
#include <string>
#include <string_view>
Include dependency graph for helper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 wfl
 
 gui2
 Generic file dialog.
 

Functions

color_t gui2::decode_color (const std::string &color)
 Converts a color string to a color. More...
 
PangoAlignment gui2::decode_text_alignment (const std::string &alignment)
 Converts a text alignment string to a text alignment. More...
 
PangoWeight gui2::decode_text_weight (const std::string &weight)
 Converts a text weight string to a PangoWeight. More...
 
PangoStyle gui2::decode_text_style (const std::string &style)
 Converts a text style string to a PangoStyle. More...
 
font::pango_text::FONT_STYLE gui2::decode_font_style (const std::string &style)
 Converts a font style string to a font style. More...
 
PangoEllipsizeMode gui2::decode_ellipsize_mode (const std::string &ellipsize_mode)
 Converts a text ellipsize mode string to a PangoEllipsizeMode. More...
 
std::string gui2::encode_text_alignment (const PangoAlignment alignment)
 Converts a PangoAlignment to its string representation. More...
 
std::string gui2::encode_ellipsize_mode (const PangoEllipsizeMode ellipsize_mode)
 Converts a PangoEllipsizeMode to its string representation. More...
 
t_string gui2::missing_widget (const std::string &id)
 Returns a default error message if a mandatory widget is omitted. More...
 
void gui2::get_screen_size_variables (wfl::map_formula_callable &variable)
 Gets a formula object with the screen size. More...
 
wfl::map_formula_callable gui2::get_screen_size_variables ()
 Gets a formula object with the screen size. More...
 
point gui2::get_mouse_position ()
 Returns the current mouse position. More...
 
std::string_view gui2::debug_truncate (std::string_view text)
 Returns a truncated version of the text. More...