#include <kgamecanvas.h>


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). | |
| KGameCanvasWidget * | topLevelCanvas () |
| returns 'this' | |
| virtual QPoint | canvasPosition () const |
| |
Friends | |
| class | KGameCanvasItem |
| class | AnimationNotifier |
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.
| 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.
| 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] |
friend class KGameCanvasItem [friend] |
friend class AnimationNotifier [friend] |
Definition at line 539 of file kgamecanvas.h.
1.5.3