nux-0.9.46

nux::FontTexture Class Reference

#include <NuxGraphics/FontTexture.h>

Inheritance diagram for nux::FontTexture:
nux::Object nux::Trackable

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 CharsetGetFontInfo () 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
nux::FontTexture::NUX_DECLARE_OBJECT_TYPE ( FontTexture  ,
Object   
)
bool nux::FontTexture::XToCursorPosition ( const NString Str,
int  iX,
t_u32  FirstVisibleCharIndex,
int *  piCh,
int *  piTrailing 
)

Friends And Related Function Documentation

friend class FontRenderer [friend]

Field Documentation


The documentation for this class was generated from the following file: