7#include <QLoggingCategory>
12#include <QtGui/private/qoutlinemapper_p.h>
14#if !defined(QT_SVG_SIZE_LIMIT)
15# define QT_SVG_SIZE_LIMIT QT_RASTER_COORD_LIMIT
25 m_displayMode(BlockMode)
49 switch (prop->
type()) {
68 if (doc && !
id.isEmpty())
74 if (doc && !
id.isEmpty())
94 qDebug(
"QSvgNode: Trying to append unknown property!");
187 return QRectF(0, 0, 0, 0);
193 return m_cachedBounds;
210 for (
int i = parentApplyStack.
size() - 1;
i >= 0; --
i)
216 return m_cachedBounds;
233 m_requiredFeatures = lst;
238 return m_requiredFeatures;
243 m_requiredExtensions = lst;
248 return m_requiredExtensions;
253 m_requiredLanguages = lst;
258 return m_requiredLanguages;
263 m_requiredFormats = lst;
268 return m_requiredFormats;
273 m_requiredFonts = lst;
278 return m_requiredFonts;
287 if (m_parent && visible && !m_parent->
isVisible())
313 m_displayMode =
mode;
318 return m_displayMode;
323 const QPen &pen =
p->pen();
339 qCWarning(lcSvgDraw) <<
"Shape of type" <<
type() <<
"ignored because it will take too long to rasterize (bounding rect=" << brect <<
")."
340 <<
"Set QT_SVG_DISABLE_SIZE_LIMIT=1 to disable this check.";
Qt::BrushStyle style() const
Returns the brush style.
qsizetype size() const noexcept
bool isEmpty() const noexcept
void append(parameter_type t)
The QPainter class performs low-level painting on widgets and other paint devices.
qreal widthF() const
Returns the pen width with floating point precision.
bool isCosmetic() const
Returns true if the pen is cosmetic; otherwise returns false.
void setMiterLimit(qreal limit)
Sets the miter limit of this pen to the given limit.
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
Qt::PenStyle style() const
Returns the pen style.
\inmodule QtCore\reentrant
constexpr bool isEmpty() const noexcept
Returns true if the rectangle is empty, otherwise returns false.
constexpr qreal height() const noexcept
Returns the height of the rectangle.
constexpr qreal width() const noexcept
Returns the width of the rectangle.
void push(const T &t)
Adds element t to the top of the stack.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QString & remove(qsizetype i, qsizetype len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
void setRequiredFeatures(const QStringList &lst)
void setXmlClass(const QString &str)
void revertStyle(QPainter *p, QSvgExtraStates &states) const
static qreal strokeWidth(QPainter *p)
bool isDescendantOf(const QSvgNode *parent) const
QSvgStyleProperty * styleProperty(QSvgStyleProperty::Type type) const
void setRequiredExtensions(const QStringList &lst)
virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const
void setRequiredFonts(const QStringList &lst)
const QStringList & requiredLanguages() const
void setNodeId(const QString &i)
QSvgNode * parent() const
void applyStyle(QPainter *p, QSvgExtraStates &states) const
const QStringList & requiredFonts() const
const QStringList & requiredFormats() const
DisplayMode displayMode() const
void appendStyleProperty(QSvgStyleProperty *prop, const QString &id)
void setDisplayMode(DisplayMode display)
bool shouldDrawNode(QPainter *p, QSvgExtraStates &states) const
virtual QRectF fastBounds(QPainter *p, QSvgExtraStates &states) const
QRectF transformedBounds() const
const QStringList & requiredFeatures() const
void setRequiredLanguages(const QStringList &lst)
QSvgTinyDocument * document() const
virtual Type type() const =0
void setVisible(bool visible)
const QStringList & requiredExtensions() const
void setRequiredFormats(const QStringList &lst)
virtual Type type() const =0
void apply(QPainter *p, const QSvgNode *node, QSvgExtraStates &states)
QSvgRefCounter< QSvgSolidColorStyle > solidColor
QSvgRefCounter< QSvgOpacityStyle > opacity
QSvgRefCounter< QSvgViewportFillStyle > viewportFill
QList< QSvgRefCounter< QSvgAnimateTransform > > animateTransforms
QSvgRefCounter< QSvgFontStyle > font
QSvgRefCounter< QSvgTransformStyle > transform
QSvgRefCounter< QSvgStrokeStyle > stroke
QSvgRefCounter< QSvgAnimateColor > animateColor
QSvgRefCounter< QSvgQualityStyle > quality
QSvgRefCounter< QSvgFillStyle > fill
QSvgRefCounter< QSvgCompOpStyle > compop
QSvgRefCounter< QSvgGradientStyle > gradient
void revert(QPainter *p, QSvgExtraStates &states)
QSvgFillStyleProperty * namedStyle(const QString &id) const
void addNamedStyle(const QString &id, QSvgFillStyleProperty *style)
Combined button and popup list for selecting options.
#define qCWarning(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
#define QT_SVG_SIZE_LIMIT
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept
\inmodule QtCore \reentrant
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent