libkdegames/libkdegamesprivate
#include <KGameCanvas>
Detailed Description
A pixmap (sprite).
A KGameCanvasPixmap is a pixmap that can be put in the canvas.
- Deprecated:
- For new applications, use Qt's Graphics View framework or Qt Quick.
Definition at line 346 of file kgamecanvas.h.
Constructor & Destructor Documentation
KGameCanvasPixmap::KGameCanvasPixmap | ( | const QPixmap & | pixmap, |
KGameCanvasAbstract * | canvas = NULL |
||
) |
Constructor, specifying the pixmap to use.
Definition at line 670 of file kgamecanvas.cpp.
KGameCanvasPixmap::KGameCanvasPixmap | ( | KGameCanvasAbstract * | canvas = NULL | ) |
Constructor, creating with an empty pixmap.
Definition at line 675 of file kgamecanvas.cpp.
|
virtual |
Definition at line 680 of file kgamecanvas.cpp.
Member Function Documentation
|
inlinevirtual |
Override this function to specify if the painting operations will paint over each other.
If not, the item will be drawn more quickly when opacity is != 255, because it does not have to be painted onto a pixmap first. If you don't care about the item's opacity, don't care about this function as well.
Reimplemented from KGameCanvasItem.
Definition at line 368 of file kgamecanvas.h.
|
virtual |
Override this function to draw the item with the painter.
Implements KGameCanvasItem.
Definition at line 690 of file kgamecanvas.cpp.
|
inline |
Returns the pixmap.
Definition at line 361 of file kgamecanvas.h.
|
virtual |
Override this function to return the rect the item will be drawn into.
Implements KGameCanvasItem.
Definition at line 694 of file kgamecanvas.cpp.
void KGameCanvasPixmap::setPixmap | ( | const QPixmap & | pixmap | ) |
Sets the pixmap of the sprite.
Definition at line 684 of file kgamecanvas.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.