KGameCanvasGroup Class Reference

#include <kgamecanvas.h>

Inheritance diagram for KGameCanvasGroup:

Inheritance graph
[legend]
Collaboration diagram for KGameCanvasGroup:

Collaboration graph
[legend]

List of all members.

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.
KGameCanvasWidgettopLevelCanvas ()
 returns the toplevel canvas (or null if it is in an orphan tree)
virtual QPoint canvasPosition () const
 
Returns:
Position of the abstract canvas relative to the toplevel canvas.


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.


Constructor & Destructor Documentation

KGameCanvasGroup::KGameCanvasGroup ( KGameCanvasAbstract canvas = NULL  ) 

Constructor.

Definition at line 520 of file kgamecanvas.cpp.

KGameCanvasGroup::~KGameCanvasGroup (  )  [virtual]

Definition at line 527 of file kgamecanvas.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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.

References KGameCanvasItem::absolutePosition().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 08:03:13 2008 for Libkdegames by  doxygen 1.5.3