Kstars
texturemanager.cpp
146 // FIXME: Check if Qt does this for us already. [Note that it does scale to the nearest power of two]
147 bindImage(image.scaled(tex_size, tex_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), cxt);
static const QImage & getImage(const QString &name)
Return texture image.
Definition texturemanager.cpp:48
static void discoverTextureDirs()
Clear the cache and discover the directories to load textures from.
Definition texturemanager.cpp:158
static TextureManager * Create()
Create the instance of TextureManager.
Definition texturemanager.cpp:32
Dirs
bool hasNext() const const
QString next()
const_iterator constEnd() const const
const_iterator constFind(const Key &key) const const
iterator insert(const Key &key, const T &value)
int height() const const
QImage scaled(const QSize &size, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const const
int width() const const
AppLocalDataLocation
QString arg(Args &&... args) const const
bool isEmpty() const const
bool isNull() const const
IgnoreAspectRatio
SmoothTransformation
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.