![]() |
Qt 6.x
The Qt SDK
|
#include <qsvgtinydocument_p.h>
Static Public Member Functions | |
static QSvgTinyDocument * | load (const QString &file) |
static QSvgTinyDocument * | load (const QByteArray &contents) |
static QSvgTinyDocument * | load (QXmlStreamReader *contents) |
Additional Inherited Members | |
![]() | |
enum | Type { DOC , G , DEFS , SWITCH , ANIMATION , ARC , CIRCLE , ELLIPSE , IMAGE , LINE , PATH , POLYGON , POLYLINE , RECT , TEXT , TEXTAREA , TSPAN , USE , VIDEO } |
enum | DisplayMode { InlineMode , BlockMode , ListItemMode , RunInMode , CompactMode , MarkerMode , TableMode , InlineTableMode , TableRowGroupMode , TableHeaderGroupMode , TableFooterGroupMode , TableRowMode , TableColumnGroupMode , TableColumnMode , TableCellMode , TableCaptionMode , NoneMode , InheritMode } |
![]() | |
static qreal | strokeWidth (QPainter *p) |
![]() | |
QList< QSvgNode * > | m_renderers |
QHash< QString, QSvgNode * > | m_scope |
QList< QSvgStructureNode * > | m_linkedScopes |
bool | m_recursing = false |
![]() | |
QSvgStyle | m_style |
Definition at line 36 of file qsvgtinydocument_p.h.
QT_BEGIN_NAMESPACE QSvgTinyDocument::QSvgTinyDocument | ( | ) |
Definition at line 24 of file qsvgtinydocument.cpp.
QSvgTinyDocument::~QSvgTinyDocument | ( | ) |
Definition at line 35 of file qsvgtinydocument.cpp.
Definition at line 352 of file qsvgtinydocument.cpp.
References QHash< Key, T >::insert().
Referenced by QSvgStructureNode::addChild().
void QSvgTinyDocument::addNamedStyle | ( | const QString & | id, |
QSvgFillStyleProperty * | style | ||
) |
Definition at line 362 of file qsvgtinydocument.cpp.
References QHash< Key, T >::contains(), QHash< Key, T >::insert(), and qCWarning.
Referenced by QSvgNode::appendStyleProperty().
Definition at line 342 of file qsvgtinydocument.cpp.
References font, and QHash< Key, T >::insert().
Referenced by createFontNode(), parseFontFaceNameNode(), and parseFontFaceNode().
bool QSvgTinyDocument::animated | ( | ) | const |
Definition at line 380 of file qsvgtinydocument.cpp.
|
inline |
Definition at line 162 of file qsvgtinydocument_p.h.
Definition at line 463 of file qsvgtinydocument.cpp.
References QSvgStructureNode::scopeNode(), and QSvgNode::transformedBounds().
|
inline |
Definition at line 157 of file qsvgtinydocument_p.h.
References QDateTime::currentMSecsSinceEpoch().
Referenced by QSvgStyle::apply(), QSvgAnimateColor::apply(), currentFrame(), QSvgAnimateTransform::resolveMatrix(), and setCurrentFrame().
int QSvgTinyDocument::currentFrame | ( | ) | const |
Definition at line 499 of file qsvgtinydocument.cpp.
References currentElapsed(), and qMin().
Definition at line 390 of file qsvgtinydocument.cpp.
References draw().
Definition at line 225 of file qsvgtinydocument.cpp.
References QPainter::Antialiasing, QSvgNode::applyStyle(), QList< T >::begin(), Qt::black, QSvgStructureNode::bounds(), QDateTime::currentMSecsSinceEpoch(), QSvgNode::displayMode(), QSvgNode::draw(), QList< T >::end(), Qt::FlatCap, QSvgNode::isVisible(), QSvgStructureNode::m_renderers, Qt::NoBrush, QSvgNode::NoneMode, QSvgNode::revertStyle(), QPen::setMiterLimit(), QPainter::SmoothPixmapTransform, Qt::SolidLine, and Qt::SvgMiterJoin.
Definition at line 256 of file qsvgtinydocument.cpp.
References QPainter::Antialiasing, QSvgNode::applyStyle(), Qt::black, QSvgStructureNode::bounds(), QDateTime::currentMSecsSinceEpoch(), QSvgNode::displayMode(), QSvgNode::draw(), Qt::FlatCap, i, Qt::NoBrush, QSvgNode::NoneMode, QSvgNode::parent(), QStack< T >::push(), qCDebug, qPrintable, QSvgNode::revertStyle(), QSvgStructureNode::scopeNode(), QPen::setMiterLimit(), QList< T >::size(), QPainter::SmoothPixmapTransform, Qt::SolidLine, Qt::SvgMiterJoin, and QSvgNode::transformedBounds().
|
overridevirtual |
bool QSvgTinyDocument::elementExists | ( | const QString & | id | ) | const |
Definition at line 471 of file qsvgtinydocument.cpp.
References QSvgStructureNode::scopeNode().
|
inline |
Definition at line 127 of file qsvgtinydocument_p.h.
References QSize::height(), and size().
Referenced by size().
|
inline |
Definition at line 137 of file qsvgtinydocument_p.h.
|
static |
Definition at line 182 of file qsvgtinydocument.cpp.
References QSvgHandler::animationDuration(), contents, QSvgHandler::document(), QByteArray::isNull(), QSvgHandler::ok(), qt_inflateSvgzDataFrom(), and QIODeviceBase::ReadOnly.
|
static |
Definition at line 155 of file qsvgtinydocument.cpp.
References QSvgHandler::animationDuration(), Qt::CaseInsensitive, QSvgHandler::document(), QIODevice::errorString(), QSvgHandler::errorString(), file, fileName, QSvgHandler::lineNumber(), load(), QSvgHandler::ok(), QFile::open(), qCWarning, qPrintable, qt_inflateSvgzDataFrom(), and QIODeviceBase::ReadOnly.
Referenced by load(), and loadDocument().
|
static |
Definition at line 211 of file qsvgtinydocument.cpp.
References QSvgHandler::animationDuration(), contents, QSvgHandler::document(), and QSvgHandler::ok().
Definition at line 357 of file qsvgtinydocument.cpp.
References QHash< Key, T >::value().
Referenced by QSvgStructureNode::scopeNode().
QSvgFillStyleProperty * QSvgTinyDocument::namedStyle | ( | const QString & | id | ) | const |
Definition at line 370 of file qsvgtinydocument.cpp.
References QHash< Key, T >::value().
Referenced by QSvgNode::styleProperty().
|
inline |
Definition at line 152 of file qsvgtinydocument_p.h.
void QSvgTinyDocument::restartAnimation | ( | ) |
Definition at line 375 of file qsvgtinydocument.cpp.
References QDateTime::currentMSecsSinceEpoch().
void QSvgTinyDocument::setAnimated | ( | bool | a | ) |
Definition at line 385 of file qsvgtinydocument.cpp.
void QSvgTinyDocument::setCurrentFrame | ( | int | frame | ) |
Definition at line 508 of file qsvgtinydocument.cpp.
References currentElapsed(), and frame.
void QSvgTinyDocument::setFramesPerSecond | ( | int | num | ) |
Definition at line 518 of file qsvgtinydocument.cpp.
void QSvgTinyDocument::setHeight | ( | int | len, |
bool | percent | ||
) |
Definition at line 325 of file qsvgtinydocument.cpp.
References QSize::setHeight().
Referenced by createSvgNode().
void QSvgTinyDocument::setPreserveAspectRatio | ( | bool | on | ) |
Definition at line 331 of file qsvgtinydocument.cpp.
Definition at line 336 of file qsvgtinydocument.cpp.
References rect.
Referenced by createSvgNode().
void QSvgTinyDocument::setWidth | ( | int | len, |
bool | percent | ||
) |
Definition at line 319 of file qsvgtinydocument.cpp.
References QSize::setWidth().
Referenced by createSvgNode().
|
inline |
Definition at line 110 of file qsvgtinydocument_p.h.
References height(), QSize::height(), QSize::isEmpty(), qRound(), size(), QRectF::size(), QSizeF::toSize(), viewBox(), width(), and QSize::width().
Referenced by height(), size(), and width().
Definition at line 347 of file qsvgtinydocument.cpp.
Referenced by createFontNode(), parseFont(), parseFontFaceNameNode(), and parseFontFaceNode().
QTransform QSvgTinyDocument::transformForElement | ( | const QString & | id | ) | const |
Definition at line 478 of file qsvgtinydocument.cpp.
References QSvgNode::m_style, QSvgNode::parent(), qCDebug, qPrintable, QSvgTransformStyle::qtransform(), QSvgStructureNode::scopeNode(), and QSvgStyle::transform.
|
overridevirtual |
|
inline |
Definition at line 142 of file qsvgtinydocument_p.h.
References QRectF::isNull(), and QSvgNode::transformedBounds().
Referenced by size().
|
inline |
Definition at line 122 of file qsvgtinydocument_p.h.
References size(), and QSize::width().
Referenced by size().
|
inline |
Definition at line 132 of file qsvgtinydocument_p.h.