newspeoplefor developersdocumentationdownloads

nFontDesc Class Reference

#include <nfontdesc.h>

List of all members.


Detailed Description

A font description object used to create a nFont object.

(C) 2003 RadonLabs GmbH

Definition at line 16 of file nfontdesc.h.


Public Types

enum  Weight {
  Thin,
  Light,
  Normal,
  Bold,
  ExtraBold,
  InvalidWeight
}
 font weights More...

Public Member Functions

 nFontDesc ()
 constructor
 ~nFontDesc ()
 destructor
bool operator== (const nFontDesc &rhs) const
 equality operator
void SetHeight (int h)
 set font height
int GetHeight () const
 get font height
void SetWeight (Weight w)
 set font weight
Weight GetWeight () const
 get font weight
void SetItalic (bool b)
 set italic flag
bool GetItalic () const
 get italic flag
void SetUnderline (bool b)
 set underline flag
bool GetUnderline () const
 get underline flag
void SetAntiAliased (bool b)
 set antialiased flag
bool GetAntiAliased () const
 get antialiased flag
void SetTypeFace (const char *n)
 set typeface name
const char * GetTypeFace () const
 get typeface name
void SetFilename (const char *n)
 set optional font file name
const char * GetFilename () const
 get optional font file name

Static Public Member Functions

static Weight StringToWeight (const nString &str)
 convert render flag string to enum
static nString WeightToString (Weight renderFlag)
 convert render flag enum to string

Member Enumeration Documentation

enum nFontDesc::Weight
 

font weights

Enumerator:
Thin 
Light 
Normal 
Bold 
ExtraBold 
InvalidWeight 

Definition at line 20 of file nfontdesc.h.


Constructor & Destructor Documentation

nFontDesc::nFontDesc  )  [inline]
 

constructor

Definition at line 84 of file nfontdesc.h.

nFontDesc::~nFontDesc  )  [inline]
 

destructor

Definition at line 99 of file nfontdesc.h.


Member Function Documentation

bool nFontDesc::operator== const nFontDesc rhs  )  const [inline]
 

equality operator

Definition at line 109 of file nfontdesc.h.

void nFontDesc::SetHeight int  h  )  [inline]
 

set font height

Definition at line 124 of file nfontdesc.h.

int nFontDesc::GetHeight  )  const [inline]
 

get font height

Definition at line 134 of file nfontdesc.h.

void nFontDesc::SetWeight Weight  w  )  [inline]
 

set font weight

Definition at line 144 of file nfontdesc.h.

nFontDesc::Weight nFontDesc::GetWeight  )  const [inline]
 

get font weight

Definition at line 154 of file nfontdesc.h.

void nFontDesc::SetItalic bool  b  )  [inline]
 

set italic flag

Definition at line 164 of file nfontdesc.h.

bool nFontDesc::GetItalic  )  const [inline]
 

get italic flag

Definition at line 174 of file nfontdesc.h.

void nFontDesc::SetUnderline bool  b  )  [inline]
 

set underline flag

Definition at line 184 of file nfontdesc.h.

bool nFontDesc::GetUnderline  )  const [inline]
 

get underline flag

Definition at line 193 of file nfontdesc.h.

void nFontDesc::SetAntiAliased bool  b  )  [inline]
 

set antialiased flag

Definition at line 203 of file nfontdesc.h.

bool nFontDesc::GetAntiAliased  )  const [inline]
 

get antialiased flag

Definition at line 213 of file nfontdesc.h.

void nFontDesc::SetTypeFace const char *  n  )  [inline]
 

set typeface name

Definition at line 223 of file nfontdesc.h.

const char * nFontDesc::GetTypeFace  )  const [inline]
 

get typeface name

Definition at line 234 of file nfontdesc.h.

void nFontDesc::SetFilename const char *  n  )  [inline]
 

set optional font file name

Definition at line 244 of file nfontdesc.h.

const char * nFontDesc::GetFilename  )  const [inline]
 

get optional font file name

Definition at line 255 of file nfontdesc.h.

nFontDesc::Weight nFontDesc::StringToWeight const nString str  )  [inline, static]
 

convert render flag string to enum

Convert the given string to its corresponded weight.

Definition at line 287 of file nfontdesc.h.

static nString nFontDesc::WeightToString Weight  renderFlag  )  [static]
 

convert render flag enum to string


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

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.