Qt 4.8
|
#include <qsvgtinydocument_p.h>
Static Public Functions | |
static QSvgTinyDocument * | load (const QString &file) |
static QSvgTinyDocument * | load (const QByteArray &contents) |
static QSvgTinyDocument * | load (QXmlStreamReader *contents) |
Private Functions | |
void | mapSourceToTarget (QPainter *p, const QRectF &targetRect, const QRectF &sourceRect=QRectF()) |
Properties | |
bool | m_animated |
int | m_animationDuration |
QHash< QString, QSvgRefCounter< QSvgFont > > | m_fonts |
int | m_fps |
bool | m_heightPercent |
QHash< QString, QSvgNode * > | m_namedNodes |
QHash< QString, QSvgRefCounter< QSvgFillStyleProperty > > | m_namedStyles |
QSize | m_size |
QSvgExtraStates | m_states |
QTime | m_time |
QRectF | m_viewBox |
bool | m_widthPercent |
Additional Inherited Members | |
Public Types inherited from QSvgNode | |
enum | DisplayMode { InlineMode, BlockMode, ListItemMode, RunInMode, CompactMode, MarkerMode, TableMode, InlineTableMode, TableRowGroupMode, TableHeaderGroupMode, TableFooterGroupMode, TableRowMode, TableColumnGroupMode, TableColumnMode, TableCellMode, TableCaptionMode, NoneMode, InheritMode } |
enum | Type { DOC, G, DEFS, SWITCH, ANIMATION, ARC, CIRCLE, ELLIPSE, IMAGE, LINE, PATH, POLYGON, POLYLINE, RECT, TEXT, TEXTAREA, TSPAN, USE, VIDEO } |
Static Protected Functions inherited from QSvgNode | |
static qreal | strokeWidth (QPainter *p) |
Protected Variables inherited from QSvgStructureNode | |
QList< QSvgStructureNode * > | m_linkedScopes |
QList< QSvgNode * > | m_renderers |
QHash< QString, QSvgNode * > | m_scope |
Protected Variables inherited from QSvgNode | |
QSvgStyle | m_style |
Definition at line 74 of file qsvgtinydocument_p.h.
QSvgTinyDocument::QSvgTinyDocument | ( | ) |
Definition at line 63 of file qsvgtinydocument.cpp.
QSvgTinyDocument::~QSvgTinyDocument | ( | ) |
Definition at line 73 of file qsvgtinydocument.cpp.
Definition at line 353 of file qsvgtinydocument.cpp.
Referenced by QSvgStructureNode::addChild().
void QSvgTinyDocument::addNamedStyle | ( | const QString & | id, |
QSvgFillStyleProperty * | style | ||
) |
Definition at line 363 of file qsvgtinydocument.cpp.
Referenced by QSvgNode::appendStyleProperty().
void QSvgTinyDocument::addSvgFont | ( | QSvgFont * | font | ) |
Definition at line 343 of file qsvgtinydocument.cpp.
Referenced by createFontNode(), parseFontFaceNameNode(), and parseFontFaceNode().
bool QSvgTinyDocument::animated | ( | ) | const |
|
inline |
Definition at line 192 of file qsvgtinydocument_p.h.
Definition at line 430 of file qsvgtinydocument.cpp.
|
inline |
Definition at line 187 of file qsvgtinydocument_p.h.
Referenced by QSvgAnimateColor::apply(), QSvgStyle::apply(), and QSvgAnimateTransform::resolveMatrix().
int QSvgTinyDocument::currentFrame | ( | ) | const |
Definition at line 466 of file qsvgtinydocument.cpp.
|
virtual |
Implements QSvgNode.
Definition at line 393 of file qsvgtinydocument.cpp.
Referenced by draw().
void QSvgTinyDocument::draw | ( | QPainter * | p | ) |
Definition at line 388 of file qsvgtinydocument.cpp.
Definition at line 230 of file qsvgtinydocument.cpp.
Definition at line 262 of file qsvgtinydocument.cpp.
bool QSvgTinyDocument::elementExists | ( | const QString & | id | ) | const |
Definition at line 438 of file qsvgtinydocument.cpp.
|
inline |
Definition at line 159 of file qsvgtinydocument_p.h.
|
inline |
Definition at line 169 of file qsvgtinydocument_p.h.
|
static |
Definition at line 170 of file qsvgtinydocument.cpp.
Referenced by load(), and loadDocument().
|
static |
Definition at line 198 of file qsvgtinydocument.cpp.
|
static |
Definition at line 218 of file qsvgtinydocument.cpp.
|
private |
Definition at line 398 of file qsvgtinydocument.cpp.
Referenced by draw().
Definition at line 445 of file qsvgtinydocument.cpp.
Definition at line 358 of file qsvgtinydocument.cpp.
Referenced by QSvgStructureNode::scopeNode().
QSvgFillStyleProperty * QSvgTinyDocument::namedStyle | ( | const QString & | id | ) | const |
Definition at line 368 of file qsvgtinydocument.cpp.
Referenced by QSvgNode::styleProperty().
|
inline |
Definition at line 182 of file qsvgtinydocument_p.h.
void QSvgTinyDocument::restartAnimation | ( | ) |
Definition at line 373 of file qsvgtinydocument.cpp.
void QSvgTinyDocument::setAnimated | ( | bool | a | ) |
Definition at line 383 of file qsvgtinydocument.cpp.
Referenced by parseAnimateColorNode(), and parseAnimateTransformNode().
void QSvgTinyDocument::setCurrentFrame | ( | int | frame | ) |
Definition at line 475 of file qsvgtinydocument.cpp.
void QSvgTinyDocument::setFramesPerSecond | ( | int | num | ) |
Definition at line 485 of file qsvgtinydocument.cpp.
void QSvgTinyDocument::setHeight | ( | int | len, |
bool | percent | ||
) |
void QSvgTinyDocument::setViewBox | ( | const QRectF & | rect | ) |
void QSvgTinyDocument::setWidth | ( | int | len, |
bool | percent | ||
) |
|
inline |
Definition at line 145 of file qsvgtinydocument_p.h.
Referenced by mapSourceToTarget().
Definition at line 348 of file qsvgtinydocument.cpp.
Referenced by createFontNode(), parseFont(), parseFontFaceNameNode(), and parseFontFaceNode().
|
virtual |
Implements QSvgNode.
Definition at line 321 of file qsvgtinydocument.cpp.
|
inline |
Definition at line 174 of file qsvgtinydocument_p.h.
Referenced by mapSourceToTarget().
|
inline |
Definition at line 154 of file qsvgtinydocument_p.h.
|
inline |
Definition at line 164 of file qsvgtinydocument_p.h.
|
private |
Definition at line 138 of file qsvgtinydocument_p.h.
Referenced by animated(), and setAnimated().
|
private |
Definition at line 139 of file qsvgtinydocument_p.h.
Referenced by currentFrame(), load(), and setCurrentFrame().
|
private |
Definition at line 133 of file qsvgtinydocument_p.h.
Referenced by addSvgFont(), and svgFont().
|
private |
Definition at line 140 of file qsvgtinydocument_p.h.
Referenced by currentFrame(), setCurrentFrame(), and setFramesPerSecond().
|
private |
Definition at line 129 of file qsvgtinydocument_p.h.
Referenced by setHeight().
Definition at line 134 of file qsvgtinydocument_p.h.
Referenced by addNamedNode(), and namedNode().
|
private |
Definition at line 135 of file qsvgtinydocument_p.h.
Referenced by addNamedStyle(), and namedStyle().
|
private |
Definition at line 127 of file qsvgtinydocument_p.h.
Referenced by setHeight(), and setWidth().
|
private |
Definition at line 142 of file qsvgtinydocument_p.h.
Referenced by draw().
|
private |
Definition at line 137 of file qsvgtinydocument_p.h.
Referenced by currentFrame(), draw(), restartAnimation(), and setCurrentFrame().
|
mutableprivate |
Definition at line 131 of file qsvgtinydocument_p.h.
Referenced by setViewBox().
|
private |
Definition at line 128 of file qsvgtinydocument_p.h.
Referenced by setWidth().