#include <IUI_Font.h>
Inheritance diagram for IUI_Font:
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. |
|
Render specifying number of rows & columns and where to start.
Used by CUI_TextBox Implemented in CUI_FixedBMFont, and CUI_VarBMFont. |
|
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.
Implemented in CUI_FixedBMFont, and CUI_VarBMFont. |