FontWrapper Class Reference
#include <tilefont.h>
List of all members.
|
Public Member Functions |
| virtual | ~FontWrapper () |
| virtual bool | load_font (const char *font_name, unsigned int font_size, bool outline)=0 |
| virtual void | render_textblock (unsigned int x, unsigned int y, unsigned char *chars, unsigned char *colours, unsigned int width, unsigned int height, bool drop_shadow=false)=0 |
| virtual void | render_string (unsigned int x, unsigned int y, const char *text, const coord_def &min_pos, const coord_def &max_pos, unsigned char font_colour, bool drop_shadow=false, unsigned char box_alpha=0, unsigned char box_colour=0, unsigned int outline=0, bool tooltip=false)=0 |
| virtual void | store (FontBuffer &buf, float &x, float &y, const std::string &s, const VColour &c)=0 |
| virtual void | store (FontBuffer &buf, float &x, float &y, const formatted_string &fs)=0 |
| virtual void | store (FontBuffer &buf, float &x, float &y, unsigned char c, const VColour &col)=0 |
| virtual unsigned int | char_width () const =0 |
| virtual unsigned int | char_height () const =0 |
| virtual unsigned int | string_width (const char *text) const =0 |
| virtual unsigned int | string_width (const formatted_string &str) const =0 |
| virtual unsigned int | string_height (const char *text) const =0 |
| virtual unsigned int | string_height (const formatted_string &str) const =0 |
| virtual formatted_string | split (const formatted_string &str, unsigned int max_width, unsigned int max_height)=0 |
| virtual const GenericTexture * | font_tex () const =0 |
Static Public Member Functions |
| static FontWrapper * | create () |
Constructor & Destructor Documentation
| virtual FontWrapper::~FontWrapper |
( |
|
) |
[inline, virtual] |
Member Function Documentation
| virtual bool FontWrapper::load_font |
( |
const char * |
font_name, |
|
|
unsigned int |
font_size, |
|
|
bool |
outline | |
|
) |
| | [pure virtual] |
| virtual void FontWrapper::render_textblock |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
unsigned char * |
chars, |
|
|
unsigned char * |
colours, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
bool |
drop_shadow = false | |
|
) |
| | [pure virtual] |
| virtual void FontWrapper::render_string |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
const char * |
text, |
|
|
const coord_def & |
min_pos, |
|
|
const coord_def & |
max_pos, |
|
|
unsigned char |
font_colour, |
|
|
bool |
drop_shadow = false, |
|
|
unsigned char |
box_alpha = 0, |
|
|
unsigned char |
box_colour = 0, |
|
|
unsigned int |
outline = 0, |
|
|
bool |
tooltip = false | |
|
) |
| | [pure virtual] |
| virtual void FontWrapper::store |
( |
FontBuffer & |
buf, |
|
|
float & |
x, |
|
|
float & |
y, |
|
|
const std::string & |
s, |
|
|
const VColour & |
c | |
|
) |
| | [pure virtual] |
| virtual void FontWrapper::store |
( |
FontBuffer & |
buf, |
|
|
float & |
x, |
|
|
float & |
y, |
|
|
unsigned char |
c, |
|
|
const VColour & |
col | |
|
) |
| | [pure virtual] |
| virtual unsigned int FontWrapper::char_width |
( |
|
) |
const [pure virtual] |
| virtual unsigned int FontWrapper::char_height |
( |
|
) |
const [pure virtual] |
| virtual unsigned int FontWrapper::string_width |
( |
const char * |
text |
) |
const [pure virtual] |
| virtual unsigned int FontWrapper::string_width |
( |
const formatted_string & |
str |
) |
const [pure virtual] |
| virtual unsigned int FontWrapper::string_height |
( |
const char * |
text |
) |
const [pure virtual] |
| virtual unsigned int FontWrapper::string_height |
( |
const formatted_string & |
str |
) |
const [pure virtual] |
| virtual const GenericTexture* FontWrapper::font_tex |
( |
|
) |
const [pure virtual] |
The documentation for this class was generated from the following file: