![]() |
Qt 4.8
|
#include <qsvgnode_p.h>
Public Types | |
| 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 | |
| static qreal | strokeWidth (QPainter *p) |
Protected Variables | |
| QSvgStyle | m_style |
Friends | |
| class | QSvgTinyDocument |
Definition at line 68 of file qsvgnode_p.h.
Definition at line 93 of file qsvgnode_p.h.
| enum QSvgNode::Type |
| Enumerator | |
|---|---|
| DOC | |
| G | |
| DEFS | |
| SWITCH | |
| ANIMATION | |
| ARC | |
| CIRCLE | |
| ELLIPSE | |
| IMAGE | |
| LINE | |
| PATH | |
| POLYGON | |
| POLYLINE | |
| RECT | |
| TEXT | |
| TEXTAREA | |
| TSPAN | |
| USE | |
| VIDEO | |
Definition at line 71 of file qsvgnode_p.h.
| QSvgNode::QSvgNode | ( | QSvgNode * | parent = 0 | ) |
Definition at line 52 of file qsvgnode.cpp.
|
virtual |
Definition at line 59 of file qsvgnode.cpp.
| void QSvgNode::appendStyleProperty | ( | QSvgStyleProperty * | prop, |
| const QString & | id | ||
| ) |
Definition at line 64 of file qsvgnode.cpp.
Referenced by parseAnimateColorNode(), parseAnimateTransformNode(), parseBrush(), parseCompOp(), parseFont(), parseOpacity(), parsePen(), parseTransform(), and QSvgHandler::startElement().
| void QSvgNode::applyStyle | ( | QPainter * | p, |
| QSvgExtraStates & | states | ||
| ) | const |
Definition at line 118 of file qsvgnode.cpp.
Referenced by QSvgArc::draw(), QSvgG::draw(), QSvgEllipse::draw(), QSvgTinyDocument::draw(), QSvgSwitch::draw(), QSvgImage::draw(), QSvgLine::draw(), QSvgPath::draw(), QSvgPolygon::draw(), QSvgPolyline::draw(), QSvgRect::draw(), QSvgText::draw(), QSvgUse::draw(), QSvgVideo::draw(), and transformedBounds().
|
virtual |
Reimplemented in QSvgUse, QSvgRect, QSvgPolyline, QSvgPolygon, QSvgPath, QSvgLine, QSvgImage, QSvgEllipse, QSvgArc, and QSvgStructureNode.
Definition at line 199 of file qsvgnode.cpp.
Referenced by QSvgText::draw(), and transformedBounds().
| QSvgNode::DisplayMode QSvgNode::displayMode | ( | ) | const |
Definition at line 330 of file qsvgnode.cpp.
Referenced by QSvgG::draw(), QSvgTinyDocument::draw(), and QSvgSwitch::draw().
| QSvgTinyDocument * QSvgNode::document | ( | ) | const |
Definition at line 233 of file qsvgnode.cpp.
Referenced by QSvgStructureNode::addChild(), appendStyleProperty(), QSvgAnimateColor::apply(), QSvgStyle::apply(), parseAnimateColorNode(), parseAnimateTransformNode(), parseFont(), QSvgAnimateTransform::resolveMatrix(), QSvgStructureNode::scopeNode(), and styleProperty().
|
pure virtual |
Implemented in QSvgVideo, QSvgUse, QSvgTspan, QSvgText, QSvgRect, QSvgPolyline, QSvgPolygon, QSvgPath, QSvgLine, QSvgImage, QSvgSwitch, QSvgDefs, QSvgTinyDocument, QSvgEllipse, QSvgG, QSvgArc, and QSvgAnimation.
Referenced by QSvgG::draw(), QSvgTinyDocument::draw(), QSvgSwitch::draw(), and QSvgUse::draw().
|
inline |
Definition at line 188 of file qsvgnode_p.h.
Referenced by QSvgG::draw(), QSvgTinyDocument::draw(), QSvgSwitch::draw(), parseVisibility(), and setVisible().
|
inline |
Definition at line 193 of file qsvgnode_p.h.
Referenced by QSvgStyleSelector::attribute(), QSvgStyleSelector::hasAttributes(), and QSvgStyleSelector::nodeIds().
|
inline |
Definition at line 183 of file qsvgnode_p.h.
Referenced by createFontNode(), createLinearGradientNode(), document(), QSvgTinyDocument::draw(), QSvgTinyDocument::matrixForElement(), QSvgStyleSelector::parentNode(), parseVisibility(), QSvgStyleSelector::previousSiblingNode(), styleProperty(), and transformedBounds().
| const QStringList & QSvgNode::requiredExtensions | ( | ) | const |
| const QStringList & QSvgNode::requiredFeatures | ( | ) | const |
| const QStringList & QSvgNode::requiredFonts | ( | ) | const |
| const QStringList & QSvgNode::requiredFormats | ( | ) | const |
| const QStringList & QSvgNode::requiredLanguages | ( | ) | const |
| void QSvgNode::revertStyle | ( | QPainter * | p, |
| QSvgExtraStates & | states | ||
| ) | const |
Definition at line 123 of file qsvgnode.cpp.
Referenced by QSvgArc::draw(), QSvgG::draw(), QSvgEllipse::draw(), QSvgTinyDocument::draw(), QSvgSwitch::draw(), QSvgImage::draw(), QSvgLine::draw(), QSvgPath::draw(), QSvgPolygon::draw(), QSvgPolyline::draw(), QSvgRect::draw(), QSvgText::draw(), QSvgUse::draw(), QSvgVideo::draw(), and transformedBounds().
| void QSvgNode::setDisplayMode | ( | DisplayMode | display | ) |
| void QSvgNode::setNodeId | ( | const QString & | i | ) |
Definition at line 315 of file qsvgnode.cpp.
Referenced by parseCoreNode(), and parseStopNode().
| void QSvgNode::setRequiredExtensions | ( | const QStringList & | lst | ) |
| void QSvgNode::setRequiredFeatures | ( | const QStringList & | lst | ) |
| void QSvgNode::setRequiredFonts | ( | const QStringList & | lst | ) |
| void QSvgNode::setRequiredFormats | ( | const QStringList & | lst | ) |
| void QSvgNode::setRequiredLanguages | ( | const QStringList & | lst | ) |
| void QSvgNode::setVisible | ( | bool | visible | ) |
| void QSvgNode::setXmlClass | ( | const QString & | str | ) |
Definition at line 320 of file qsvgnode.cpp.
Referenced by parseCoreNode(), and parseStopNode().
Definition at line 335 of file qsvgnode.cpp.
Referenced by QSvgArc::bounds(), QSvgEllipse::bounds(), QSvgLine::bounds(), QSvgPath::bounds(), QSvgPolygon::bounds(), QSvgPolyline::bounds(), and QSvgRect::bounds().
| QSvgStyleProperty * QSvgNode::styleProperty | ( | QSvgStyleProperty::Type | type | ) | const |
Definition at line 128 of file qsvgnode.cpp.
Referenced by parseBaseGradient(), QSvgHandler::resolveGradients(), and styleFromUrl().
| QSvgFillStyleProperty * QSvgNode::styleProperty | ( | const QString & | id | ) | const |
Definition at line 190 of file qsvgnode.cpp.
|
virtual |
Definition at line 307 of file qsvgnode.cpp.
Referenced by QSvgStructureNode::bounds(), QSvgUse::bounds(), QSvgTinyDocument::boundsOnElement(), and QSvgTinyDocument::draw().
| QRectF QSvgNode::transformedBounds | ( | ) | const |
Definition at line 204 of file qsvgnode.cpp.
Referenced by QSvgTinyDocument::viewBox().
|
pure virtual |
Implemented in QSvgVideo, QSvgUse, QSvgTspan, QSvgText, QSvgRect, QSvgPolyline, QSvgPolygon, QSvgPath, QSvgLine, QSvgImage, QSvgSwitch, QSvgCircle, QSvgDefs, QSvgEllipse, QSvgG, QSvgTinyDocument, QSvgArc, and QSvgAnimation.
Referenced by QSvgHandler::characters(), createFontNode(), createLinearGradientNode(), createUseNode(), document(), QSvgStyleSelector::nodeToName(), QSvgStyleSelector::nodeToStructure(), parseTbreakNode(), QSvgHandler::resolveGradients(), and QSvgHandler::startElement().
|
inline |
Definition at line 198 of file qsvgnode_p.h.
Referenced by QSvgStyleSelector::attribute(), and QSvgStyleSelector::hasAttributes().
|
friend |
Definition at line 180 of file qsvgnode_p.h.
|
mutableprivate |
Definition at line 178 of file qsvgnode_p.h.
Referenced by transformedBounds().
|
private |
Definition at line 175 of file qsvgnode_p.h.
Referenced by setXmlClass(), and xmlClass().
|
private |
Definition at line 177 of file qsvgnode_p.h.
Referenced by displayMode(), and setDisplayMode().
|
private |
Definition at line 174 of file qsvgnode_p.h.
Referenced by nodeId(), and setNodeId().
|
private |
Definition at line 164 of file qsvgnode_p.h.
Referenced by parent(), setVisible(), and transformedBounds().
|
private |
Definition at line 167 of file qsvgnode_p.h.
Referenced by requiredExtensions(), and setRequiredExtensions().
|
private |
Definition at line 166 of file qsvgnode_p.h.
Referenced by requiredFeatures(), and setRequiredFeatures().
|
private |
Definition at line 170 of file qsvgnode_p.h.
Referenced by requiredFonts(), and setRequiredFonts().
|
private |
Definition at line 169 of file qsvgnode_p.h.
Referenced by requiredFormats(), and setRequiredFormats().
|
private |
Definition at line 168 of file qsvgnode_p.h.
Referenced by requiredLanguages(), and setRequiredLanguages().
|
mutableprotected |
Definition at line 160 of file qsvgnode_p.h.
Referenced by appendStyleProperty(), applyStyle(), QSvgTinyDocument::matrixForElement(), revertStyle(), and styleProperty().
|
private |
Definition at line 172 of file qsvgnode_p.h.
Referenced by isVisible(), and setVisible().