Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
CFont Class Reference

#include <Font.h>

Public Member Functions

 CFont (const CStrW &name)
 
 ~CFont ()
 
bool HasRGB ()
 
int GetLineSpacing ()
 
int GetHeight ()
 
int GetCharacterWidth (wchar_t c)
 
void CalculateStringSize (const wchar_t *string, int &w, int &h)
 
const std::map< u16,
UnifontGlyphData > & 
GetGlyphs ()
 
Handle GetTexture ()
 

Private Attributes

Handle h
 

Detailed Description

Definition at line 28 of file Font.h.

Constructor & Destructor Documentation

CFont::CFont ( const CStrW &  name)

Definition at line 31 of file Font.cpp.

CFont::~CFont ( )

Definition at line 45 of file Font.cpp.

Member Function Documentation

void CFont::CalculateStringSize ( const wchar_t string,
int &  w,
int &  h 
)

Definition at line 70 of file Font.cpp.

int CFont::GetCharacterWidth ( wchar_t  c)

Definition at line 65 of file Font.cpp.

const std::map< u16, UnifontGlyphData > & CFont::GetGlyphs ( )

Definition at line 75 of file Font.cpp.

int CFont::GetHeight ( )

Definition at line 60 of file Font.cpp.

int CFont::GetLineSpacing ( )

Definition at line 55 of file Font.cpp.

Handle CFont::GetTexture ( )

Definition at line 80 of file Font.cpp.

bool CFont::HasRGB ( )

Definition at line 50 of file Font.cpp.

Member Data Documentation

Handle CFont::h
private

Definition at line 43 of file Font.h.


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