15 #ifndef GUI_WIDGETS_HELPER_HPP_INCLUDED
16 #define GUI_WIDGETS_HELPER_HPP_INCLUDED
20 #include <pango/pango-layout.h>
22 #include <boost/cstdint.hpp>
23 #include <boost/type_traits.hpp>
24 #include <boost/utility/enable_if.hpp>
28 #if defined(_MSC_VER) && _MSC_VER <= 1600
33 #include <SDL_video.h>
42 class map_formula_callable;
171 template <
class R,
class F>
std::string encode_text_alignment(const PangoAlignment alignment)
Converts a text alignment to its string representation.
unsigned decode_font_style(const std::string &style)
Converts a font style string to a font style.
R function_wrapper(const R result, const F &function)
Helper for function wrappers.
PangoAlignment decode_text_alignment(const std::string &alignment)
Converts a text alignment string to a text alignment.
SDL_Rect create_rect(const tpoint &origin, const tpoint &size)
Creates a rectangle.
A class inherited from ttext_box that displays its input as stars.
tpoint get_mouse_position()
Returns the current mouse position.
bool init()
Initializes the gui subsystems.
std::string debug_truncate(const std::string &text)
Returns a truncated version of the text.
boost::uint32_t decode_color(const std::string &color)
Converts a color string to a color.
void get_screen_size_variables(game_logic::map_formula_callable &variable)
Gets a formula object with the screen size.
GLsizei const GLcharARB ** string
t_string missing_widget(const std::string &id)
Returns a default error message if a mandatory widget is omitted.