#include <font.h>
Inherited by XFont.
Inheritance diagram for WFont:


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 WFont * | load (Monitor *monitor, string name) |
Protected Attributes | |
| Monitor * | monitor_ |
| Type | type_ |
Definition at line 20 of file font.h.
| enum WFont::Type |
| WFont::Type WFont::type | ( | ) | const |
Definition at line 32 of file font.cpp.
References type_.
Referenced by Monitor::illuminateTransText(), Widget::initGC(), and Monitor::initGC().
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] |
| virtual int WFont::textWidth | ( | string | text | ) | [pure virtual] |
| 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] |
| virtual int WFont::descent | ( | ) | [pure virtual] |
Implemented in XFont.
Monitor* WFont::monitor_ [protected] |
Type WFont::type_ [protected] |
1.5.1