KDEGames
kgamerenderer.h
198 QPixmap spritePixmap(const QString &key, QSize size, int frame = -1, const QHash<QColor, QColor> &customColors = (QHash<QColor, QColor>())) const;
An object that receives pixmaps from a KGameRenderer.
Definition kgamerendererclient.h:42
void setStrategyEnabled(Strategy strategy, bool enabled=true)
Enables/disables an optimization strategy for this renderer.
Definition kgamerenderer.cpp:121
QRectF boundsOnSprite(const QString &key, int frame=-1) const
Definition kgamerenderer.cpp:315
KGameRenderer(KGameThemeProvider *prov, unsigned cacheSize=0)
Constructs a new KGameRenderer that renders prov->currentTheme().
Definition kgamerenderer.cpp:49
void setFrameBaseIndex(int frameBaseIndex)
Sets the frame base index, i.e.
Definition kgamerenderer.cpp:93
Strategy
Describes the various strategies which KGameRenderer can use to speed up rendering.
Definition kgamerenderer.h:93
@ UseDiskCache
If set, pixmaps will be cached in a shared disk cache (using KSharedDataCache).
Definition kgamerenderer.h:98
@ UseRenderingThreads
If set, pixmap requests from KGameRendererClients will be handled asynchronously if possible.
Definition kgamerenderer.h:102
bool spriteExists(const QString &key) const
Definition kgamerenderer.cpp:360
QPixmap spritePixmap(const QString &key, QSize size, int frame=-1, const QHash< QColor, QColor > &customColors=(QHash< QColor, QColor >())) const
Definition kgamerenderer.cpp:367
A theme provider manages KGameTheme instances, and maintains a selection of the currentTheme().
Definition kgamethemeprovider.h:31
QRgb rgba() const const
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.