Plasma
wallpaper.h
Go to the documentation of this file.
59 Q_PROPERTY(QRectF boundingRect READ boundingRect WRITE setBoundingRect)
60 Q_PROPERTY(QString name READ name)
61 Q_PROPERTY(QString pluginName READ pluginName)
62 Q_PROPERTY(QString icon READ icon)
63 Q_PROPERTY(KServiceAction renderingMode READ renderingMode)
64 Q_PROPERTY(QList<KServiceAction> listRenderingModes READ listRenderingModes)
68 Q_PROPERTY(QSizeF targetSize READ targetSizeHint WRITE setTargetSizeHint)
75 ScaledResize ,
76 CenteredResize ,
77 ScaledAndCroppedResize ,
78 TiledResize ,
79 CenterTiledResize ,
80 MaxpectResize ,
82 };
573 friend class WallpaperPrivate;
575 friend class WallpaperWithPaint;
576 friend class ContainmentPrivate;
Provides a restricted interface for scripting a Wallpaper.
Definition wallpaperscript.h:43
virtual void paint(QPainter *painter, const QRectF &exposedRect)=0
This method is called when the wallpaper should be painted.
void update(const QRectF &exposedArea)
This signal indicates that wallpaper needs to be repainted.
void renderHintsChanged()
void configurationRequired(bool needsConfig)
Emitted when the state of the wallpaper requiring configuration changes.
void renderCompleted(const QImage &image)
Emitted when a wallpaper image render is completed.
void configureRequested()
Emitted when the user wants to configure/change the wallpaper.
void urlDropped(const KUrl &url)
Emitted when a URL matching X-Plasma-DropMimeTypes is dropped on the wallpaper.
void configNeedsSaving()
Emitted when the configuration of the wallpaper needs to be saved to disk.
PackageStructure::Ptr packageStructure(const QString &language, ComponentType type)
Loads an appropriate PackageStructure for the given language and type.
Definition scriptengine.cpp:274
<Plasma/Version>
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.11.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.11.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.