Plasma
wallpaper.h
Go to the documentation of this file.
virtual void init(const KConfigGroup &config)
This method is called once the wallpaper is loaded or mode is changed.
Definition wallpaper.cpp:332
virtual void wheelEvent(QGraphicsSceneWheelEvent *event)
Mouse wheel event.
Definition wallpaper.cpp:377
virtual void paint(QPainter *painter, const QRectF &exposedRect)=0
This method is called when the wallpaper should be painted.
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 setBoundingRect(const QRectF &boundingRect)
Sets bounding rectangle.
Definition wallpaper.cpp:293
QList< KServiceAction > listRenderingModes
Definition wallpaper.h:64
bool isUsingRenderingCache() const
Definition wallpaper.cpp:408
QList< QAction * > contextualActions() const
Returns a list of wallpaper contextual actions (nothing by default)
Definition wallpaper.cpp:652
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Mouse release event.
Definition wallpaper.cpp:370
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
virtual void save(KConfigGroup &config)
This method is called when settings need to be saved.
Definition wallpaper.cpp:340
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Mouse move event.
Definition wallpaper.cpp:356
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.
@ CenterTiledResize
Tiles the image to fill the area, starting with a centered tile.
Definition wallpaper.h:79
@ ScaledAndCroppedResize
Scales and crops the image, preserving the aspect ratio.
Definition wallpaper.h:77
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Mouse press event.
Definition wallpaper.cpp:363
bool needsPreviewDuringConfiguration() const
Definition wallpaper.cpp:672
Wallpaper::ResizeMethod resizeMethodHint() const
Definition wallpaper.cpp:427
void setContextualActions(const QList< QAction * > &actions)
Sets the contextual actions for this wallpaper.
Definition wallpaper.cpp:657
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.
bool configurationRequired() const
Definition wallpaper.cpp:389
void urlDropped(const KUrl &url)
Emitted when a URL matching X-Plasma-DropMimeTypes is dropped on the wallpaper.
void setPreviewing(bool previewing)
Puts the wallpaper into preview mode.
Definition wallpaper.cpp:667
void setPreviewDuringConfiguration(const bool preview)
Sets whether the configuration user interface of the wallpaper should have a live preview rendered by...
Definition wallpaper.cpp:677
void addUrls(const KUrl::List &urls)
This method is invoked by setUrls(KUrl::List) Can be Overriden by Plugins which want to support setti...
Definition wallpaper.cpp:128
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.
Wallpaper(QObject *parent=0)
Default constructor for an empty or null wallpaper.
Definition wallpaper.cpp:102
virtual QWidget * createConfigurationInterface(QWidget *parent)
Returns a widget that can be used to configure the options (if any) associated with this wallpaper.
Definition wallpaper.cpp:347
void restore(const KConfigGroup &config)
This method should be called once the wallpaper is loaded or mode is changed.
Definition wallpaper.cpp:322
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
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-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.