libkdegames
#include <KGameRenderedItem>
Public Member Functions | |
KGameRenderedItem (KGameRenderer *renderer, const QString &spriteKey, QGraphicsItem *parent=0) | |
virtual | ~KGameRenderedItem () |
Public Member Functions inherited from KGameRendererClient | |
KGameRendererClient (KGameRenderer *renderer, const QString &spriteKey) | |
virtual | ~KGameRendererClient () |
QHash< QColor, QColor > | customColors () const |
int | frame () const |
int | frameCount () const |
KGameRenderer * | renderer () const |
QSize | renderSize () const |
void | setCustomColors (const QHash< QColor, QColor > &customColors) |
void | setFrame (int frame) |
void | setRenderSize (const QSize &renderSize) |
void | setSpriteKey (const QString &spriteKey) |
QString | spriteKey () const |
Protected Member Functions | |
virtual void | receivePixmap (const QPixmap &pixmap) |
Detailed Description
A QGraphicsPixmapItem which reacts to theme changes automatically.
- Since
- 4.6 This class is a QGraphicsPixmapItem which retrieves its pixmap from a KGameRenderer, and updates it automatically when the KGameRenderer changes the theme.
Definition at line 39 of file kgamerendereditem.h.
Constructor & Destructor Documentation
KGameRenderedItem::KGameRenderedItem | ( | KGameRenderer * | renderer, |
const QString & | spriteKey, | ||
QGraphicsItem * | parent = 0 |
||
) |
Creates a new KGameRenderedItem which renders the sprite with the given spriteKey as provided by the given renderer.
Definition at line 26 of file kgamerendereditem.cpp.
|
virtual |
Definition at line 34 of file kgamerendereditem.cpp.
Member Function Documentation
|
protectedvirtual |
This method is called when the KGameRenderer has provided a new pixmap for this client (esp.
after theme changes and after calls to setFrame(), setRenderSize() and setSpriteKey()).
Implements KGameRendererClient.
Definition at line 39 of file kgamerendereditem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.