Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSvgHandler Class Reference

#include <qsvghandler_p.h>

Collaboration diagram for QSvgHandler:

Public Member Functions

 QSvgHandler (QIODevice *device, QtSvg::Options options={}, QtSvg::AnimatorType typetype=QtSvg::AnimatorType::Automatic)
 QSvgHandler (const QByteArray &datadata, QtSvg::Options options={}, QtSvg::AnimatorType typetype=QtSvg::AnimatorType::Automatic)
 QSvgHandler (QXmlStreamReader *const datadata, QtSvg::Options options={}, QtSvg::AnimatorType typetype=QtSvg::AnimatorType::Automatic)
 ~QSvgHandler ()
QIODevice * device () const
QSvgDocument * document () const
std::unique_ptr< QSvgDocument > takeDocument ()
bool ok () const
QString errorString () const
int lineNumber () const
void setDefaultCoordinateSystem (QGuiSvg::LengthType typetype)
QGuiSvg::LengthType defaultCoordinateSystem () const
void pushColor (const QColor &colorcolor)
void pushColorCopy ()
void popColor ()
QColor currentColor () const
void pushUnresolvedStyle (QSvgStyleProperty *prop)
void setCurrentSvgFontFamily (QStringView family)
QSvgCssHandler & cssHandler ()
void setAnimPeriod (int startstart, int endend)
int animationDuration () const
QPen defaultPen () const
QtSvg::Options options () const
QtSvg::AnimatorType animatorType () const
bool trustedSourceMode () const
bool startElement (const QString localName, const QXmlStreamAttributes &attributes)
bool endElement (const QStringView localName)
bool characters (const QStringView str)
bool processingInstruction (const QStringView targettarget, const QStringView datadata)
void readStyle ()

Detailed Description

Definition at line 49 of file qsvghandler_p.h.

Constructor & Destructor Documentation

◆ QSvgHandler() [1/3]

QSvgHandler::QSvgHandler ( QIODevice * device,
QtSvg::Options options = {},
QtSvg::AnimatorType type = QtSvg::AnimatorType::Automatic )

Definition at line 3618 of file qsvghandler.cpp.

◆ QSvgHandler() [2/3]

QSvgHandler::QSvgHandler ( const QByteArray & data,
QtSvg::Options options = {},
QtSvg::AnimatorType type = QtSvg::AnimatorType::Automatic )

Definition at line 3628 of file qsvghandler.cpp.

◆ QSvgHandler() [3/3]

QSvgHandler::QSvgHandler ( QXmlStreamReader *const data,
QtSvg::Options options = {},
QtSvg::AnimatorType type = QtSvg::AnimatorType::Automatic )

Definition at line 3638 of file qsvghandler.cpp.

◆ ~QSvgHandler()

QSvgHandler::~QSvgHandler ( )
default

Member Function Documentation

◆ animationDuration()

int QSvgHandler::animationDuration ( ) const

Definition at line 4284 of file qsvghandler.cpp.

◆ animatorType()

QtSvg::AnimatorType QSvgHandler::animatorType ( ) const

Definition at line 1217 of file qsvghandler.cpp.

◆ characters()

bool QSvgHandler::characters ( const QStringView str)

Definition at line 4135 of file qsvghandler.cpp.

◆ cssHandler()

QSvgCssHandler & QSvgHandler::cssHandler ( )

Definition at line 4218 of file qsvghandler.cpp.

◆ currentColor()

QColor QSvgHandler::currentColor ( ) const

Definition at line 4198 of file qsvghandler.cpp.

◆ defaultCoordinateSystem()

QGuiSvg::LengthType QSvgHandler::defaultCoordinateSystem ( ) const

Definition at line 4164 of file qsvghandler.cpp.

◆ defaultPen()

QPen QSvgHandler::defaultPen ( ) const
inline

Definition at line 91 of file qsvghandler_p.h.

◆ device()

QIODevice * QSvgHandler::device ( ) const

Definition at line 4149 of file qsvghandler.cpp.

◆ document()

QSvgDocument * QSvgHandler::document ( ) const

Definition at line 4154 of file qsvghandler.cpp.

◆ endElement()

bool QSvgHandler::endElement ( const QStringView localName)

Definition at line 4030 of file qsvghandler.cpp.

◆ errorString()

QString QSvgHandler::errorString ( ) const
inline

Definition at line 69 of file qsvghandler_p.h.

◆ lineNumber()

int QSvgHandler::lineNumber ( ) const
inline

Definition at line 70 of file qsvghandler_p.h.

◆ ok()

bool QSvgHandler::ok ( ) const
inline

Definition at line 65 of file qsvghandler_p.h.

◆ options()

QtSvg::Options QSvgHandler::options ( ) const

◆ popColor()

void QSvgHandler::popColor ( )

Definition at line 4188 of file qsvghandler.cpp.

◆ processingInstruction()

bool QSvgHandler::processingInstruction ( const QStringView target,
const QStringView data )

Definition at line 4225 of file qsvghandler.cpp.

◆ pushColor()

void QSvgHandler::pushColor ( const QColor & color)

Definition at line 4174 of file qsvghandler.cpp.

◆ pushColorCopy()

void QSvgHandler::pushColorCopy ( )

Definition at line 4180 of file qsvghandler.cpp.

◆ pushUnresolvedStyle()

void QSvgHandler::pushUnresolvedStyle ( QSvgStyleProperty * prop)

Definition at line 4206 of file qsvghandler.cpp.

◆ readStyle()

void QSvgHandler::readStyle ( )

Definition at line 4268 of file qsvghandler.cpp.

◆ setAnimPeriod()

void QSvgHandler::setAnimPeriod ( int start,
int end )

Definition at line 4278 of file qsvghandler.cpp.

◆ setCurrentSvgFontFamily()

void QSvgHandler::setCurrentSvgFontFamily ( QStringView family)

Definition at line 4211 of file qsvghandler.cpp.

◆ setDefaultCoordinateSystem()

void QSvgHandler::setDefaultCoordinateSystem ( QGuiSvg::LengthType type)

Definition at line 4169 of file qsvghandler.cpp.

◆ startElement()

bool QSvgHandler::startElement ( const QString localName,
const QXmlStreamAttributes & attributes )

Definition at line 3818 of file qsvghandler.cpp.

◆ takeDocument()

std::unique_ptr< QSvgDocument > QSvgHandler::takeDocument ( )
nodiscard

Definition at line 4159 of file qsvghandler.cpp.

◆ trustedSourceMode()

bool QSvgHandler::trustedSourceMode ( ) const

Definition at line 1222 of file qsvghandler.cpp.


The documentation for this class was generated from the following files: