newspeoplefor developersdocumentationdownloads

nFont2 Class Reference

#include <nfont2.h>

Inheritance diagram for nFont2:

nResource nRoot nObject nNode nReferenced nSignalEmitter nD3D9Font nGLFont List of all members.

Detailed Description

A font resource class.

(C) 2003 RadonLabs GmbH

Definition at line 16 of file nfont2.h.


Public Types

enum  RenderFlags {
  Bottom = (1<<0),
  Top = (1<<1),
  Center = (1<<2),
  Left = (1<<3),
  Right = (1<<4),
  VCenter = (1<<5),
  NoClip = (1<<6),
  ExpandTabs = (1<<7),
  WordBreak = (1<<8)
}
 rendering flags (apply to nGfxServer2::DrawText()) More...

Public Member Functions

 nFont2 ()
 constructor
virtual ~nFont2 ()
 destructor
void SetFontDesc (const nFontDesc &desc)
 set font description
const nFontDescGetFontDesc () const
 get font description

Static Public Member Functions

static RenderFlags StringToRenderFlag (const char *str)
 convert render flag string to enum
static const char * RenderFalgToString (RenderFlags renderFlag)
 convert render flag enum to string

Protected Attributes

nFontDesc fontDesc

Member Enumeration Documentation

enum nFont2::RenderFlags
 

rendering flags (apply to nGfxServer2::DrawText())

Enumerator:
Bottom 
Top 
Center 
Left 
Right 
VCenter 
NoClip 
ExpandTabs 
WordBreak 

Definition at line 20 of file nfont2.h.


Constructor & Destructor Documentation

nFont2::nFont2  ) 
 

constructor

Definition at line 12 of file nfont2_main.cc.

nFont2::~nFont2  )  [virtual]
 

destructor

Definition at line 20 of file nfont2_main.cc.


Member Function Documentation

void nFont2::SetFontDesc const nFontDesc desc  ) 
 

set font description

Definition at line 32 of file nfont2_main.cc.

const nFontDesc & nFont2::GetFontDesc  )  const
 

get font description

Definition at line 41 of file nfont2_main.cc.

nFont2::RenderFlags nFont2::StringToRenderFlag const char *  str  )  [inline, static]
 

convert render flag string to enum

Convert the given string to its corresponded render flag.

Definition at line 81 of file nfont2.h.

static const char* nFont2::RenderFalgToString RenderFlags  renderFlag  )  [static]
 

convert render flag enum to string


Member Data Documentation

nFontDesc nFont2::fontDesc [protected]
 

Definition at line 48 of file nfont2.h.


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

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