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"
48 void setWidth(
int len,
bool percent);
49 void setHeight(
int len,
bool percent);
52 bool widthPercent()
const;
53 bool heightPercent()
const;
55 bool preserveAspectRatio()
const;
56 void setPreserveAspectRatio(
bool on);
70 bool elementExists(
const QString &
id)
const;
79 void restartAnimation();
80 int currentElapsed()
const;
81 bool animated()
const;
82 void setAnimated(
bool a);
83 int animationDuration()
const;
84 int currentFrame()
const;
85 void setCurrentFrame(
int);
86 void setFramesPerSecond(
int num);
94 mutable bool m_implicitViewBox =
true;
96 bool m_preserveAspectRatio =
false;
104 int m_animationDuration;
114 if (m_widthPercent || m_heightPercent) {
134 return m_widthPercent;
139 return m_heightPercent;
146 m_implicitViewBox =
true;
154 return m_preserveAspectRatio;
164 return m_animationDuration;
static qint64 currentMSecsSinceEpoch() noexcept
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 QSize toSize() const noexcept
Returns an integer based copy of this size.
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
friend class QSvgTinyDocument
virtual void draw(QPainter *p, QSvgExtraStates &states)=0
QRectF transformedBounds() const
virtual Type type() const =0
int animationDuration() const
bool preserveAspectRatio() const
int currentElapsed() const
bool heightPercent() const
bool widthPercent() const
Combined button and popup list for selecting options.
int qRound(qfloat16 d) noexcept
GLint GLsizei GLsizei height
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]