Plasma
Go to the documentation of this file.
21 #ifndef PLASMA_WALLPAPERSCRIPT_H
22 #define PLASMA_WALLPAPERSCRIPT_H
24 #include <kgenericfactory.h>
25 #include <kplugininfo.h>
34 class WallpaperScriptPrivate;
74 virtual void initWallpaper(
const KConfigGroup &config);
88 virtual void save(KConfigGroup &config);
144 void setUrls(
const KUrl::List urls);
157 const Package *package()
const;
162 KPluginInfo description()
const;
164 bool isInitialized()
const;
165 QRectF boundingRect()
const;
168 void setTargetSizeHint(
const QSizeF &targetSize);
169 void setConfigurationRequired(
bool needsConfiguring,
const QString &reason =
QString());
170 void render(
const QString &sourceImagePath,
const QSize &size,
173 void setUsingRenderingCache(
bool useCache);
174 bool findInCache(
const QString &key,
QImage &image,
unsigned int lastModified = 0);
175 void insertIntoCache(
const QString& key,
const QImage &image);
177 void update(
const QRectF &exposedArea);
178 void configNeedsSaving();
181 virtual void renderCompleted(
const QImage &image);
182 virtual void urlDropped(
const KUrl &url);
185 WallpaperScriptPrivate *
const d;
188 #define K_EXPORT_PLASMA_WALLPAPERSCRIPTENGINE(libname, classname) \
189 K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \
190 K_EXPORT_PLUGIN(factory("plasma_wallpaperscriptengine_" #libname))
Provides a restricted interface for scripting a Wallpaper.
ResizeMethod
Various resize modes supported by the built in image renderer.
The base class for scripting interfaces to be used in loading plasmoids of a given language...
Data provider for plasmoids (Plasma plugins)
object representing an installed Plasmagik package
Scales the image to fit the full area.
The base Wallpaper class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.