#include <kgamecanvas.h>


Public Member Functions | |
| KGameCanvasGroup (KGameCanvasAbstract *canvas=NULL) | |
| Constructor. | |
| virtual | ~KGameCanvasGroup () |
| virtual void | paint (QPainter *p) |
| This paints all the children. | |
| virtual QRect | rect () const |
| This returns the bouding rect of all children. | |
| virtual void | advance (int msecs) |
| Animations step, updates the animation for the children. | |
| KGameCanvasWidget * | topLevelCanvas () |
| returns the toplevel canvas (or null if it is in an orphan tree) | |
| virtual QPoint | canvasPosition () const |
| |
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.
| KGameCanvasGroup::KGameCanvasGroup | ( | KGameCanvasAbstract * | canvas = NULL |
) |
| KGameCanvasGroup::~KGameCanvasGroup | ( | ) | [virtual] |
Definition at line 527 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.
References KGameCanvasAbstract::m_items, KGameCanvasItem::m_visible, and KGameCanvasItem::rect().

| 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.
References KGameCanvasItem::advance(), KGameCanvasAbstract::m_animated_items, and KGameCanvasItem::setAnimated().

| 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.
References KGameCanvasWidget::topLevelCanvas().

| QPoint KGameCanvasGroup::canvasPosition | ( | ) | const [virtual] |
Implements KGameCanvasAbstract.
Definition at line 640 of file kgamecanvas.cpp.
References KGameCanvasItem::absolutePosition().

1.5.3