WFont Class Reference

#include <font.h>

Inherited by XFont.

Inheritance diagram for WFont:

Inheritance graph
[legend]
Collaboration diagram for WFont:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Type { NORMAL, XFT }

Public Member Functions

 WFont (Monitor *monitor)
virtual ~WFont ()
Type type () const
virtual void drawText (Window window, GC gc, int x, int y, string text)=0
virtual int textWidth (string text)=0
virtual unsigned int height ()=0
virtual void setHeight (unsigned int height)=0
virtual int ascent ()=0
virtual int descent ()=0

Static Public Member Functions

static WFontload (Monitor *monitor, string name)

Protected Attributes

Monitormonitor_
Type type_

Detailed Description

Base class for fonts (currently default XFonts and XftFonts).

Definition at line 20 of file font.h.


Member Enumeration Documentation

enum WFont::Type

Enumerator:
NORMAL 
XFT 

Definition at line 24 of file font.h.


Constructor & Destructor Documentation

WFont::WFont ( Monitor monitor  ) 

Definition at line 12 of file font.cpp.

References monitor_.

WFont::~WFont (  )  [virtual]

Definition at line 16 of file font.cpp.


Member Function Documentation

WFont::Type WFont::type (  )  const

Definition at line 32 of file font.cpp.

References type_.

Referenced by Monitor::illuminateTransText(), Widget::initGC(), and Monitor::initGC().

WFont * WFont::load ( Monitor monitor,
string  name 
) [static]

Reimplemented in XFont.

Definition at line 19 of file font.cpp.

References XFont::load().

Referenced by Monitor::initFonts().

Here is the call graph for this function:

virtual void WFont::drawText ( Window  window,
GC  gc,
int  x,
int  y,
string  text 
) [pure virtual]

Implemented in XFont.

Referenced by Monitor::illuminateTransText(), and Label::update().

virtual int WFont::textWidth ( string  text  )  [pure virtual]

Implemented in XFont.

Referenced by Monitor::illuminateTransText(), and Label::textWidth().

virtual unsigned int WFont::height (  )  [pure virtual]

Implemented in XFont.

Referenced by Monitor::buttonWidth(), Monitor::illuminateTransText(), Label::textWidth(), Monitor::titleBarHeight(), and Label::update().

virtual void WFont::setHeight ( unsigned int  height  )  [pure virtual]

Implemented in XFont.

virtual int WFont::ascent (  )  [pure virtual]

Implemented in XFont.

Referenced by Monitor::illuminateTransText(), and Label::update().

virtual int WFont::descent (  )  [pure virtual]

Implemented in XFont.


Member Data Documentation

Monitor* WFont::monitor_ [protected]

Definition at line 47 of file font.h.

Referenced by WFont().

Type WFont::type_ [protected]

Definition at line 48 of file font.h.

Referenced by type(), and XFont::XFont().


The documentation for this class was generated from the following files:
Generated on Thu May 24 15:20:28 2007 for ncwm by  doxygen 1.5.1