Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

text Namespace Reference


Functions

bool is_alnum (char c)
list< string > tokenize (string t)
int text_wt_in_pixels (string s, const surf_of_letter_t &surf_of_letter)
void print_letter (SDL_Surface *l, SDL_Surface *screen, int_pair dest_pos, rgb col)
int print_line_of_text (string t, int x, int y, const surf_of_letter_t &surf_of_letter, SDL_Surface *screen, bool calc_wt_only, rgb col)
 Returns the width of the text.
void print_x_centered_line_of_text (string t, int x_min, int x_max, int y, const surf_of_letter_t &surf_of_letter, SDL_Surface *screen, rgb col)
int draw_text_multiline_variable_ht (string text, SDL_Surface *surf, int x_left, int y_top, int x_right, const surf_of_letter_t &surf_of_letter, bool calc_ht_only, rgb col)


Function Documentation

int draw_text_multiline_variable_ht string  text,
SDL_Surface *  surf,
int  x_left,
int  y_top,
int  x_right,
const surf_of_letter_t surf_of_letter,
bool  calc_ht_only,
rgb  col
 

Definition at line 1660 of file fack.cc.

References foreach, map_get(), print_x_centered_line_of_text(), text_wt_in_pixels(), and tokenize().

Referenced by decide_position_for_text(), draw_verb_dialog(), and FACK::start().

bool is_alnum char  c  ) 
 

Definition at line 1496 of file fack.cc.

Referenced by tokenize().

void print_letter SDL_Surface *  l,
SDL_Surface *  screen,
int_pair  dest_pos,
rgb  col
 

Definition at line 1554 of file fack.cc.

References rgb::b, rgb::g, rgb::r, int_pair::x, and int_pair::y.

Referenced by print_line_of_text().

int print_line_of_text string  t,
int  x,
int  y,
const surf_of_letter_t surf_of_letter,
SDL_Surface *  screen,
bool  calc_wt_only,
rgb  col
 

Returns the width of the text.

Definition at line 1603 of file fack.cc.

References map_get(), print_letter(), int_pair::x, and int_pair::y.

Referenced by print_x_centered_line_of_text().

void print_x_centered_line_of_text string  t,
int  x_min,
int  x_max,
int  y,
const surf_of_letter_t surf_of_letter,
SDL_Surface *  screen,
rgb  col
 

Definition at line 1643 of file fack.cc.

References print_line_of_text().

Referenced by draw_text_multiline_variable_ht(), draw_verb_dialog(), FACK::render_command_bar(), and FACK::start().

int text_wt_in_pixels string  s,
const surf_of_letter_t surf_of_letter
 

Definition at line 1539 of file fack.cc.

References map_get().

Referenced by draw_text_multiline_variable_ht().

list<string> tokenize string  t  ) 
 

Definition at line 1504 of file fack.cc.

References is_alnum().

Referenced by draw_text_multiline_variable_ht().


Generated on Wed May 25 15:36:14 2005 for FACK by  doxygen 1.4.0