libkdegames
KGameCanvasTiledPixmap Class Reference
#include <KGameCanvas>

Detailed Description
A tiled pixmap (brush).A KGameCanvasPixmap is a pixmap that can be put in the canvas.
Definition at line 364 of file kgamecanvas.h.
Public Member Functions | |
| KGameCanvasTiledPixmap (KGameCanvasAbstract *canvas=NULL) | |
| KGameCanvasTiledPixmap (const QPixmap &pixmap, const QSize &size, const QPoint &origin, bool move_orig, KGameCanvasAbstract *canvas=NULL) | |
| virtual bool | layered () const |
| bool | moveOrigin () |
| QPoint | origin () const |
| virtual void | paint (QPainter *p) |
| QPixmap | pixmap () const |
| virtual QRect | rect () const |
| void | setMoveOrigin (bool move_orig) |
| void | setOrigin (const QPoint &size) |
| void | setPixmap (const QPixmap &pixmap) |
| void | setSize (const QSize &size) |
| virtual | ~KGameCanvasTiledPixmap () |
Constructor & Destructor Documentation
| KGameCanvasTiledPixmap::KGameCanvasTiledPixmap | ( | const QPixmap & | pixmap, | |
| const QSize & | size, | |||
| const QPoint & | origin, | |||
| bool | move_orig, | |||
| KGameCanvasAbstract * | canvas = NULL | |||
| ) |
Constructor, specifying the pixmap and the parameters to use.
Definition at line 702 of file kgamecanvas.cpp.
| KGameCanvasTiledPixmap::KGameCanvasTiledPixmap | ( | KGameCanvasAbstract * | canvas = NULL |
) |
| KGameCanvasTiledPixmap::~KGameCanvasTiledPixmap | ( | ) | [virtual] |
Definition at line 720 of file kgamecanvas.cpp.
Member Function Documentation
| virtual bool KGameCanvasTiledPixmap::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 405 of file kgamecanvas.h.
| bool KGameCanvasTiledPixmap::moveOrigin | ( | ) | [inline] |
| QPoint KGameCanvasTiledPixmap::origin | ( | ) | const [inline] |
| void KGameCanvasTiledPixmap::paint | ( | QPainter * | p | ) | [virtual] |
Override this function to draw the item with the painter.
Implements KGameCanvasItem.
Definition at line 754 of file kgamecanvas.cpp.
| QPixmap KGameCanvasTiledPixmap::pixmap | ( | ) | const [inline] |
| QRect KGameCanvasTiledPixmap::rect | ( | ) | const [virtual] |
Override this function to return the rect the item will be drawn into.
Implements KGameCanvasItem.
Definition at line 762 of file kgamecanvas.cpp.
| void KGameCanvasTiledPixmap::setMoveOrigin | ( | bool | move_orig | ) |
Sets if the origin of the brush will be moved with the pixmap.
Definition at line 745 of file kgamecanvas.cpp.
| void KGameCanvasTiledPixmap::setOrigin | ( | const QPoint & | size | ) |
| void KGameCanvasTiledPixmap::setPixmap | ( | const QPixmap & | pixmap | ) |
| void KGameCanvasTiledPixmap::setSize | ( | const QSize & | size | ) |
The documentation for this class was generated from the following files:
KDE 4.1 API Reference