libkdegames
KGameCanvasGroup Class Reference
#include <KGameCanvas>

Detailed Description
An item containing other items.A KGameCanvasGroup is an KGameCanvasItem, but it is also a KGameCanvasAbstract, so you can add children items to it. Just an inner canvas, if you prefer.
Definition at line 260 of file kgamecanvas.h.
Public Member Functions | |
| virtual void | advance (int msecs) |
| virtual QPoint | canvasPosition () const |
| KGameCanvasGroup (KGameCanvasAbstract *canvas=NULL) | |
| virtual void | paint (QPainter *p) |
| virtual QRect | rect () const |
| KGameCanvasWidget * | topLevelCanvas () |
| virtual | ~KGameCanvasGroup () |
Constructor & Destructor Documentation
| KGameCanvasGroup::KGameCanvasGroup | ( | KGameCanvasAbstract * | canvas = NULL |
) |
| KGameCanvasGroup::~KGameCanvasGroup | ( | ) | [virtual] |
Definition at line 527 of file kgamecanvas.cpp.
Member Function Documentation
| void KGameCanvasGroup::advance | ( | int | msecs | ) | [virtual] |
Animations step, updates the animation for the children.
Reimplemented from KGameCanvasItem.
Definition at line 577 of file kgamecanvas.cpp.
| QPoint KGameCanvasGroup::canvasPosition | ( | ) | const [virtual] |
- Returns:
- Position of the abstract canvas relative to the toplevel canvas.
Implements KGameCanvasAbstract.
Definition at line 640 of file kgamecanvas.cpp.
| void KGameCanvasGroup::paint | ( | QPainter * | p | ) | [virtual] |
This paints all the children.
Implements KGameCanvasItem.
Definition at line 614 of file kgamecanvas.cpp.
| QRect KGameCanvasGroup::rect | ( | ) | const [virtual] |
This returns the bouding rect of all children.
Implements KGameCanvasItem.
Definition at line 618 of file kgamecanvas.cpp.
| KGameCanvasWidget * KGameCanvasGroup::topLevelCanvas | ( | ) | [virtual] |
returns the toplevel canvas (or null if it is in an orphan tree)
Implements KGameCanvasAbstract.
Definition at line 635 of file kgamecanvas.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference