Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

IUI_Font Class Reference

A base font interface. More...

#include <IUI_Font.h>

Inheritance diagram for IUI_Font:

CUI_Resource CUI_FixedBMFont CUI_VarBMFont List of all members.

Public Member Functions

 IUI_Font ()
 Constructor.

virtual ~IUI_Font ()
 Destructor.

virtual bool RenderText (double dtime, IUI_Renderer *renderer, char *text)=0
 A generic text rendering function.

virtual bool RenderText (double dtime, IUI_Renderer *renderer, char *text, unsigned int columns, unsigned int rows, unsigned int startColumn, unsigned int startRow, bool wrap, unsigned int &textColumns, unsigned int &textRows, bool invert=false, unsigned int cursorPosition=0, unsigned short cursorType=UI_CURSOR_NONE)=0
 Render specifying number of rows & columns and where to start.

virtual bool Count (char *text, unsigned int columns, unsigned int rows, bool wrap, unsigned int &textColumns, unsigned int &textRows)=0
 Count the number of columns and rows without rendering.


Detailed Description

A base font interface.


Member Function Documentation

virtual bool IUI_Font::RenderText double  dtime,
IUI_Renderer renderer,
char *  text,
unsigned int  columns,
unsigned int  rows,
unsigned int  startColumn,
unsigned int  startRow,
bool  wrap,
unsigned int &  textColumns,
unsigned int &  textRows,
bool  invert = false,
unsigned int  cursorPosition = 0,
unsigned short  cursorType = UI_CURSOR_NONE
[pure virtual]
 

Render specifying number of rows & columns and where to start.

Used by CUI_TextBox

Much more useful for multiline text chunks

Also returns information about how much space the text itself uses.

Implemented in CUI_FixedBMFont, and CUI_VarBMFont.

virtual bool IUI_Font::RenderText double  dtime,
IUI_Renderer renderer,
char *  text
[pure virtual]
 

A generic text rendering function.

All text should be squeezed into [0,1] unit square. Must be implemented. Overload it for more useful text rendering.

Parameters:
text the text to be rendered
dtime the current time (for animation)

Implemented in CUI_FixedBMFont, and CUI_VarBMFont.


The documentation for this class was generated from the following file:
Generated on Mon Sep 29 23:07:04 2003 for glGUI by doxygen 1.3.4