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

Bitfont Class Reference

#include </home/clem/local/src/opie/noncore/games/kpacman/bitfont.h>

List of all members.

Public Member Functions

 Bitfont (QString fontname, uchar firstChar, uchar lastChar)
QPixmap text (QString str, QColor fg=BLACK, QColor bg=QColor())
QRect rect (QString str)
int width ()
int height ()
uchar firstChar ()
uchar lastChar ()

Private Attributes

QBitmap font
int fontWidth
int fontHeight
uchar fontFirstChar
uchar fontLastChar


Constructor & Destructor Documentation

Bitfont::Bitfont QString  fontname,
uchar  firstChar,
uchar  lastChar
 

Definition at line 3 of file bitfont.cpp.

References font, fontFirstChar, fontHeight, fontLastChar, fontWidth, and QString::isEmpty().


Member Function Documentation

uchar Bitfont::firstChar  ) 
 

Definition at line 53 of file bitfont.cpp.

References fontFirstChar.

Referenced by Score::keyPressEvent(), Score::read(), Score::Score(), and Score::setScheme().

int Bitfont::height  ) 
 

Definition at line 68 of file bitfont.cpp.

References fontHeight.

Referenced by KpacmanWidget::confScheme(), Score::rect(), Painter::rect(), and KpacmanWidget::resizeEvent().

uchar Bitfont::lastChar  ) 
 

Definition at line 58 of file bitfont.cpp.

References fontLastChar.

Referenced by Score::keyPressEvent(), Score::read(), Score::Score(), and Score::setScheme().

QRect Bitfont::rect QString  str  ) 
 

Definition at line 19 of file bitfont.cpp.

References fontHeight, and fontWidth.

Referenced by Score::paintEvent(), Score::rect(), Painter::rect(), and Score::setPause().

QPixmap Bitfont::text QString  str,
QColor  fg = BLACK,
QColor  bg = QColor()
 

Definition at line 24 of file bitfont.cpp.

References bitBlt(), QString::data(), font, fontFirstChar, fontHeight, fontLastChar, fontWidth, i, QString::length(), s, and TRUE.

Referenced by Painter::draw(), Score::paintEvent(), and Painter::textPixmap().

int Bitfont::width  ) 
 

Definition at line 63 of file bitfont.cpp.

References fontWidth.

Referenced by KpacmanWidget::confScheme(), Score::rect(), and Painter::rect().


Member Data Documentation

QBitmap Bitfont::font [private]
 

Definition at line 23 of file bitfont.h.

Referenced by Bitfont(), and text().

uchar Bitfont::fontFirstChar [private]
 

Definition at line 26 of file bitfont.h.

Referenced by Bitfont(), firstChar(), and text().

int Bitfont::fontHeight [private]
 

Definition at line 25 of file bitfont.h.

Referenced by Bitfont(), height(), rect(), and text().

uchar Bitfont::fontLastChar [private]
 

Definition at line 27 of file bitfont.h.

Referenced by Bitfont(), lastChar(), and text().

int Bitfont::fontWidth [private]
 

Definition at line 24 of file bitfont.h.

Referenced by Bitfont(), rect(), text(), and width().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:27:13 2005 for OPIE by  doxygen 1.4.2