libkdegames
kgimageprovider.cpp
Go to the documentation of this file.
37 QImage KgImageProvider::requestImage(const QString& source, QSize *size, const QSize& requestedSize)
57 image = QImage(m_renderer.boundsOnElement(spriteKey).size().toSize(), QImage::Format_ARGB32_Premultiplied);
void render(QPainter *painter)
KgImageProvider(KgThemeProvider *provider)
Construcs a new KgImageProvider with the supplied KgThemeProvider.
Definition: kgimageprovider.cpp:24
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
A theme provider manages KgTheme instances, and maintains a selection of the currentTheme().
Definition: kgthemeprovider.h:39
QSizeF size() const
bool isValid() const
int size() const
bool load(const QString &filename)
void fill(uint pixelValue)
QSize toSize() const
QImage requestImage(const QString &source, QSize *size, const QSize &requestedSize)
Reimplemented method that is called when a sprite pixmap is requested.
Definition: kgimageprovider.cpp:37
QRectF boundsOnElement(const QString &id) const
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
QSize size() const
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.