Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qsvgtinydocument_p.h>
Static Public Member Functions | |
static QSvgTinyDocument * | load (const QString &file, QtSvg::Options options={}) |
static QSvgTinyDocument * | load (const QByteArray &contents, QtSvg::Options options={}) |
static QSvgTinyDocument * | load (QXmlStreamReader *contents, QtSvg::Options options={}) |
static bool | isLikelySvg (QIODevice *device, bool *isCompressed=nullptr) |
Definition at line 36 of file qsvgtinydocument_p.h.
QSvgTinyDocument::QSvgTinyDocument | ( | QtSvg::Options | options | ) |
Definition at line 26 of file qsvgtinydocument.cpp.
QSvgTinyDocument::~QSvgTinyDocument | ( | ) |
Definition at line 38 of file qsvgtinydocument.cpp.
Definition at line 366 of file qsvgtinydocument.cpp.
References QHash< Key, T >::insert().
Referenced by QSvgStructureNode::addChild().
void QSvgTinyDocument::addNamedStyle | ( | const QString & | id, |
QSvgPaintStyleProperty * | style ) |
Definition at line 376 of file qsvgtinydocument.cpp.
References QHash< Key, T >::contains(), QHash< Key, T >::insert(), qCWarning, and QSvgNode::style().
Referenced by QSvgNode::appendStyleProperty().
Definition at line 356 of file qsvgtinydocument.cpp.
References font, and QHash< Key, T >::insert().
Referenced by createFontNode(), parseFontFaceNameNode(), and parseFontFaceNode().
bool QSvgTinyDocument::animated | ( | ) | const |
Definition at line 394 of file qsvgtinydocument.cpp.
Referenced by QSvgRendererPrivate::startOrStopTimer().
|
inline |
Definition at line 170 of file qsvgtinydocument_p.h.
Definition at line 478 of file qsvgtinydocument.cpp.
References QSvgStructureNode::scopeNode(), and QSvgNode::transformedBounds().
|
inline |
Definition at line 165 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 514 of file qsvgtinydocument.cpp.
References currentElapsed(), and qMin().
Definition at line 404 of file qsvgtinydocument.cpp.
References draw().
Referenced by draw().
Definition at line 240 of file qsvgtinydocument.cpp.
References QSvgNode::applyStyle(), QList< T >::begin(), QSvgStructureNode::bounds(), QDateTime::currentMSecsSinceEpoch(), QSvgNode::displayMode(), QSvgNode::draw(), QList< T >::end(), QSvgNode::initPainter(), QSvgNode::isVisible(), QSvgStructureNode::m_renderers, QSvgNode::NoneMode, and QSvgNode::revertStyle().
Definition at line 266 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(), qCDebug, qPrintable, QSvgNode::revertStyle(), QSvgStructureNode::scopeNode(), QPen::setMiterLimit(), QPainter::SmoothPixmapTransform, Qt::SolidLine, Qt::SvgMiterJoin, and QSvgNode::transformedBounds().
|
overridevirtual |
bool QSvgTinyDocument::elementExists | ( | const QString & | id | ) | const |
Definition at line 486 of file qsvgtinydocument.cpp.
References QSvgStructureNode::scopeNode().
|
inline |
Definition at line 135 of file qsvgtinydocument_p.h.
References QSize::height(), and size().
Referenced by size().
|
inline |
Definition at line 145 of file qsvgtinydocument_p.h.
Definition at line 538 of file qsvgtinydocument.cpp.
References device, QByteArray::fromRawData(), hasSvgHeader(), and inflate().
Referenced by QSvgIOHandler::canRead(), and QSvgIOHandler::canRead().
|
static |
Definition at line 197 of file qsvgtinydocument.cpp.
References QSvgHandler::animationDuration(), contents, QSvgHandler::document(), QSvgHandler::ok(), options(), qt_inflateSvgzDataFrom(), QIODeviceBase::ReadOnly, and QBuffer::setData().
|
static |
Definition at line 170 of file qsvgtinydocument.cpp.
References QSvgHandler::animationDuration(), Qt::CaseInsensitive, QSvgHandler::document(), QIODevice::errorString(), QSvgHandler::errorString(), file, fileName, QSvgHandler::lineNumber(), load(), QSvgHandler::ok(), QFile::open(), options(), qCWarning, qPrintable, qt_inflateSvgzDataFrom(), and QIODeviceBase::ReadOnly.
Referenced by load(), loadDocument(), and QSvgVisitorImpl::traverse().
|
static |
Definition at line 226 of file qsvgtinydocument.cpp.
References QSvgHandler::animationDuration(), contents, QSvgHandler::document(), QSvgHandler::ok(), and options().
Definition at line 371 of file qsvgtinydocument.cpp.
References QHash< Key, T >::value().
Referenced by QSvgMask::createMask(), QSvgNode::draw(), QSvgMarker::drawMarkersForNode(), and QSvgStructureNode::scopeNode().
QSvgPaintStyleProperty * QSvgTinyDocument::namedStyle | ( | const QString & | id | ) | const |
Definition at line 384 of file qsvgtinydocument.cpp.
References QHash< Key, T >::value().
Referenced by QSvgNode::styleProperty().
QtSvg::Options QSvgTinyDocument::options | ( | ) | const |
Definition at line 351 of file qsvgtinydocument.cpp.
Referenced by load(), load(), and load().
|
inline |
Definition at line 160 of file qsvgtinydocument_p.h.
void QSvgTinyDocument::restartAnimation | ( | ) |
Definition at line 389 of file qsvgtinydocument.cpp.
References QDateTime::currentMSecsSinceEpoch().
void QSvgTinyDocument::setAnimated | ( | bool | a | ) |
Definition at line 399 of file qsvgtinydocument.cpp.
Referenced by parseAnimateColorNode(), and parseAnimateTransformNode().
void QSvgTinyDocument::setCurrentFrame | ( | int | frame | ) |
Definition at line 523 of file qsvgtinydocument.cpp.
References currentElapsed(), and frame.
void QSvgTinyDocument::setFramesPerSecond | ( | int | num | ) |
Definition at line 533 of file qsvgtinydocument.cpp.
void QSvgTinyDocument::setHeight | ( | int | len, |
bool | percent ) |
Definition at line 334 of file qsvgtinydocument.cpp.
References QSize::setHeight().
Referenced by createSvgNode().
void QSvgTinyDocument::setPreserveAspectRatio | ( | bool | on | ) |
Definition at line 340 of file qsvgtinydocument.cpp.
Definition at line 345 of file qsvgtinydocument.cpp.
References rect.
Referenced by createSvgNode().
void QSvgTinyDocument::setWidth | ( | int | len, |
bool | percent ) |
Definition at line 328 of file qsvgtinydocument.cpp.
References QSize::setWidth().
Referenced by createSvgNode().
|
inline |
Definition at line 118 of file qsvgtinydocument_p.h.
References height(), QSize::height(), QSize::isEmpty(), qRound(), size(), QRectF::size(), viewBox(), width(), and QSize::width().
Referenced by height(), size(), QSvgVisitorImpl::visitDocumentNodeStart(), width(), and SvgDebugVisitor::write().
Definition at line 361 of file qsvgtinydocument.cpp.
Referenced by createFontNode(), parseFont(), parseFontFaceNameNode(), and parseFontFaceNode().
QTransform QSvgTinyDocument::transformForElement | ( | const QString & | id | ) | const |
Definition at line 493 of file qsvgtinydocument.cpp.
References QSvgNode::m_style, QSvgNode::parent(), qCDebug, qPrintable, QSvgTransformStyle::qtransform(), QSvgStructureNode::scopeNode(), and QSvgStyle::transform.
|
overridevirtual |
Implements QSvgNode.
Definition at line 323 of file qsvgtinydocument.cpp.
References QSvgNode::Doc.
Referenced by QSvgVisitorImpl::visitDocumentNodeEnd().
|
inline |
Definition at line 150 of file qsvgtinydocument_p.h.
References QRectF::isNull(), and QSvgNode::transformedBounds().
Referenced by createMaskNode(), createPatternNode(), QSvgFeFilterPrimitive::localFilterBoundingBox(), parseSymbolLikeAttributes(), size(), QSvgVisitorImpl::visitDocumentNodeStart(), and SvgDebugVisitor::write().
|
inline |
Definition at line 130 of file qsvgtinydocument_p.h.
References size(), and QSize::width().
Referenced by size().
|
inline |
Definition at line 140 of file qsvgtinydocument_p.h.