The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Functions | Variables
text.cpp File Reference
#include "text.hpp"
#include "gettext.hpp"
#include "gui/widgets/helper.hpp"
#include "gui/core/log.hpp"
#include "gui/core/point.hpp"
#include "font.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/unicode.hpp"
#include "tstring.hpp"
#include "preferences.hpp"
#include <cassert>
#include <cstring>
#include "video.hpp"
Include dependency graph for text.cpp:

Go to the source code of this file.

Classes

struct  font::decode_table
 

Namespaces

 font
 Graphical text output.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define DECODE(i)
 

Functions

static bool font::looks_like_url (const std::string &token)
 
std::string font::escape_text (const std::string &text)
 Escapes the markup characters in a text. More...
 
static void font::decode_pixel (unsigned char *p)
 Converts from premultiplied alpha to plain alpha. More...
 

Variables

static struct decode_table font::decode_table
 

Macro Definition Documentation

#define DECODE (   i)
Value:
do { \
unsigned color = p[i]; \
color = color * div / 256; \
if (color > 255) color = 255; \
p[i] = color; \
} while (0)
GLfloat GLfloat p
Definition: glew.h:12766
GLuint color
Definition: glew.h:5801
size_t i
Definition: function.cpp:1057
CALLABLE_WRAPPER_INPUT_END if(key=="terrain")

Referenced by font::decode_pixel().

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file text.cpp.