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 <qsvghandler_p.h>
Public Types | |
enum | LengthType { LT_PERCENT , LT_PX , LT_PC , LT_PT , LT_MM , LT_CM , LT_IN , LT_OTHER } |
Definition at line 47 of file qsvghandler_p.h.
Enumerator | |
---|---|
LT_PERCENT | |
LT_PX | |
LT_PC | |
LT_PT | |
LT_MM | |
LT_CM | |
LT_IN | |
LT_OTHER |
Definition at line 50 of file qsvghandler_p.h.
QSvgHandler::QSvgHandler | ( | QIODevice * | device, |
QtSvg::Options | options = {} ) |
Definition at line 4485 of file qsvghandler.cpp.
QSvgHandler::QSvgHandler | ( | const QByteArray & | data, |
QtSvg::Options | options = {} ) |
Definition at line 4493 of file qsvghandler.cpp.
QSvgHandler::QSvgHandler | ( | QXmlStreamReader *const | data, |
QtSvg::Options | options = {} ) |
Definition at line 4501 of file qsvghandler.cpp.
QSvgHandler::~QSvgHandler | ( | ) |
Definition at line 5102 of file qsvghandler.cpp.
int QSvgHandler::animationDuration | ( | ) | const |
Definition at line 5097 of file qsvghandler.cpp.
Referenced by QSvgTinyDocument::load(), QSvgTinyDocument::load(), and QSvgTinyDocument::load().
bool QSvgHandler::characters | ( | QStringView | str | ) |
Definition at line 4951 of file qsvghandler.cpp.
References addText(), QList< T >::isEmpty(), QCss::Parser::parse(), str, QCss::StyleSelector::styleSheets, QSvgNode::Text, QSvgNode::Textarea, QStack< T >::top(), QSvgNode::Tspan, and QSvgNode::type().
QColor QSvgHandler::currentColor | ( | ) | const |
Definition at line 5018 of file qsvghandler.cpp.
References QList< T >::isEmpty(), and QStack< T >::top().
Referenced by resolveColor().
QSvgHandler::LengthType QSvgHandler::defaultCoordinateSystem | ( | ) | const |
Definition at line 4984 of file qsvghandler.cpp.
Referenced by parseLength().
|
inline |
Definition at line 99 of file qsvghandler_p.h.
QIODevice * QSvgHandler::device | ( | ) | const |
Definition at line 4974 of file qsvghandler.cpp.
Referenced by createImageNode().
QSvgTinyDocument * QSvgHandler::document | ( | ) | const |
Definition at line 4979 of file qsvghandler.cpp.
Referenced by createPatternNode(), QSvgTinyDocument::load(), QSvgTinyDocument::load(), QSvgTinyDocument::load(), parseBaseGradient(), and parseSymbolLikeAttributes().
bool QSvgHandler::endElement | ( | QStringView | localName | ) |
Definition at line 4843 of file qsvghandler.cpp.
References QList< T >::isEmpty(), QStack< T >::pop(), popColor(), Q_UNUSED, and QStack< T >::top().
|
inline |
Definition at line 74 of file qsvghandler_p.h.
References xml.
Referenced by QSvgTinyDocument::load().
bool QSvgHandler::inStyle | ( | ) | const |
Definition at line 5033 of file qsvghandler.cpp.
|
inline |
Definition at line 75 of file qsvghandler_p.h.
References xml.
Referenced by QSvgTinyDocument::load().
|
inline |
Definition at line 70 of file qsvghandler_p.h.
References xml.
Referenced by QSvgTinyDocument::load(), QSvgTinyDocument::load(), and QSvgTinyDocument::load().
QtSvg::Options QSvgHandler::options | ( | ) | const |
Definition at line 2084 of file qsvghandler.cpp.
Referenced by QSvgAttributes::QSvgAttributes(), createSvgNode(), parseExtendedAttributes(), and startElement().
void QSvgHandler::parseCSStoXMLAttrs | ( | const QString & | css, |
QList< QSvgCssAttribute > * | attributes ) |
Definition at line 1989 of file qsvghandler.cpp.
References QList< T >::at(), QCss::COLON, QCss::Parser::hasEscapeSequences, QCss::Parser::hasNext(), i, QCss::Parser::index, QCss::Parser::init(), QCss::Symbol::len, Symbol::len, QCss::Parser::lexem(), Symbol::lexem(), QString::mid(), QCss::Parser::next(), QCss::SEMICOLON, QCss::Parser::skipSpace(), QCss::Symbol::start, QCss::Parser::symbol(), QCss::Parser::symbols, QCss::Parser::test(), and QCss::Symbol::text.
Referenced by QSvgAttributes::QSvgAttributes().
void QSvgHandler::popColor | ( | ) |
Definition at line 5008 of file qsvghandler.cpp.
References QStack< T >::pop(), QList< T >::size(), and QStack< T >::top().
Referenced by endElement(), parseBaseGradient(), and parseColor().
Definition at line 5045 of file qsvghandler.cpp.
References file, QString::fromUtf8(), QRegularExpression::InvertedGreedinessOption, iter, match(), QFile::open(), QCss::Parser::parse(), Q_UNUSED, QIODevice::readAll(), QIODeviceBase::ReadOnly, rx(), QCss::StyleSelector::styleSheets, and QIODeviceBase::Text.
Definition at line 4994 of file qsvghandler.cpp.
References QStack< T >::push().
Referenced by parseBaseGradient(), parseColor(), and pushColorCopy().
void QSvgHandler::pushColorCopy | ( | ) |
Definition at line 5000 of file qsvghandler.cpp.
References Qt::black, pushColor(), QList< T >::size(), and QStack< T >::top().
Referenced by startElement().
QSvgStyleSelector * QSvgHandler::selector | ( | ) | const |
Definition at line 5038 of file qsvghandler.cpp.
Referenced by parseStopNode().
void QSvgHandler::setAnimPeriod | ( | int | start, |
int | end ) |
Definition at line 5091 of file qsvghandler.cpp.
References Q_UNUSED, and qMax().
Referenced by parseAnimateColorNode(), and parseAnimateTransformNode().
void QSvgHandler::setDefaultCoordinateSystem | ( | LengthType | type | ) |
Definition at line 4989 of file qsvghandler.cpp.
Referenced by createSvgNode().
void QSvgHandler::setInStyle | ( | bool | b | ) |
Definition at line 5028 of file qsvghandler.cpp.
Referenced by parseStyleNode().
bool QSvgHandler::startElement | ( | const QString & | localName, |
const QXmlStreamAttributes & | attributes ) |
Definition at line 4648 of file qsvghandler.cpp.
References QSvgStructureNode::addChild(), QList< T >::append(), QSvgNode::appendStyleProperty(), cssStyleLookup(), QSvgText::Default, QSvgNode::Defs, QSvgNode::Doc, QSvgNode::FeMerge, QSvgNode::FeMergenode, QSvgNode::Filter, findFilterFactory(), findGraphicsFactory(), findGroupFactory(), findStyleFactoryMethod(), findStyleUtilFactoryMethod(), findUtilFactory(), QSvgNode::Group, QList< T >::isEmpty(), QSvgNode::Marker, QSvgNode::Mask, method, msgProblemParsing(), options(), parseCoreNode(), parseStyle(), QSvgNode::Pattern, prefixMessage(), QSvgText::Preserve, QStack< T >::push(), pushColorCopy(), Q_ASSERT, QByteArrayLiteral, qCDebug, qCWarning, someId(), QSvgNode::Switch, QSvgNode::Symbol, QSvgNode::Text, QSvgNode::Textarea, QString::toLocal8Bit(), QStack< T >::top(), QSvgNode::Tspan, QSvgNode::type(), and QSvgNode::Use.
bool QSvgHandler::trustedSourceMode | ( | ) | const |
Definition at line 2089 of file qsvghandler.cpp.
References qEnvironmentVariableIsSet().
Referenced by createImageNode(), and createPathNode().