The Battle for Wesnoth  1.13.4+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
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 123 of file font.cpp.

Member Typedef Documentation

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

Definition at line 130 of file font.cpp.

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

Definition at line 131 of file font.cpp.

Constructor & Destructor Documentation

char_block_map::char_block_map ( )
inline

Definition at line 125 of file font.cpp.

Member Function Documentation

void 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 159 of file font.cpp.

References e, i, and LOG_FT.

Referenced by font::set_font_list().

subset_id char_block_map::get_id ( int  ch)
inline

Definition at line 175 of file font.cpp.

References i.

Referenced by split_text().

void 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 134 of file font.cpp.

References i.

Referenced by font::set_font_list().

Member Data Documentation

cbmap_t char_block_map::cbmap

Definition at line 132 of file font.cpp.

Referenced by clear_fonts().


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