TrueTypeFont Class Reference

#include <TrueTypeFont.h>

List of all members.


Public Member Functions

 TrueTypeFont ()
 Public constructor.
virtual ~TrueTypeFont ()
 Virtual destructor.
int Open (const std::string &rPath, const std::string &rName, int pointSize)
 Opens font.
int Open (const std::string &rName, int pointSize)
 Opens font.
void Close ()
 Closes font.
void RenderText (Surface &rSurface, const std::string &rText)
 Renders text.
void GetTextSize (const std::string &rText, int &rWidth, int &rHeight) const
 Gets text size.

Static Public Member Functions

static void Init ()
 Inits library.
static void Quit ()
 Quits library.

Private Attributes

TTF_Font * m_pFont
 (*** add brief description here ***)

Detailed Description

(*** add brief description here ***)
Full Description
(*** add full description here ***)

Constructor & Destructor Documentation

TrueTypeFont (  ) 

Public constructor.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

~TrueTypeFont (  )  [virtual]

Virtual destructor.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)


Member Function Documentation

void Init (  )  [static]

Inits library.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void Quit (  )  [static]

Quits library.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

int Open ( const std::string &  rPath,
const std::string &  rName,
int  pointSize 
)

Opens font.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

int Open ( const std::string &  rName,
int  pointSize 
)

Opens font.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void Close (  ) 

Closes font.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void RenderText ( Surface rSurface,
const std::string &  rText 
)

Renders text.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void GetTextSize ( const std::string &  rText,
int &  rWidth,
int &  rHeight 
) const

Gets text size.

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)


Member Data Documentation

TTF_Font* m_pFont [private]

(*** add brief description here ***)


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