vdr  2.2.0
Public Member Functions | Private Attributes | List of all members
cDummyFont Class Reference

Public Member Functions

 cDummyFont (int CharHeight)
 
virtual int Width (uint c) const
 
virtual int Width (const char *s) const
 
virtual int Height (void) const
 
virtual void DrawText (cBitmap *Bitmap, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, int Width) const
 
virtual void DrawText (cPixmap *Pixmap, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, int Width) const
 
- Public Member Functions inherited from cFont
virtual ~cFont ()
 
virtual const char * FontName (void) const
 
virtual int Size (void) const
 
int Height (const char *s) const
 

Private Attributes

int height
 

Additional Inherited Members

- Static Public Member Functions inherited from cFont
static void SetFont (eDvbFont Font, const char *Name, int CharHeight)
 
static const cFontGetFont (eDvbFont Font)
 
static cFontCreateFont (const char *Name, int CharHeight, int CharWidth=0)
 
static bool GetAvailableFontNames (cStringList *FontNames, bool Monospaced=false)
 
static cString GetFontFileName (const char *FontName)
 

Detailed Description

Definition at line 384 of file font.c.

Constructor & Destructor Documentation

cDummyFont::cDummyFont ( int  CharHeight)
inline

Definition at line 388 of file font.c.

Member Function Documentation

virtual void cDummyFont::DrawText ( cBitmap Bitmap,
int  x,
int  y,
const char *  s,
tColor  ColorFg,
tColor  ColorBg,
int  Width 
) const
inlinevirtual

Draws the given text into the Bitmap at position (x, y) with the given colors.

The text will not exceed the given Width (if > 0), and will end with a complete character.

Implements cFont.

Definition at line 392 of file font.c.

virtual void cDummyFont::DrawText ( cPixmap Pixmap,
int  x,
int  y,
const char *  s,
tColor  ColorFg,
tColor  ColorBg,
int  Width 
) const
inlinevirtual

Reimplemented from cFont.

Definition at line 393 of file font.c.

References eDvbFontSize, and cFont::fonts.

virtual int cDummyFont::Height ( void  ) const
inlinevirtual

Returns the height of this font in pixel (all characters have the same height).

Implements cFont.

Definition at line 391 of file font.c.

virtual int cDummyFont::Width ( uint  c) const
inlinevirtual

Returns the width of the given character in pixel.

Implements cFont.

Definition at line 389 of file font.c.

virtual int cDummyFont::Width ( const char *  s) const
inlinevirtual

Returns the width of the given string in pixel.

Implements cFont.

Definition at line 390 of file font.c.

Member Data Documentation

int cDummyFont::height
private

Definition at line 386 of file font.c.


The documentation for this class was generated from the following file: