Plasma
svg.h
Go to the documentation of this file.
Q_INVOKABLE void paint(QPainter *painter, const QPointF &point, const QString &elementID=QString())
Paints all or part of the SVG represented by this object.
Definition svg.cpp:655
Q_INVOKABLE bool hasElement(const QString &elementId) const
Check whether an element exists in the loaded SVG.
Definition svg.cpp:732
Q_INVOKABLE QString elementAtPoint(const QPoint &point) const
Returns the element (by id) at the given point.
Definition svg.cpp:741
Q_INVOKABLE QSize elementSize(const QString &elementId) const
Find the size of a given element.
Definition svg.cpp:722
Q_INVOKABLE QRectF elementRect(const QString &elementId) const
The bounding rect of a given element.
Definition svg.cpp:727
void setTheme(Plasma::Theme *theme)
Sets the Plasma::Theme to use with this Svg object.
Definition svg.cpp:807
Q_INVOKABLE QPixmap pixmap(const QString &elementID=QString())
Returns a pixmap of the SVG represented by this object.
Definition svg.cpp:646
void repaintNeeded()
Emitted whenever the SVG data has changed in such a way that a repaint is required.
void setUsingRenderingCache(bool useCache)
Sets whether or not to cache the results of rendering to pixmaps.
Definition svg.cpp:797
Q_INVOKABLE bool isValid() const
Check whether this object is backed by a valid SVG file.
Definition svg.cpp:759
Svg(QObject *parent=0)
Constructs an SVG object that implicitly shares and caches rendering.
Definition svg.cpp:635
void setContainsMultipleImages(bool multiple)
Set whether the SVG contains a single image or multiple ones.
Definition svg.cpp:769
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.