The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Public Attributes | List of all members
font::char_block_map Struct Reference

Public Types

typedef std::pair< int, subset_idblock_t
 
typedef std::map< int, block_tcbmap_t
 

Public Member Functions

 char_block_map ()
 
void insert (int first, int last, subset_id id)
 Associates not-associated parts of a range with a new font. More...
 
void compress ()
 Compresses map by merging consecutive ranges with the same font, even if there is some unassociated ranges in-between. More...
 
subset_id get_id (int ch)
 

Public Attributes

cbmap_t cbmap
 

Detailed Description

Definition at line 67 of file sdl_ttf.cpp.

Member Typedef Documentation

typedef std::pair<int, subset_id> font::char_block_map::block_t

Definition at line 74 of file sdl_ttf.cpp.

typedef std::map<int, block_t> font::char_block_map::cbmap_t

Definition at line 75 of file sdl_ttf.cpp.

Constructor & Destructor Documentation

font::char_block_map::char_block_map ( )
inline

Definition at line 69 of file sdl_ttf.cpp.

Member Function Documentation

void font::char_block_map::compress ( )
inline

Compresses map by merging consecutive ranges with the same font, even if there is some unassociated ranges in-between.

Definition at line 103 of file sdl_ttf.cpp.

References e, i, and LOG_FT.

Referenced by font::sdl_ttf::set_font_list().

subset_id font::char_block_map::get_id ( int  ch)
inline

Definition at line 119 of file sdl_ttf.cpp.

References i.

Referenced by font::sdl_ttf::split_text().

void font::char_block_map::insert ( int  first,
int  last,
subset_id  id 
)
inline

Associates not-associated parts of a range with a new font.

Definition at line 78 of file sdl_ttf.cpp.

References i.

Referenced by font::sdl_ttf::set_font_list().

Member Data Documentation

cbmap_t font::char_block_map::cbmap

Definition at line 76 of file sdl_ttf.cpp.

Referenced by font::clear_fonts().


The documentation for this struct was generated from the following file: