libkdegames
KGameCanvasPixmap Class Reference
#include <kgamecanvas.h>

Detailed Description
A pixmap (sprite).A KGameCanvasPixmap is a pixmap that can be put in the canvas.
Definition at line 333 of file kgamecanvas.h.
Public Member Functions | |
| KGameCanvasPixmap (const QPixmap &pixmap, KGameCanvasAbstract *canvas=NULL) | |
| KGameCanvasPixmap (KGameCanvasAbstract *canvas=NULL) | |
| virtual | ~KGameCanvasPixmap () |
| QPixmap | pixmap () const |
| void | setPixmap (const QPixmap &pixmap) |
| virtual void | paint (QPainter *p) |
| virtual QRect | rect () const |
| virtual bool | layered () const |
Constructor & Destructor Documentation
| KGameCanvasPixmap::KGameCanvasPixmap | ( | const QPixmap & | pixmap, | |
| KGameCanvasAbstract * | canvas = NULL | |||
| ) |
| KGameCanvasPixmap::KGameCanvasPixmap | ( | KGameCanvasAbstract * | canvas = NULL |
) |
| KGameCanvasPixmap::~KGameCanvasPixmap | ( | ) | [virtual] |
Definition at line 680 of file kgamecanvas.cpp.
Member Function Documentation
| QPixmap KGameCanvasPixmap::pixmap | ( | ) | const [inline] |
| void KGameCanvasPixmap::setPixmap | ( | const QPixmap & | pixmap | ) |
| void KGameCanvasPixmap::paint | ( | QPainter * | p | ) | [virtual] |
Override this function to draw the item with the painter.
Implements KGameCanvasItem.
Definition at line 690 of file kgamecanvas.cpp.
| QRect KGameCanvasPixmap::rect | ( | ) | const [virtual] |
Override this function to return the rect the item will be drawn into.
Implements KGameCanvasItem.
Definition at line 694 of file kgamecanvas.cpp.
| virtual bool KGameCanvasPixmap::layered | ( | ) | const [inline, virtual] |
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 355 of file kgamecanvas.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference