summaryrefslogtreecommitdiff
path: root/noncore/games/kpacman/bitfont.h
authorleseb <leseb>2002-04-15 22:40:28 (UTC)
committer leseb <leseb>2002-04-15 22:40:28 (UTC)
commita91544d04ed391bbdc0c6f95ff8a80d35190788c (patch) (unidiff)
tree85dea85fd8a1cdb6d2d18fef57753d0b5e4bd143 /noncore/games/kpacman/bitfont.h
parent6396d8b9fca7f3f50010a13a26e4ee9569abefb3 (diff)
downloadopie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.zip
opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.tar.gz
opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.tar.bz2
New directory structure
Diffstat (limited to 'noncore/games/kpacman/bitfont.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kpacman/bitfont.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/noncore/games/kpacman/bitfont.h b/noncore/games/kpacman/bitfont.h
new file mode 100644
index 0000000..c12aa0f
--- a/dev/null
+++ b/noncore/games/kpacman/bitfont.h
@@ -0,0 +1,31 @@
1#ifndef BITFONT_H
2#define BITFONT_H
3
4#include <qstring.h>
5#include <qbitmap.h>
6#include <qpixmap.h>
7#include <qrect.h>
8
9#include "colors.h"
10
11class Bitfont
12{
13public:
14 Bitfont(QString fontname, uchar firstChar, uchar lastChar);
15
16 QPixmap text(QString str, QColor fg = BLACK, QColor bg = QColor());
17 QRect rect(QString str);
18 int width();
19 int height();
20 uchar firstChar();
21 uchar lastChar();
22private:
23 QBitmap font;
24 int fontWidth;
25 int fontHeight;
26 uchar fontFirstChar;
27 uchar fontLastChar;
28};
29
30#endif // BITFONT_H
31