Plasma
Go to the documentation of this file.
23#include <QtCore/QObject>
24#include <QtGui/QPixmap>
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;
360 Theme *theme()
const;
384 Q_PRIVATE_SLOT(d,
void themeChanged())
385 Q_PRIVATE_SLOT(d,
void colorsChanged())
387 friend class SvgPrivate;
388 friend class FrameSvgPrivate;
Provides an SVG with borders.
A theme aware image-centric SVG class.
void repaintNeeded()
Emitted whenever the SVG data has changed in such a way that a repaint is required.
void sizeChanged()
Emitted whenever the size of the Svg is changed.
Interface to the Plasma theme.
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.