QtSvg/qsvgrenderer.h Source File
Go to the documentation of this file.
42 #ifndef QSVGRENDERER_H
43 #define QSVGRENDERER_H
47 #ifndef QT_NO_SVGRENDERER
60 class QSvgRendererPrivate;
69 Q_PROPERTY(
int framesPerSecond READ framesPerSecond WRITE setFramesPerSecond)
70 Q_PROPERTY(
int currentFrame READ currentFrame WRITE setCurrentFrame)
74 QSvgRenderer(const QByteArray &contents, QObject *parent=0);
80 QSize defaultSize() const;
82 QRect viewBox() const;
84 void setViewBox(const
QRect &viewbox);
85 void setViewBox(const
QRectF &viewbox);
87 bool animated() const;
88 int framesPerSecond() const;
89 void setFramesPerSecond(
int num);
90 int currentFrame() const;
91 void setCurrentFrame(
int);
92 int animationDuration() const;
95 bool elementExists(const
QString &
id) const;
99 bool load(const
QString &filename);
100 bool load(const QByteArray &contents);
102 void render(QPainter *
p);
103 void render(QPainter *p, const
QRectF &bounds);
105 void render(QPainter *p, const
QString &elementId,
109 void repaintNeeded();
119 #endif // QT_NO_SVGRENDERER
120 #endif // QSVGRENDERER_H
#define QT_BEGIN_NAMESPACE