#include <NuxGraphics/FontTexture.h>
Public Member Functions |
| NUX_DECLARE_OBJECT_TYPE (FontTexture, Object) |
| FontTexture (const TCHAR *FontFile, NUX_FILE_LINE_PROTO) |
| FontTexture (INT width, INT height, BYTE *Texture) |
| ~FontTexture () |
int | GetLineHeight () const |
int | GetCharWidth (const TCHAR &c) const |
int | GetStringWidth (const NString &str) const |
int | GetCharStringWidth (const TCHAR *str) const |
int | GetStringWidth (const NString &str, int num_char_to_compute) const |
int | GetCharStringWidth (const TCHAR *str, int num_char_to_compute) const |
int | GetFontHeight () |
bool | CursorPosToX (const NString &Str, int icp, bool fTrailing, int *pX) |
bool | XToCursorPosition (const NString &Str, int iX, t_u32 FirstVisibleCharIndex, int *piCh, int *piTrailing) |
bool | BMFontParseFNT (std::istream &Stream) |
const Charset & | GetFontInfo () const |
Data Fields |
std::vector< BaseTexture * > | TextureArray |
Friends |
class | FontRenderer |
Constructor & Destructor Documentation
nux::FontTexture::FontTexture |
( |
const TCHAR * |
FontFile, |
|
|
NUX_FILE_LINE_PROTO |
|
|
) |
| |
nux::FontTexture::FontTexture |
( |
INT |
width, |
|
|
INT |
height, |
|
|
BYTE * |
Texture |
|
) |
| |
nux::FontTexture::~FontTexture |
( |
| ) |
|
Member Function Documentation
bool nux::FontTexture::BMFontParseFNT |
( |
std::istream & |
Stream | ) |
|
bool nux::FontTexture::CursorPosToX |
( |
const NString & |
Str, |
|
|
int |
icp, |
|
|
bool |
fTrailing, |
|
|
int * |
pX |
|
) |
| |
int nux::FontTexture::GetCharStringWidth |
( |
const TCHAR * |
str | ) |
const |
int nux::FontTexture::GetCharStringWidth |
( |
const TCHAR * |
str, |
|
|
int |
num_char_to_compute |
|
) |
| const |
int nux::FontTexture::GetCharWidth |
( |
const TCHAR & |
c | ) |
const |
int nux::FontTexture::GetFontHeight |
( |
| ) |
|
const Charset& nux::FontTexture::GetFontInfo |
( |
| ) |
const |
int nux::FontTexture::GetLineHeight |
( |
| ) |
const [inline] |
int nux::FontTexture::GetStringWidth |
( |
const NString & |
str, |
|
|
int |
num_char_to_compute |
|
) |
| const |
int nux::FontTexture::GetStringWidth |
( |
const NString & |
str | ) |
const |
bool nux::FontTexture::XToCursorPosition |
( |
const NString & |
Str, |
|
|
int |
iX, |
|
|
t_u32 |
FirstVisibleCharIndex, |
|
|
int * |
piCh, |
|
|
int * |
piTrailing |
|
) |
| |
Friends And Related Function Documentation
Field Documentation
The documentation for this class was generated from the following file: