The Battle for Wesnoth  1.19.9+dev
Classes | Namespaces | Functions
attributes.hpp File Reference
#include <pango/pango-layout.h>
#include "font/font_options.hpp"
Include dependency graph for attributes.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  font::attribute_list
 Helper class to encapsulate the management of a PangoAttrList. More...
 

Namespaces

 font
 Graphical text output.
 

Functions

void font::add_attribute_weight (attribute_list &list, unsigned offset_start, unsigned offset_end, PangoWeight weight)
 Add Pango font weight attribute to a specific portion of text. More...
 
void font::add_attribute_style (attribute_list &list, unsigned offset_start, unsigned offset_end, PangoStyle style)
 Add Pango font style attribute to a specific portion of text, used to set italic/oblique text. More...
 
void font::add_attribute_underline (attribute_list &list, unsigned offset_start, unsigned offset_end, PangoUnderline underline)
 Add Pango underline attribute to a specific portion of text. More...
 
void font::add_attribute_fg_color (attribute_list &list, unsigned offset_start, unsigned offset_end, const color_t &color)
 Add Pango fg color attribute to a specific portion of text. More...
 
void font::add_attribute_bg_color (attribute_list &list, unsigned offset_start, unsigned offset_end, const color_t &color)
 Mark a specific portion of text for highlighting. More...
 
void font::add_attribute_size (attribute_list &list, unsigned offset_start, unsigned offset_end, int size)
 Add Pango font size attribute to a specific portion of text. More...
 
void font::add_attribute_font_family (attribute_list &list, unsigned offset_start, unsigned offset_end, font::family_class family)
 Add Pango font family attribute to a specific portion of text. More...