summaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-31 14:09:52 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-31 14:09:52 +0200
commitd6f2f1675c57cb067c7d1c1815b871d1acc2fe19 (patch)
treeda310e344561f7f57ae342a78746cf2d0ec540bc /font.h
parente056cae8921a68704bf1a0cb4babcdf60d31be2d (diff)
downloadvdr-d6f2f1675c57cb067c7d1c1815b871d1acc2fe19.tar.gz
vdr-d6f2f1675c57cb067c7d1c1815b871d1acc2fe19.tar.bz2
Made some functions of cFont virtual to allow implementing dummy fonts for the 'curses' skin
Diffstat (limited to 'font.h')
-rw-r--r--font.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/font.h b/font.h
index 3803960b..36aab9dc 100644
--- a/font.h
+++ b/font.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: font.h 1.7 2004/05/16 10:49:44 kls Exp $
+ * $Id: font.h 1.8 2004/05/31 14:09:00 kls Exp $
*/
#ifndef __FONT_H
@@ -43,15 +43,15 @@ private:
public:
cFont(void *Data);
void SetData(void *Data);
- int Width(unsigned char c) const { return data[c]->width; }
+ virtual int Width(unsigned char c) const { return data[c]->width; }
///< Returns the width of the given character.
- int Width(const char *s) const;
+ virtual int Width(const char *s) const;
///< Returns the width of the given string.
- int Height(unsigned char c) const { return data[c]->height; }
+ virtual int Height(unsigned char c) const { return data[c]->height; }
///< Returns the height of the given character.
- int Height(const char *s) const;
+ virtual int Height(const char *s) const;
///< Returns the height of the given string.
- int Height(void) const { return height; }
+ virtual int Height(void) const { return height; }
///< Returns the height of this font (all characters have the same height).
const tCharData *CharData(unsigned char c) const { return data[c]; }
static bool SetCode(const char *Code);