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)
95 Q_INVOKABLE QPixmap pixmap(const QString &elementID = QString());
111 Q_INVOKABLE
void paint(QPainter *painter, const QPointF &point,
112 const QString &elementID = QString());
128 Q_INVOKABLE
void paint(QPainter *painter,
int x,
int y,
129 const QString &elementID = QString());
140 Q_INVOKABLE
void paint(QPainter *painter, const QRectF &rect,
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.