Plasma
13 #include <plasma/plasma_export.h>
14 #include <plasma/theme.h>
27 class FrameSvgPrivate;
45 Q_PROPERTY(
QSize size READ size WRITE resize NOTIFY sizeChanged)
46 Q_PROPERTY(
bool multipleImages READ containsMultipleImages WRITE setContainsMultipleImages)
47 Q_PROPERTY(
QString imagePath READ imagePath WRITE setImagePath NOTIFY imagePathChanged)
48 Q_PROPERTY(
bool usingRenderingCache READ isUsingRenderingCache WRITE setUsingRenderingCache)
49 Q_PROPERTY(
bool fromCurrentTheme READ fromCurrentTheme NOTIFY fromCurrentThemeChanged)
50 Q_PROPERTY(Plasma::Theme::ColorGroup colorGroup READ colorGroup WRITE setColorGroup NOTIFY colorGroupChanged)
51 Q_PROPERTY(Plasma::Svg::Status
status READ
status WRITE setStatus NOTIFY statusChanged)
86 void setDevicePixelRatio(qreal ratio);
91 qreal devicePixelRatio();
98 qreal scaleFactor()
const;
106 void setScaleFactor(qreal factor);
115 void setColorGroup(Plasma::Theme::ColorGroup group);
120 Plasma::Theme::ColorGroup colorGroup()
const;
204 Q_INVOKABLE
void paint(
QPainter *painter,
int x,
int y,
int width,
int height,
const QString &elementID =
QString());
232 Q_INVOKABLE
void resize(qreal width, qreal height);
246 Q_INVOKABLE
void resize(
const QSizeF &size);
253 Q_INVOKABLE
void resize();
265 Q_INVOKABLE
QSize elementSize(
const QString &elementId)
const;
279 Q_INVOKABLE
QRectF elementRect(
const QString &elementId)
const;
289 Q_INVOKABLE
bool hasElement(
const QString &elementId)
const;
301 Q_INVOKABLE
bool isValid()
const;
316 void setContainsMultipleImages(
bool multiple);
329 bool containsMultipleImages()
const;
345 virtual void setImagePath(
const QString &svgFilePath);
374 void setUsingRenderingCache(
bool useCache);
382 bool isUsingRenderingCache()
const;
391 bool fromCurrentTheme()
const;
399 void setUseSystemColors(
bool system);
406 bool useSystemColors()
const;
427 Theme *theme()
const;
438 void setStatus(Svg::Status
status);
444 Svg::Status
status()
const;
458 void repaintNeeded();
468 void imagePathChanged();
473 void colorHintChanged();
478 void colorGroupChanged();
483 void fromCurrentThemeChanged(
bool fromCurrentTheme);
489 void statusChanged(Plasma::Svg::Status
status);
495 Q_PRIVATE_SLOT(d,
void themeChanged())
496 Q_PRIVATE_SLOT(d,
void colorsChanged())
498 friend class SvgPrivate;
499 friend class FrameSvgPrivate;
505 #endif // multiple inclusion guard
Namespace for everything in libplasma.
Q_SCRIPTABLE CaptureState status()
A theme aware image-centric SVG class.
Interface to the Plasma theme.
Provides an SVG with borders.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:18:17 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.