Plasma
wallpaperscript.cpp
Go to the documentation of this file.
QString filePath(const char *fileType, const QString &filename) const
Get the path to a given file.
Definition package.cpp:213
The base class for scripting interfaces to be used in loading plasmoids of a given language.
Definition scriptengine.h:66
Wallpaper * wallpaper() const
Returns the Plasma::Wallpaper associated with this script component.
Definition wallpaperscript.cpp:54
virtual void renderCompleted(const QImage &image)
Definition wallpaperscript.cpp:221
virtual void urlDropped(const KUrl &url)
Definition wallpaperscript.cpp:226
void setTargetSizeHint(const QSizeF &targetSize)
Allows one to set rendering hints that may differ from the actualities of the Wallpaper's current sta...
Definition wallpaper.cpp:432
bool findInCache(const QString &key, QImage &image, unsigned int lastModified=0)
Tries to load pixmap with the specified key from cache.
Definition wallpaper.cpp:611
void setResizeMethodHint(Wallpaper::ResizeMethod resizeMethod)
Allows one to set rendering hints that may differ from the actualities of the Wallpaper's current sta...
Definition wallpaper.cpp:418
void setConfigurationRequired(bool needsConfiguring, const QString &reason=QString())
When the wallpaper needs to be configured before being usable, this method can be called to denote th...
Definition wallpaper.cpp:394
void update(const QRectF &exposedArea)
This signal indicates that wallpaper needs to be repainted.
void setContextualActions(const QList< QAction * > &actions)
Sets the contextual actions for this wallpaper.
Definition wallpaper.cpp:657
const Package * package() const
Accessor for the associated Package object if any.
Definition wallpaper.cpp:682
void setUsingRenderingCache(bool useCache)
Sets whether or not to cache on disk the results of calls to render.
Definition wallpaper.cpp:413
void insertIntoCache(const QString &key, const QImage &image)
Insert specified pixmap into the cache if usingRenderingCache.
Definition wallpaper.cpp:631
void configNeedsSaving()
Emitted when the configuration of the wallpaper needs to be saved to disk.
void render(const QString &sourceImagePath, const QSize &size, Wallpaper::ResizeMethod resizeMethod=ScaledResize, const QColor &color=QColor(0, 0, 0))
Renders the wallpaper asyncronously with the given parameters.
Definition wallpaper.cpp:455
Q_INVOKABLE DataEngine * dataEngine(const QString &name) const
Loads the given DataEngine.
Definition wallpaper.cpp:384
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.