4#ifndef QSVGTINYDOCUMENT_P_H
5#define QSVGTINYDOCUMENT_P_H
21#include "QtCore/qrect.h"
22#include "QtCore/qlist.h"
23#include "QtCore/qhash.h"
24#include "QtCore/qdatetime.h"
25#include "QtCore/qxmlstream.h"
42 static bool isLikelySvg(
QIODevice *
device,
bool *isCompressed =
nullptr);
49 void setWidth(
int len,
bool percent);
50 void setHeight(
int len,
bool percent);
51 inline int width()
const;
53 inline bool widthPercent()
const;
54 inline bool heightPercent()
const;
56 inline bool preserveAspectRatio()
const;
57 void setPreserveAspectRatio(
bool on);
59 inline QRectF viewBox()
const;
62 QtSvg::Options options()
const;
73 bool elementExists(
const QString &
id)
const;
82 void restartAnimation();
83 inline int currentElapsed()
const;
84 bool animated()
const;
85 void setAnimated(
bool a);
86 inline int animationDuration()
const;
87 int currentFrame()
const;
88 void setCurrentFrame(
int);
89 void setFramesPerSecond(
int num);
98 mutable bool m_implicitViewBox =
true;
100 bool m_preserveAspectRatio =
false;
102 QHash<QString, QSvgRefCounter<QSvgFont> > m_fonts;
103 QHash<QString, QSvgNode *> m_namedNodes;
104 QHash<QString, QSvgRefCounter<QSvgPaintStyleProperty> > m_namedStyles;
108 int m_animationDuration;
122 if (m_widthPercent || m_heightPercent) {
142 return m_widthPercent;
147 return m_heightPercent;
154 m_implicitViewBox =
true;
162 return m_preserveAspectRatio;
172 return m_animationDuration;
IOBluetoothDevice * device
static qint64 currentMSecsSinceEpoch() noexcept
\inmodule QtCore \reentrant
The QPainter class performs low-level painting on widgets and other paint devices.
\inmodule QtCore\reentrant
constexpr bool isNull() const noexcept
Returns true if the rectangle is a null rectangle, otherwise returns false.
constexpr QSizeF size() const noexcept
Returns the size of the rectangle.
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
constexpr bool isEmpty() const noexcept
Returns true if either of the width and height is less than or equal to 0; otherwise returns false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QRectF transformedBounds() const
int animationDuration() const
bool preserveAspectRatio() const
int currentElapsed() const
bool heightPercent() const
bool widthPercent() const
Combined button and popup list for selecting options.
SharedPointerFileDialogOptions m_options
int qRound(qfloat16 d) noexcept
GLint GLsizei GLsizei height
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
Q_SVG_EXPORT QDebug operator<<(QDebug debug, const QSvgTinyDocument &doc)
myFilter draw(painter, QPoint(0, 0), originalPixmap)