KGameCanvasWidget Class Reference

#include <kgamecanvas.h>

Inheritance diagram for KGameCanvasWidget:

Inheritance graph
[legend]
Collaboration diagram for KGameCanvasWidget:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 KGameCanvasWidget (QWidget *parent=NULL)
 The constructor.
virtual ~KGameCanvasWidget ()
void setAnimationDelay (int d)
 Set the delay of the animation, in milliseconds.
int mSecs ()
 Return the number of millisecons from the creation of the canvas (see also KGameCanvasItem::advance).
KGameCanvasWidgettopLevelCanvas ()
 returns 'this'
virtual QPoint canvasPosition () const
 
Returns:
0


Friends

class KGameCanvasItem
class AnimationNotifier


Detailed Description

Container widget.

A KGameCanvasWidget is a widget that can contain many KGameCanvasItem (images, rectangles, lines, etc). Portions of the widget are automatically redrawn to update the changes made to the items.

Definition at line 534 of file kgamecanvas.h.


Constructor & Destructor Documentation

KGameCanvasWidget::KGameCanvasWidget ( QWidget *  parent = NULL  ) 

The constructor.

Definition at line 104 of file kgamecanvas.cpp.

References KGameCanvasWidgetPrivate::m_anim_time, and KGameCanvasWidgetPrivate::m_anim_timer.

KGameCanvasWidget::~KGameCanvasWidget (  )  [virtual]

Definition at line 111 of file kgamecanvas.cpp.


Member Function Documentation

void KGameCanvasWidget::setAnimationDelay ( int  d  ) 

Set the delay of the animation, in milliseconds.

Definition at line 215 of file kgamecanvas.cpp.

References KGameCanvasWidgetPrivate::m_anim_timer.

int KGameCanvasWidget::mSecs (  ) 

Return the number of millisecons from the creation of the canvas (see also KGameCanvasItem::advance).

Definition at line 219 of file kgamecanvas.cpp.

References KGameCanvasWidgetPrivate::m_anim_time.

KGameCanvasWidget * KGameCanvasWidget::topLevelCanvas (  )  [virtual]

returns 'this'

Implements KGameCanvasAbstract.

Definition at line 223 of file kgamecanvas.cpp.

Referenced by KGameCanvasItem::topLevelCanvas(), and KGameCanvasGroup::topLevelCanvas().

QPoint KGameCanvasWidget::canvasPosition (  )  const [virtual]

Returns:
0

Implements KGameCanvasAbstract.

Definition at line 227 of file kgamecanvas.cpp.


Friends And Related Function Documentation

friend class KGameCanvasItem [friend]

Reimplemented from KGameCanvasAbstract.

Definition at line 538 of file kgamecanvas.h.

friend class AnimationNotifier [friend]

Definition at line 539 of file kgamecanvas.h.


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