libkdegames/libkdegamesprivate
#include <KGameCanvas>

Public Member Functions | |
| KGameCanvasPicture (const QPicture &picture, KGameCanvasAbstract *canvas=NULL) | |
| KGameCanvasPicture (KGameCanvasAbstract *canvas=NULL) | |
| virtual | ~KGameCanvasPicture () |
| virtual void | paint (QPainter *p) |
| QPicture | picture () const |
| virtual QRect | rect () const |
| void | setPicture (const QPicture &picture) |
Public Member Functions inherited from KGameCanvasItem | |
| KGameCanvasItem (KGameCanvasAbstract *canvas=NULL) | |
| virtual | ~KGameCanvasItem () |
| QPoint | absolutePosition () const |
| virtual void | advance (int msecs) |
| bool | animated () const |
| KGameCanvasAbstract * | canvas () const |
| virtual void | changed () |
| void | hide () |
| virtual bool | layered () const |
| void | lower () |
| void | moveTo (const QPoint &newpos) |
| void | moveTo (int x, int y) |
| int | opacity () const |
| QPoint | pos () const |
| void | putInCanvas (KGameCanvasAbstract *canvas) |
| void | raise () |
| void | setAnimated (bool a) |
| void | setOpacity (int o) |
| void | setVisible (bool v) |
| void | show () |
| void | stackOver (KGameCanvasItem *ref) |
| void | stackUnder (KGameCanvasItem *ref) |
| KGameCanvasWidget * | topLevelCanvas () const |
| bool | visible () const |
Detailed Description
A picture, ie a collection of paint operations.
A KGameCanvasPicture is a picture that can be replayed on the canvas.
- Deprecated:
- For new applications, use Qt's Graphics View framework or Qt Quick.
Definition at line 314 of file kgamecanvas.h.
Constructor & Destructor Documentation
| KGameCanvasPicture::KGameCanvasPicture | ( | const QPicture & | picture, |
| KGameCanvasAbstract * | canvas = NULL |
||
| ) |
Constructor, specifying the picture to use.
Definition at line 941 of file kgamecanvas.cpp.
| KGameCanvasPicture::KGameCanvasPicture | ( | KGameCanvasAbstract * | canvas = NULL | ) |
Constructor, creating with an empty picture.
Definition at line 947 of file kgamecanvas.cpp.
|
virtual |
Definition at line 953 of file kgamecanvas.cpp.
Member Function Documentation
|
virtual |
Override this function to draw the item with the painter.
Implements KGameCanvasItem.
Definition at line 966 of file kgamecanvas.cpp.
|
inline |
Returns the picture.
Definition at line 329 of file kgamecanvas.h.
|
virtual |
Override this function to return the rect the item will be drawn into.
Implements KGameCanvasItem.
Definition at line 971 of file kgamecanvas.cpp.
| void KGameCanvasPicture::setPicture | ( | const QPicture & | picture | ) |
Sets the picture of the sprite.
Definition at line 958 of file kgamecanvas.cpp.
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