Plasma
8 #ifndef PLASMA_FRAMESVG_H
9 #define PLASMA_FRAMESVG_H
14 #include <plasma/plasma_export.h>
16 #include <plasma/plasma.h>
17 #include <plasma/svg.h>
30 class FrameSvgPrivate;
66 Q_PROPERTY(
EnabledBorders enabledBorders READ enabledBorders WRITE setEnabledBorders)
78 AllBorders = TopBorder | BottomBorder | LeftBorder | RightBorder,
80 Q_DECLARE_FLAGS(EnabledBorders, EnabledBorder)
81 Q_FLAG(EnabledBorders)
99 Q_INVOKABLE
void setImagePath(
const QString &path)
override;
105 void setEnabledBorders(
const EnabledBorders borders);
111 EnabledBorders enabledBorders()
const;
117 Q_INVOKABLE
void resizeFrame(
const QSizeF &size);
122 Q_INVOKABLE
QSizeF frameSize()
const;
143 Q_INVOKABLE
void getMargins(qreal &left, qreal &top, qreal &right, qreal &bottom)
const;
162 Q_INVOKABLE
void getFixedMargins(qreal &left, qreal &top, qreal &right, qreal &bottom)
const;
181 Q_INVOKABLE
void getInset(qreal &left, qreal &top, qreal &right, qreal &bottom)
const;
186 Q_INVOKABLE
QRectF contentsRect()
const;
215 Q_INVOKABLE
void setElementPrefix(
const QString &prefix);
222 Q_INVOKABLE
bool hasElementPrefix(
const QString &prefix)
const;
245 Q_INVOKABLE
QRegion mask()
const;
256 Q_INVOKABLE
void setCacheAllRenderedFrames(
bool cache);
261 Q_INVOKABLE
bool cacheAllRenderedFrames()
const;
268 Q_INVOKABLE
void clearCache();
277 Q_INVOKABLE
QPixmap framePixmap();
306 bool isRepaintBlocked()
const;
316 void setRepaintBlocked(
bool blocked);
323 Q_INVOKABLE
int minimumDrawingHeight();
330 Q_INVOKABLE
int minimumDrawingWidth();
333 FrameSvgPrivate *
const d;
334 friend class FrameData;
337 Q_DECLARE_OPERATORS_FOR_FLAGS(FrameSvg::EnabledBorders)
341 #endif // multiple inclusion guard
Namespace for everything in libplasma.
EnabledBorder
These flags represents what borders should be drawn.
A theme aware image-centric SVG class.
Location
The Location enumeration describes where on screen an element, such as an Applet or its managing cont...
Provides an SVG with borders.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 04:14:15 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.