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>
34class WallpaperScriptPrivate;
74 virtual void initWallpaper(
const KConfigGroup &config);
82 virtual void paint(QPainter *painter,
const QRectF &exposedRect);
88 virtual void save(KConfigGroup &config);
114 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
122 virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
130 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
138 virtual void wheelEvent(QGraphicsSceneWheelEvent *event);
144 void setUrls(
const KUrl::List urls);
150 QString mainScript()
const;
157 const Package *package()
const;
162 KPluginInfo description()
const;
164 bool isInitialized()
const;
165 QRectF boundingRect()
const;
166 DataEngine *dataEngine(
const QString &name)
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,
172 const QColor &color = QColor(0, 0, 0));
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);
176 void setContextualActions(
const QList<QAction*> &actions);
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) \
189K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \
190K_EXPORT_PLUGIN(factory("plasma_wallpaperscriptengine_" #libname))
Data provider for plasmoids (Plasma plugins)
object representing an installed Plasmagik package
The base class for scripting interfaces to be used in loading plasmoids of a given language.
Provides a restricted interface for scripting a Wallpaper.
The base Wallpaper class.
ResizeMethod
Various resize modes supported by the built in image renderer.
@ ScaledResize
Scales the image to fit the full area.
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.