KGameCanvasPicture
#include <KGameCanvas>

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 327 of file kgamecanvas.h.
Constructor & Destructor Documentation
◆ KGameCanvasPicture() [1/2]
|
explicit |
Constructor, specifying the picture to use.
Definition at line 957 of file kgamecanvas.cpp.
◆ KGameCanvasPicture() [2/2]
|
explicit |
Constructor, creating with an empty picture.
Definition at line 963 of file kgamecanvas.cpp.
Member Function Documentation
◆ paint()
|
overridevirtual |
Override this function to draw the item with the painter.
Implements KGameCanvasItem.
Definition at line 980 of file kgamecanvas.cpp.
◆ picture()
|
inline |
Returns the picture.
Definition at line 342 of file kgamecanvas.h.
◆ rect()
|
overridevirtual |
Override this function to return the rect the item will be drawn into.
Implements KGameCanvasItem.
Definition at line 985 of file kgamecanvas.cpp.
◆ setPicture()
void KGameCanvasPicture::setPicture | ( | const QPicture & | picture | ) |
Sets the picture of the sprite.
Definition at line 972 of file kgamecanvas.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 04:05:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.