#include <xfont.h>
Inherits WFont.
Inheritance diagram for XFont:


Public Member Functions | |
| XFont (Monitor *monitor, XFontStruct *font) | |
| virtual | ~XFont () |
| virtual void | drawText (Window window, GC gc, int x, int y, string text) |
| virtual int | textWidth (string text) |
| virtual unsigned int | height () |
| virtual void | setHeight (unsigned int height) |
| XFontStruct * | font () const |
| virtual int | ascent () |
| virtual int | descent () |
Static Public Member Functions | |
| static XFont * | load (Monitor *monitor, string name) |
Private Attributes | |
| XFontStruct * | font_ |
| unsigned int | height_ |
Definition at line 22 of file xfont.h.
| XFont::XFont | ( | Monitor * | monitor, | |
| XFontStruct * | font | |||
| ) |
Definition at line 11 of file xfont.cpp.
References font_, WFont::NORMAL, and WFont::type_.
Referenced by load().
| void XFont::drawText | ( | Window | window, | |
| GC | gc, | |||
| int | x, | |||
| int | y, | |||
| string | text | |||
| ) | [virtual] |
| int XFont::textWidth | ( | string | text | ) | [virtual] |
| unsigned int XFont::height | ( | ) | [virtual] |
| void XFont::setHeight | ( | unsigned int | height | ) | [virtual] |
| XFontStruct * XFont::font | ( | ) | const |
| int XFont::ascent | ( | ) | [virtual] |
| int XFont::descent | ( | ) | [virtual] |
Reimplemented from WFont.
Definition at line 18 of file xfont.cpp.
References font(), setHeight(), XCORE, and XFont().
Referenced by Monitor::initFonts(), and WFont::load().
Here is the call graph for this function:

XFontStruct* XFont::font_ [private] |
unsigned int XFont::height_ [private] |
1.5.1