Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::render::Font Class Reference

List of all members.

Detailed Description

a Font that may be used to draw strings on GUI elements.

Author:
Daniel Seibert


Public Member Functions

 Font (const FontPeerPtr &f, int sz=12, bits sty=PLAIN)
 Font (const std::string &file, int sz=12, bits sty=PLAIN)
int getHitIndex (const std::string &s, const Point &o, const int &d=-1) const
const FontPeerPtrgetPeer () const
Size getSize (const std::string &s) const
int getSize () const
bits getStyle () const
bool isBold () const
bool isItalic () const
bool isPlain () const

Static Public Attributes

static const bits BOLD
static const bits ITALIC
static const bits PLAIN


Constructor & Destructor Documentation

ONE::render::Font::Font const std::string &  file,
int  sz = 12,
bits  sty = PLAIN
 

ONE::render::Font::Font const FontPeerPtr f,
int  sz = 12,
bits  sty = PLAIN
 


Member Function Documentation

int ONE::render::Font::getHitIndex const std::string &  s,
const Point o,
const int &  d = -1
const
 

const FontPeerPtr& ONE::render::Font::getPeer  )  const [inline]
 

Size ONE::render::Font::getSize const std::string &  s  )  const
 

int ONE::render::Font::getSize  )  const [inline]
 

bits ONE::render::Font::getStyle  )  const [inline]
 

bool ONE::render::Font::isBold  )  const [inline]
 

bool ONE::render::Font::isItalic  )  const [inline]
 

bool ONE::render::Font::isPlain  )  const [inline]
 


Member Data Documentation

const bits ONE::render::Font::BOLD [static]
 

const bits ONE::render::Font::ITALIC [static]
 

const bits ONE::render::Font::PLAIN [static]
 


Generated on Wed Sep 7 19:03:26 2005 for ONEngine by  doxygen 1.4.3