libkdegames/libkdegamesprivate
#include <KGameCanvas>

Public Member Functions | |
| KGameCanvasWidget (QWidget *parent=NULL) | |
| virtual | ~KGameCanvasWidget () |
| virtual QPoint | canvasPosition () const |
| int | mSecs () |
| void | setAnimationDelay (int d) |
| KGameCanvasWidget * | topLevelCanvas () |
Public Member Functions inherited from KGameCanvasAbstract | |
| KGameCanvasAbstract () | |
| virtual | ~KGameCanvasAbstract () |
| KGameCanvasItem * | itemAt (const QPoint &pos) const |
| KGameCanvasItem * | itemAt (int x, int y) const |
| const QList< KGameCanvasItem * > * | items () const |
| QList< KGameCanvasItem * > | itemsAt (const QPoint &pos) const |
| QList< KGameCanvasItem * > | itemsAt (int x, int y) const |
Additional Inherited Members | |
Protected Attributes inherited from KGameCanvasAbstract | |
| QList< KGameCanvasItem * > | m_animated_items |
| QList< KGameCanvasItem * > | m_items |
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.
- Deprecated:
- For new applications, use Qt's Graphics View framework or Qt Quick.
Definition at line 573 of file kgamecanvas.h.
Constructor & Destructor Documentation
| KGameCanvasWidget::KGameCanvasWidget | ( | QWidget * | parent = NULL | ) |
The constructor.
Definition at line 104 of file kgamecanvas.cpp.
|
virtual |
Definition at line 111 of file kgamecanvas.cpp.
Member Function Documentation
|
virtual |
| 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.
| void KGameCanvasWidget::setAnimationDelay | ( | int | d | ) |
Set the delay of the animation, in milliseconds.
Definition at line 215 of file kgamecanvas.cpp.
|
virtual |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from