Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Font_TTF Class Reference

#include <font_ttf.h>

Inheritance diagram for CL_Font_TTF:

Inheritance graph
[legend]
Collaboration diagram for CL_Font_TTF:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Font_TTF (CL_String name, CL_InputSourceProvider *provider)
virtual ~CL_Font_TTF ()
virtual int get_height ()
virtual int get_text_width (const char *text)
virtual int get_char_width (const char character)
virtual void print_left (int x, int y, const char *text, int n_height=1)
virtual void print_left (int x, int y, float scale_x, float scale_y, const char *text)
virtual void print_center (int x, int y, const char *text)
virtual void print_right (int x, int y, const char *text)
virtual void put_target (int x, int y, const char *text, CL_Target *target, int alignment)
int change_size (int size)
unsigned int change_colour (unsigned char r, unsigned char g, unsigned char b, unsigned char a)

Protected Methods

void generate_font ()

Protected Attributes

int num_faces
int num_glyphs
unsigned int flags
int num_fixed_sizes
CL_InputSourceProviderinput_provider
CL_InputSourceinput_source
CL_String filename
CL_Surfacechars [256]
font_adj adjust [256]
bool chars_init
int width
int height
int space_len
int subtract_width
unsigned char* font_mem
int* font_sizes
int size
unsigned char r
unsigned char g
unsigned char b
unsigned char a

Constructor & Destructor Documentation

CL_Font_TTF::CL_Font_TTF ( CL_String name,
CL_InputSourceProvider * provider )
 

virtual CL_Font_TTF::~CL_Font_TTF ( ) [virtual]
 


Member Function Documentation

unsigned int CL_Font_TTF::change_colour ( unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a ) [virtual]
 

Reimplemented from CL_Font_Generic.

int CL_Font_TTF::change_size ( int size ) [virtual]
 

Reimplemented from CL_Font_Generic.

void CL_Font_TTF::generate_font ( ) [protected]
 

virtual int CL_Font_TTF::get_char_width ( const char character ) [virtual]
 

Reimplemented from CL_Font_Generic.

int CL_Font_TTF::get_height ( ) [inline, virtual]
 

Reimplemented from CL_Font_Generic.

Definition at line 42 of file font_ttf.h.

virtual int CL_Font_TTF::get_text_width ( const char * text ) [virtual]
 

Reimplemented from CL_Font_Generic.

virtual void CL_Font_TTF::print_center ( int x,
int y,
const char * text ) [virtual]
 

Reimplemented from CL_Font_Generic.

virtual void CL_Font_TTF::print_left ( int x,
int y,
float scale_x,
float scale_y,
const char * text ) [virtual]
 

Reimplemented from CL_Font_Generic.

virtual void CL_Font_TTF::print_left ( int x,
int y,
const char * text,
int n_height = 1 ) [virtual]
 

Reimplemented from CL_Font_Generic.

virtual void CL_Font_TTF::print_right ( int x,
int y,
const char * text ) [virtual]
 

Reimplemented from CL_Font_Generic.

virtual void CL_Font_TTF::put_target ( int x,
int y,
const char * text,
CL_Target * target,
int alignment ) [virtual]
 

Reimplemented from CL_Font_Generic.


Member Data Documentation

unsigned char CL_Font_TTF::a [protected]
 

Definition at line 81 of file font_ttf.h.

font_adj CL_Font_TTF::adjust[256] [protected]
 

Definition at line 69 of file font_ttf.h.

unsigned char CL_Font_TTF::b [protected]
 

Definition at line 81 of file font_ttf.h.

CL_Surface* CL_Font_TTF::chars[256] [protected]
 

Definition at line 68 of file font_ttf.h.

bool CL_Font_TTF::chars_init [protected]
 

Definition at line 70 of file font_ttf.h.

CL_String CL_Font_TTF::filename [protected]
 

Definition at line 66 of file font_ttf.h.

unsigned int CL_Font_TTF::flags [protected]
 

Definition at line 61 of file font_ttf.h.

unsigned char* CL_Font_TTF::font_mem [protected]
 

Definition at line 77 of file font_ttf.h.

int* CL_Font_TTF::font_sizes [protected]
 

Definition at line 78 of file font_ttf.h.

unsigned char CL_Font_TTF::g [protected]
 

Definition at line 81 of file font_ttf.h.

int CL_Font_TTF::height [protected]
 

Definition at line 73 of file font_ttf.h.

CL_InputSourceProvider* CL_Font_TTF::input_provider [protected]
 

Definition at line 64 of file font_ttf.h.

CL_InputSource* CL_Font_TTF::input_source [protected]
 

Definition at line 65 of file font_ttf.h.

int CL_Font_TTF::num_faces [protected]
 

Definition at line 59 of file font_ttf.h.

int CL_Font_TTF::num_fixed_sizes [protected]
 

Definition at line 62 of file font_ttf.h.

int CL_Font_TTF::num_glyphs [protected]
 

Definition at line 60 of file font_ttf.h.

unsigned char CL_Font_TTF::r [protected]
 

Definition at line 81 of file font_ttf.h.

int CL_Font_TTF::size [protected]
 

Definition at line 79 of file font_ttf.h.

int CL_Font_TTF::space_len [protected]
 

Definition at line 74 of file font_ttf.h.

int CL_Font_TTF::subtract_width [protected]
 

Definition at line 75 of file font_ttf.h.

int CL_Font_TTF::width [protected]
 

Definition at line 72 of file font_ttf.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:56:57 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001