Plasma
Go to the documentation of this file.
23 #include <QtCore/QObject>
24 #include <QtGui/QPixmap>
40 class FrameSvgPrivate;
60 Q_PROPERTY(
QSize size READ size WRITE resize NOTIFY sizeChanged)
61 Q_PROPERTY(
bool multipleImages READ containsMultipleImages WRITE setContainsMultipleImages)
62 Q_PROPERTY(
QString imagePath READ imagePath WRITE setImagePath)
63 Q_PROPERTY(
bool usingRenderingCache READ isUsingRenderingCache WRITE setUsingRenderingCache)
112 const QString &elementID = QString());
128 Q_INVOKABLE
void paint(
QPainter *painter,
int x,
int y,
129 const QString &elementID = QString());
141 const QString &elementID = QString());
154 Q_INVOKABLE
void paint(
QPainter *painter,
int x,
int y,
int width,
155 int height, const QString &elementID = QString());
183 Q_INVOKABLE
void resize(qreal width, qreal height);
197 Q_INVOKABLE
void resize(const
QSizeF &size);
204 Q_INVOKABLE
void resize();
216 Q_INVOKABLE
QSize elementSize(const QString &elementId) const;
228 Q_INVOKABLE
QRectF elementRect(const QString &elementId) const;
236 Q_INVOKABLE
bool hasElement(const QString &elementId) const;
248 Q_INVOKABLE QString elementAtPoint(const
QPoint &point) const;
258 Q_INVOKABLE
bool isValid() const;
273 void setContainsMultipleImages(
bool multiple);
286 bool containsMultipleImages() const;
302 void setImagePath(const QString &svgFilePath);
313 QString imagePath() const;
331 void setUsingRenderingCache(
bool useCache);
339 bool isUsingRenderingCache() const;
351 void setTheme(Plasma::
Theme *theme);
360 Theme *theme() const;
374 void repaintNeeded();
384 Q_PRIVATE_SLOT(d,
void themeChanged())
385 Q_PRIVATE_SLOT(d,
void colorsChanged())
387 friend class SvgPrivate;
388 friend class FrameSvgPrivate;
394 #endif // multiple inclusion guard
Provides an SVG with borders.
Interface to the Plasma theme.
A theme aware image-centric SVG 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.