Classes | Namespaces | Defines | Functions | Variables

text.cpp File Reference

#include "text.hpp"
#include "gettext.hpp"
#include "gui/widgets/helper.hpp"
#include "gui/auxiliary/log.hpp"
#include "font.hpp"
#include "serialization/string_utils.hpp"
#include "tstring.hpp"
#include <boost/foreach.hpp>
#include <cassert>
#include <cstring>
Include dependency graph for text.cpp:

Go to the source code of this file.

Classes

struct  font::decode_table

Namespaces

namespace  font
 

Graphical text output.


Defines

#define GETTEXT_DOMAIN   "wesnoth-lib"
#define PANGO_VERSION_CHECK(a, b, c)   0
#define DECODE(i)

Functions

std::string font::escape_text (const std::string &text)
static void font::decode_pixel (unsigned char *p)
 Converts from premultiplied alpha to plain alpha.

Variables

static decode_table font::decode_table

Define Documentation

#define DECODE (   i  ) 
Value:
do { \
        unsigned color = p[i]; \
        color = color * div / 256; \
        if (color > 255) color = 255; \
        p[i] = color; \
    } while (0)

Referenced by font::decode_pixel().

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file text.cpp.

#define PANGO_VERSION_CHECK (   a,
  b,
  c 
)    0

Definition at line 33 of file text.cpp.


Variable Documentation

PangoFontDescription* font_

Definition at line 498 of file text.cpp.

PangoLayoutIter* itor_

Definition at line 61 of file text.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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