kgoldrunner
KGrCanvas Class Reference
#include <kgrcanvas.h>

Detailed Description
Definition at line 39 of file kgrcanvas.h.
Signals | |
| void | mouseClick (int) |
| void | mouseLetGo (int) |
Public Member Functions | |
| KGrCanvas (QWidget *parent, const double scale, const QString &systemDataDir) | |
| virtual | ~KGrCanvas () |
| QPoint | getMousePos () |
| void | setMousePos (int, int) |
| void | setBaseScale () |
| void | paintCell (int, int, char, int offset=0) |
| void | setTitle (const QString &) |
| void | makeHeroSprite (int, int, int) |
| void | setHeroVisible (bool) |
| void | moveHero (int, int, int) |
| void | makeEnemySprite (int, int, int) |
| void | moveEnemy (int, int, int, int, int) |
| void | deleteEnemySprites () |
| void | goToBlack () |
| void | fadeIn () |
| void | fadeOut () |
| QPixmap | getPixmap (char type) |
| bool | changeTheme (const QString &themeFilepath) |
| void | setLevel (unsigned int level) |
Protected Member Functions | |
| virtual void | mousePressEvent (QMouseEvent *mouseEvent) |
| virtual void | mouseReleaseEvent (QMouseEvent *mouseEvent) |
| virtual void | resizeEvent (QResizeEvent *event) |
| virtual QSize | sizeHint () const |
Constructor & Destructor Documentation
Definition at line 31 of file kgrcanvas.cpp.
| KGrCanvas::~KGrCanvas | ( | ) | [virtual] |
Definition at line 86 of file kgrcanvas.cpp.
Member Function Documentation
| QPoint KGrCanvas::getMousePos | ( | ) |
Definition at line 326 of file kgrcanvas.cpp.
| void KGrCanvas::setMousePos | ( | int | i, | |
| int | j | |||
| ) |
Definition at line 338 of file kgrcanvas.cpp.
| void KGrCanvas::setBaseScale | ( | ) |
Definition at line 278 of file kgrcanvas.cpp.
| void KGrCanvas::paintCell | ( | int | x, | |
| int | y, | |||
| char | type, | |||
| int | offset = 0 | |||
| ) |
Definition at line 252 of file kgrcanvas.cpp.
| void KGrCanvas::setTitle | ( | const QString & | newTitle | ) |
Definition at line 290 of file kgrcanvas.cpp.
| void KGrCanvas::makeHeroSprite | ( | int | i, | |
| int | j, | |||
| int | startFrame | |||
| ) |
Definition at line 347 of file kgrcanvas.cpp.
| void KGrCanvas::setHeroVisible | ( | bool | newState | ) |
Definition at line 361 of file kgrcanvas.cpp.
| void KGrCanvas::moveHero | ( | int | x, | |
| int | y, | |||
| int | frame | |||
| ) |
Definition at line 381 of file kgrcanvas.cpp.
| void KGrCanvas::makeEnemySprite | ( | int | i, | |
| int | j, | |||
| int | startFrame | |||
| ) |
Definition at line 366 of file kgrcanvas.cpp.
| void KGrCanvas::moveEnemy | ( | int | id, | |
| int | x, | |||
| int | y, | |||
| int | frame, | |||
| int | nuggets | |||
| ) |
Definition at line 387 of file kgrcanvas.cpp.
| void KGrCanvas::deleteEnemySprites | ( | ) |
Definition at line 398 of file kgrcanvas.cpp.
| void KGrCanvas::goToBlack | ( | ) |
Definition at line 97 of file kgrcanvas.cpp.
| void KGrCanvas::fadeIn | ( | ) |
Definition at line 102 of file kgrcanvas.cpp.
| void KGrCanvas::fadeOut | ( | ) |
Definition at line 108 of file kgrcanvas.cpp.
| QPixmap KGrCanvas::getPixmap | ( | char | type | ) |
Definition at line 404 of file kgrcanvas.cpp.
| bool KGrCanvas::changeTheme | ( | const QString & | themeFilepath | ) |
Definition at line 202 of file kgrcanvas.cpp.
| void KGrCanvas::setLevel | ( | unsigned int | level | ) |
setLevel is meant as a way to communicate that new graphics can be used if multiple sets are available in the theme.
Definition at line 458 of file kgrcanvas.cpp.
| void KGrCanvas::mouseClick | ( | int | ) | [signal] |
| void KGrCanvas::mouseLetGo | ( | int | ) | [signal] |
| void KGrCanvas::mousePressEvent | ( | QMouseEvent * | mouseEvent | ) | [protected, virtual] |
Definition at line 316 of file kgrcanvas.cpp.
| void KGrCanvas::mouseReleaseEvent | ( | QMouseEvent * | mouseEvent | ) | [protected, virtual] |
Definition at line 321 of file kgrcanvas.cpp.
| void KGrCanvas::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Definition at line 221 of file kgrcanvas.cpp.
| QSize KGrCanvas::sizeHint | ( | ) | const [protected, virtual] |
Definition at line 638 of file kgrcanvas.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference