Public Types | Public Member Functions | Public Attributes

char_block_map Struct Reference

Collaboration diagram for char_block_map:
Collaboration graph
[legend]

List of all members.

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.
void compress ()
 Compresses map by merging consecutive ranges with the same font, even if there is some unassociated ranges inbetween.
subset_id get_id (int ch)

Public Attributes

cbmap_t cbmap

Detailed Description

Definition at line 97 of file font.cpp.


Member Typedef Documentation

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

Definition at line 104 of file font.cpp.

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

Definition at line 105 of file font.cpp.


Constructor & Destructor Documentation

char_block_map::char_block_map (  )  [inline]

Definition at line 99 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 inbetween.

Definition at line 133 of file font.cpp.

References cbmap, and LOG_FT.

Referenced by font::set_font_list().

Here is the caller graph for this function:

subset_id char_block_map::get_id ( int  ch  )  [inline]

Definition at line 149 of file font.cpp.

References cbmap.

Referenced by split_text().

Here is the caller graph for this function:

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

References cbmap.

Referenced by font::set_font_list().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 106 of file font.cpp.

Referenced by clear_fonts(), compress(), get_id(), and insert().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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