libkdegames
kgamerendererclient.cpp
Go to the documentation of this file.
25 KGameRendererClientPrivate::KGameRendererClientPrivate(KGameRenderer* renderer, const QString& spriteKey, KGameRendererClient* parent)
36 //The following may not be triggered directly because it may call receivePixmap() which is a pure virtual method at this point.
iterator insert(const Key &key, const T &value)
void setCustomColors(const QHash< QColor, QColor > &customColors)
Defines the custom color replacements for this client.
Definition: kgamerendererclient.cpp:117
QHash< KGameRendererClient *, QString > m_clients
Definition: kgamerenderer_p.h:134
int remove(const Key &key)
KGameRendererClient(KGameRenderer *renderer, const QString &spriteKey)
Creates a new client which receives pixmaps for the sprite with the given spriteKey as provided by th...
Definition: kgamerendererclient.cpp:32
QHash< QColor, QColor > customColors() const
Definition: kgamerendererclient.cpp:112
void requestPixmap(const KGRInternal::ClientSpec &spec, KGameRendererClient *client, QPixmap *synchronousResult=0)
Definition: kgamerenderer.cpp:431
void setRenderSize(const QSize &renderSize)
Defines the size of the pixmap that will be requested from KGameRenderer.
Definition: kgamerendererclient.cpp:103
virtual ~KGameRendererClient()
Definition: kgamerendererclient.cpp:40
An object that receives pixmaps from a KGameRenderer.
Definition: kgamerendererclient.h:50
KGameRenderer * renderer() const
Definition: kgamerendererclient.cpp:46
Definition: kgamerenderer_p.h:163
KGameRendererClientPrivate(KGameRenderer *renderer, const QString &spriteKey, KGameRendererClient *parent)
Definition: kgamerendererclient.cpp:25
QHash< QColor, QColor > customColors
Definition: kgamerenderer_p.h:41
void setSpriteKey(const QString &spriteKey)
Defines the key of the sprite which is rendered by this client.
Definition: kgamerendererclient.cpp:56
void setFrame(int frame)
For animated sprites, render another frame.
Definition: kgamerendererclient.cpp:75
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.