#include <kgamecanvas.h>


Public Member Functions | |
| KGameCanvasPicture (const QPicture &picture, KGameCanvasAbstract *canvas=NULL) | |
| Constructor, specifying the picture to use. | |
| KGameCanvasPicture (KGameCanvasAbstract *canvas=NULL) | |
| Constructor, creating with an empty picture. | |
| virtual | ~KGameCanvasPicture () |
| QPicture | picture () const |
| Returns the picture. | |
| void | setPicture (const QPicture &picture) |
| Sets the picture of the sprite. | |
| virtual void | paint (QPainter *p) |
| Override this function to draw the item with the painter. | |
| virtual QRect | rect () const |
| Override this function to return the rect the item will be drawn into. | |
A KGameCanvasPicture is a picture that can be replayed on the canvas.
Definition at line 303 of file kgamecanvas.h.
| KGameCanvasPicture::KGameCanvasPicture | ( | const QPicture & | picture, | |
| KGameCanvasAbstract * | canvas = NULL | |||
| ) |
| KGameCanvasPicture::KGameCanvasPicture | ( | KGameCanvasAbstract * | canvas = NULL |
) |
| KGameCanvasPicture::~KGameCanvasPicture | ( | ) | [virtual] |
Definition at line 943 of file kgamecanvas.cpp.
| QPicture KGameCanvasPicture::picture | ( | ) | const [inline] |
| void KGameCanvasPicture::setPicture | ( | const QPicture & | picture | ) |
Sets the picture of the sprite.
Definition at line 948 of file kgamecanvas.cpp.
References KGameCanvasItem::canvas(), KGameCanvasItem::changed(), and KGameCanvasItem::visible().

| void KGameCanvasPicture::paint | ( | QPainter * | p | ) | [virtual] |
Override this function to draw the item with the painter.
Implements KGameCanvasItem.
Definition at line 956 of file kgamecanvas.cpp.
References KGameCanvasItem::pos().

| QRect KGameCanvasPicture::rect | ( | ) | const [virtual] |
Override this function to return the rect the item will be drawn into.
Implements KGameCanvasItem.
Definition at line 961 of file kgamecanvas.cpp.
References KGameCanvasItem::pos().

1.5.3