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

FontBase Class Reference

#include <FontBase.h>

Inheritance diagram for FontBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

A abstract base class for font handling.

Author:
Kautuv <kaustuv@stanford.edu>

Definition at line 33 of file FontBase.h.

Public Member Functions

virtual std::string family () const =0
 Get the family associated with the font.
virtual bool italic () const =0
 Returns true if the font is italic, othwise returns false.
virtual int pointSize () const =0
 Get the pointsize of the font.
virtual void setFamily (const std::string &family)=0
 Set the family associated with the font.
virtual void setItalic (bool enable)=0
 Set the font to be italic.
virtual void setPointSize (int pointsize)=0
 Set the pointsize of the font.
virtual void setWeight (int weight)=0
 Set the weight of the font.
virtual int weight () const =0
 Get the weight of the font.
virtual ~FontBase ()
 The destructor.

Protected Member Functions

 FontBase (const std::string &family, int pointsize=12, int weight=hippodraw::FontWeight::Normal, bool italic=false)
 Constructor which is called to set the family.
 FontBase ()
 The default constructor.


Constructor & Destructor Documentation

FontBase::FontBase  )  [inline, protected]
 

The default constructor.

Definition at line 39 of file FontBase.h.

FontBase::FontBase const std::string family,
int  pointsize = 12,
int  weight = hippodraw::FontWeight::Normal,
bool  italic = false
[protected]
 

Constructor which is called to set the family.

virtual FontBase::~FontBase  )  [inline, virtual]
 

The destructor.

Definition at line 50 of file FontBase.h.


Member Function Documentation

virtual std::string FontBase::family  )  const [pure virtual]
 

Get the family associated with the font.

Implemented in QtFont.

Referenced by OpenGLView::draw_Text(), and FontXML::setAttributes().

virtual bool FontBase::italic  )  const [pure virtual]
 

Returns true if the font is italic, othwise returns false.

Implemented in QtFont.

Referenced by FontXML::setAttributes().

virtual int FontBase::pointSize  )  const [pure virtual]
 

Get the pointsize of the font.

Implemented in QtFont.

Referenced by OpenGLView::draw_Text(), and FontXML::setAttributes().

virtual void FontBase::setFamily const std::string family  )  [pure virtual]
 

Set the family associated with the font.

Implemented in QtFont.

virtual void FontBase::setItalic bool  enable  )  [pure virtual]
 

Set the font to be italic.

Implemented in QtFont.

virtual void FontBase::setPointSize int  pointsize  )  [pure virtual]
 

Set the pointsize of the font.

Implemented in QtFont.

virtual void FontBase::setWeight int  weight  )  [pure virtual]
 

Set the weight of the font.

Implemented in QtFont.

virtual int FontBase::weight  )  const [pure virtual]
 

Get the weight of the font.

Implemented in QtFont.

Referenced by FontXML::setAttributes().


The documentation for this class was generated from the following file:
Generated for HippoDraw-1.12.6.1 by doxygen 1.3.9.1