Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

bitfont.h

Go to the documentation of this file.
00001 #ifndef BITFONT_H
00002 #define BITFONT_H
00003 
00004 #include <qstring.h>
00005 #include <qbitmap.h>
00006 #include <qpixmap.h>
00007 #include <qrect.h>
00008 
00009 #include "colors.h"
00010 
00011 class Bitfont
00012 {
00013 public:
00014     Bitfont(QString fontname, uchar firstChar, uchar lastChar);
00015 
00016     QPixmap text(QString str, QColor fg = BLACK, QColor bg = QColor());
00017     QRect rect(QString str);
00018     int width();
00019     int height();
00020     uchar firstChar();
00021     uchar lastChar();
00022 private:
00023     QBitmap font;
00024     int fontWidth;
00025     int fontHeight;
00026     uchar fontFirstChar;
00027     uchar fontLastChar;
00028 };
00029 
00030 #endif // BITFONT_H
00031 

Generated on Sat Nov 5 16:17:20 2005 for OPIE by  doxygen 1.4.2