Public Member Functions | Private Member Functions | Private Attributes | Friends

hud::Font Class Reference

Font parameters. More...

#include <_src_hud_font.hh>

List of all members.

Public Member Functions

 ~Font ()
void SetSize (const fp fontSize)
fp GetSize (void) const
fp GetWidth (void) const
fp GetHeight (void) const
const string & GetPathName (void) const

Private Member Functions

 Font (const string &name, const fp size, const fp widthRatio, const fp heightRatio, const string &pathName)

Private Attributes

string mName
 don't allow changing name to prevent inconsistent parameters
fp mSize
 overall font size
fp mWidthRatio
 hidden font parameter
fp mHeightRatio
 hidden font parameter
string mPathName
 pathname of font file

Friends

class FontMap

Detailed Description

Font parameters.

Font ctor is private. To obtain a Font object, call FontMap::GetFont().

Implementation: Font names are mapped to the hidden implementation-specific parameters by FontMap.


Constructor & Destructor Documentation

hud::Font::Font ( const string &  name,
const fp  size,
const fp  widthRatio,
const fp  heightRatio,
const string &  pathName 
) [private]

ctor/dtor.

hud::Font::~Font (  ) 

Member Function Documentation

fp hud::Font::GetHeight ( void   )  const [inline]
const string& hud::Font::GetPathName ( void   )  const [inline]
fp hud::Font::GetSize ( void   )  const [inline]
fp hud::Font::GetWidth ( void   )  const [inline]
void hud::Font::SetSize ( const fp  fontSize  )  [inline]

Friends And Related Function Documentation

friend class FontMap [friend]

Member Data Documentation

hidden font parameter

string hud::Font::mName [private]

don't allow changing name to prevent inconsistent parameters

string hud::Font::mPathName [private]

pathname of font file

fp hud::Font::mSize [private]

overall font size

hidden font parameter


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11