42 #ifndef QSVGTINYDOCUMENT_P_H 43 #define QSVGTINYDOCUMENT_P_H 60 #include "QtCore/qrect.h" 61 #include "QtCore/qlist.h" 62 #include "QtCore/qhash.h" 63 #include "QtCore/qdatetime.h" 64 #include "QtCore/qxmlstream.h" 86 void setWidth(
int len,
bool percent);
87 void setHeight(
int len,
bool percent);
90 bool widthPercent()
const;
91 bool heightPercent()
const;
93 bool preserveAspectRatio()
const;
96 void setViewBox(
const QRectF &rect);
107 bool elementExists(
const QString &
id)
const;
116 void restartAnimation();
117 int currentElapsed()
const;
118 bool animated()
const;
119 void setAnimated(
bool a);
120 int animationDuration()
const;
121 int currentFrame()
const;
122 void setCurrentFrame(
int);
123 void setFramesPerSecond(
int num);
147 if (m_size.isEmpty()) {
148 return viewBox().size().toSize();
156 return size().width();
161 return size().height();
166 return m_widthPercent;
171 return m_heightPercent;
176 if (m_viewBox.isNull())
189 return m_time.elapsed();
194 return m_animationDuration;
200 #endif // QSVGTINYDOCUMENT_P_H The QPainter class performs low-level painting on widgets and other paint devices.
virtual Type type() const =0
#define QT_END_NAMESPACE
This macro expands to.
The QMatrix class specifies 2D transformations of a coordinate system.
QRectF transformedBounds() const
int animationDuration() const
The QByteArray class provides an array of bytes.
bool widthPercent() const
long ASN1_INTEGER_get ASN1_INTEGER * a
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
bool heightPercent() const
QHash< QString, QSvgRefCounter< QSvgFillStyleProperty > > m_namedStyles
The QTime class provides clock time functions.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
int currentElapsed() const
bool preserveAspectRatio() const
friend class QSvgTinyDocument
virtual void draw(QPainter *p, QSvgExtraStates &states)=0
The QSize class defines the size of a two-dimensional object using integer point precision.
The QXmlStreamReader class provides a fast parser for reading well-formed XML via a simple streaming ...
QHash< QString, QSvgNode * > m_namedNodes
QHash< QString, QSvgRefCounter< QSvgFont > > m_fonts