|
| cDummyFont (int CharHeight, int CharWidth) |
|
virtual int | Width (void) const |
|
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 |
|
virtual | ~cFont () |
|
virtual const char * | FontName (void) const |
|
virtual int | Size (void) const |
|
virtual int | Width (void) const =0 |
|
virtual int | Width (uint c) const =0 |
|
virtual int | Width (const char *s) const =0 |
|
virtual int | Height (void) const =0 |
|
int | Height (const char *s) const |
|
virtual void | DrawText (cBitmap *Bitmap, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, int Width) const =0 |
|
virtual void | DrawText (cPixmap *Pixmap, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, int Width) const |
|
virtual | ~cFont () |
|
virtual const char * | FontName (void) const |
|
virtual int | Size (void) const |
|
virtual int | Width (void) const =0 |
|
virtual int | Width (uint c) const =0 |
|
virtual int | Width (const char *s) const =0 |
|
virtual int | Height (void) const =0 |
|
int | Height (const char *s) const |
|
virtual void | DrawText (cBitmap *Bitmap, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, int Width) const =0 |
|
virtual void | DrawText (cPixmap *Pixmap, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, int Width) const |
|
|
static void | SetFont (eDvbFont Font, const char *Name, int CharHeight) |
|
static const cFont * | GetFont (eDvbFont Font) |
|
static cFont * | CreateFont (const char *Name, int CharHeight, int CharWidth=0) |
|
static bool | GetAvailableFontNames (cStringList *FontNames, bool Monospaced=false) |
|
static cString | GetFontFileName (const char *FontName) |
|
static void | SetFont (eDvbFont Font, const char *Name, int CharHeight) |
|
static const cFont * | GetFont (eDvbFont Font) |
|
static cFont * | CreateFont (const char *Name, int CharHeight, int CharWidth=0) |
|
static bool | GetAvailableFontNames (cStringList *FontNames, bool Monospaced=false) |
|
static cString | GetFontFileName (const char *FontName) |
|
Definition at line 387 of file font.c.
◆ cDummyFont()
cDummyFont::cDummyFont |
( |
int |
CharHeight, |
|
|
int |
CharWidth |
|
) |
| |
|
inline |
◆ DrawText() [1/2]
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 397 of file font.c.
◆ DrawText() [2/2]
virtual void cDummyFont::DrawText |
( |
cPixmap * |
Pixmap, |
|
|
int |
x, |
|
|
int |
y, |
|
|
const char * |
s, |
|
|
tColor |
ColorFg, |
|
|
tColor |
ColorBg, |
|
|
int |
Width |
|
) |
| const |
|
inlinevirtual |
◆ Height()
virtual int cDummyFont::Height |
( |
void |
| ) |
const |
|
inlinevirtual |
Returns the height of this font in pixel (all characters have the same height).
If the font contains descenders, its total height may be higher than the character height specified during creation.
Implements cFont.
Definition at line 396 of file font.c.
References height.
◆ Width() [1/3]
virtual int cDummyFont::Width |
( |
const char * |
s | ) |
const |
|
inlinevirtual |
Returns the width of the given string in pixel.
Implements cFont.
Definition at line 395 of file font.c.
References height, and width.
◆ Width() [2/3]
virtual int cDummyFont::Width |
( |
uint |
c | ) |
const |
|
inlinevirtual |
Returns the width of the given character in pixel.
Implements cFont.
Definition at line 394 of file font.c.
References height, and width.
◆ Width() [3/3]
virtual int cDummyFont::Width |
( |
void |
| ) |
const |
|
inlinevirtual |
Returns the original character width as requested when the font was created, or 0 if the default width is used.
Implements cFont.
Definition at line 393 of file font.c.
References height, and width.
◆ height
◆ width
The documentation for this class was generated from the following file: