Classes | Namespaces | Functions

gui/widgets/helper.hpp File Reference

#include "SDL.h"
#include <pango/pango-layout.h>
#include <boost/type_traits.hpp>
#include <boost/utility/enable_if.hpp>
#include <string>
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.

Classes

struct  gui2::tpoint
 Holds a 2D point. More...

Namespaces

namespace  game_logic
namespace  gui2
 

A class inherited from ttext_box that displays its input as stars.


Functions

bool gui2::init ()
 Initializes the gui subsystems.
std::ostream & gui2::operator<< (std::ostream &stream, const tpoint &point)
SDL_Rect gui2::create_rect (const tpoint &origin, const tpoint &size)
 Creates a rectangle.
Uint32 gui2::decode_color (const std::string &color)
 Converts a color string to a color.
PangoAlignment gui2::decode_text_alignment (const std::string &alignment)
 Converts a text alignment string to a text alignment.
std::string gui2::encode_text_alignment (const PangoAlignment alignment)
 Converts a text alignment to its string representation.
unsigned gui2::decode_font_style (const std::string &style)
 Converts a font style string to a font style.
t_string gui2::missing_widget (const std::string &id)
 Returns a default error message if a mandatory widget is omitted.
void gui2::get_screen_size_variables (game_logic::map_formula_callable &variable)
 Gets a formula object with the screen size.
game_logic::map_formula_callable gui2::get_screen_size_variables ()
 Gets a formula object with the screen size.
tpoint gui2::get_mouse_position ()
 Returns the current mouse position.
std::string gui2::debug_truncate (const std::string &text)
 Returns a truncated version of the text.
template<class R , class F >
gui2::function_wrapper (const R result, const F &function)
 Helper for function wrappers.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:05:00 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs