20 #include <pango/pango-layout.h> 31 class map_formula_callable;
std::string encode_text_alignment(const PangoAlignment alignment)
Converts a text alignment to its string representation.
SDL_Rect create_rect(const point &origin, const point &size)
Creates a rectangle.
PangoAlignment decode_text_alignment(const std::string &alignment)
Converts a text alignment string to a text alignment.
void get_screen_size_variables(wfl::map_formula_callable &variable)
Gets a formula object with the screen size.
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
std::string debug_truncate(const std::string &text)
Returns a truncated version of the text.
point get_mouse_position()
Returns the current mouse position.
font::pango_text::FONT_STYLE decode_font_style(const std::string &style)
Converts a font style string to a font style.
t_string missing_widget(const std::string &id)
Returns a default error message if a mandatory widget is omitted.
color_t decode_color(const std::string &color)
Converts a color string to a color.