libkdegames
kgamerenderer_p.h
Go to the documentation of this file.
37 inline ClientSpec(const QString& spriteKey = QString(), int frame = -1, const QSize& size = QSize(), const QHash<QColor, QColor>& customColors = (QHash<QColor, QColor>()));
43 ClientSpec::ClientSpec(const QString& spriteKey_, int frame_, const QSize& size_, const QHash<QColor, QColor>& customColors_)
114 inline QString spriteFrameKey(const QString& key, int frame, bool normalizeFrameNo = false) const;
115 void requestPixmap(const KGRInternal::ClientSpec& spec, KGameRendererClient* client, QPixmap* synchronousResult = 0);
117 inline void requestPixmap__propagateResult(const QPixmap& pixmap, KGameRendererClient* client, QPixmap* synchronousResult);
119 void jobFinished(KGRInternal::Job* job, bool isSynchronous); //NOTE: This is invoked from KGRInternal::Worker::run.
167 KGameRendererClientPrivate(KGameRenderer* renderer, const QString& spriteKey, KGameRendererClient* parent);
KGameRenderer::Strategies m_strategies
Definition: kgamerenderer_p.h:127
Definition: kgamerenderer_p.h:107
ClientSpec(const QString &spriteKey=QString(), int frame=-1, const QSize &size=QSize(), const QHash< QColor, QColor > &customColors=(QHash< QColor, QColor >()))
Definition: kgamerenderer_p.h:43
Definition: kgamerenderer_p.h:83
A theme provider manages KgTheme instances, and maintains a selection of the currentTheme().
Definition: kgthemeprovider.h:39
KGRInternal::RendererPool m_rendererPool
Definition: kgamerenderer_p.h:132
void freeRenderer(QSvgRenderer *renderer)
Definition: kgamerenderer.cpp:649
Worker(Job *job, bool isSynchronous, KGameRendererPrivate *parent)
Definition: kgamerenderer.cpp:537
RendererPool(QThreadPool *threadPool)
Definition: kgamerenderer.cpp:583
Definition: kgamerenderer_p.h:52
QHash< KGameRendererClient *, QString > m_clients
Definition: kgamerenderer_p.h:134
void setPath(const QString &graphicsPath, QSvgRenderer *renderer=0)
Definition: kgamerenderer.cpp:595
QHash< QString, QRectF > m_boundsCache
Definition: kgamerenderer_p.h:160
An object that receives pixmaps from a KGameRenderer.
Definition: kgamerendererclient.h:50
KGRInternal::RendererPool * rendererPool
Definition: kgamerenderer_p.h:85
bool hasAvailableRenderers() const
Definition: kgamerenderer.cpp:621
QHash< QString, int > m_frameCountCache
Definition: kgamerenderer_p.h:159
QHash< QString, QPixmap > m_pixmapCache
Definition: kgamerenderer_p.h:158
QGraphicsView * m_defaultPrimaryView
Definition: kgamerenderer_p.h:129
QSvgRenderer * allocRenderer()
Definition: kgamerenderer.cpp:628
Definition: kgamerenderer_p.h:163
Definition: kgamerenderer_p.h:33
QObject * parent() const
KGameRendererClientPrivate(KGameRenderer *renderer, const QString &spriteKey, KGameRendererClient *parent)
Definition: kgamerendererclient.cpp:25
QHash< QColor, QColor > customColors
Definition: kgamerenderer_p.h:41
Definition: kgamerenderer_p.h:92
QStringList m_pendingRequests
Definition: kgamerenderer_p.h:135
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.