![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qsvgnode_p.h>
Public Types | |
| enum | Type { Doc , Group , Defs , Switch , AnimateColor , AnimateTransform , Circle , Ellipse , Image , Line , Path , Polygon , Polyline , Rect , Text , Textarea , Tspan , Use , Video , Mask , Symbol , Marker , Pattern , Filter , FeMerge , FeMergenode , FeColormatrix , FeGaussianblur , FeOffset , FeComposite , FeFlood , FeBlend , FeUnsupported } |
| enum | DisplayMode { InlineMode , BlockMode , ListItemMode , RunInMode , CompactMode , MarkerMode , TableMode , InlineTableMode , TableRowGroupMode , TableHeaderGroupMode , TableFooterGroupMode , TableRowMode , TableColumnGroupMode , TableColumnMode , TableCellMode , TableCaptionMode , NoneMode , InheritMode } |
Protected Types | |
| enum | BoundsMode { Simplistic , IncludeMiterLimit } |
Protected Member Functions | |
| QRectF | filterRegion (QRectF bounds) const |
Static Protected Member Functions | |
| static qreal | strokeWidth (QPainter *p) |
| static void | initPainter (QPainter *p) |
| static QRectF | boundsOnStroke (QPainter *p, const QPainterPath &path, qreal width, BoundsMode mode) |
Protected Attributes | |
| QSvgStaticStyle | m_style |
| QSvgAnimatedStyle | m_animatedStyle |
Friends | |
| class | QSvgTinyDocument |
Definition at line 30 of file qsvgnode_p.h.
|
protected |
| Enumerator | |
|---|---|
| Simplistic | |
| IncludeMiterLimit | |
Definition at line 188 of file qsvgnode_p.h.
Definition at line 69 of file qsvgnode_p.h.
| enum QSvgNode::Type |
Definition at line 33 of file qsvgnode_p.h.
| QSvgNode::QSvgNode | ( | QSvgNode * | parent = 0 | ) |
Definition at line 27 of file qsvgnode.cpp.
|
virtual |
Definition at line 34 of file qsvgnode.cpp.
| void QSvgNode::appendStyleProperty | ( | QSvgStyleProperty * | prop, |
| const QString & | id ) |
Definition at line 190 of file qsvgnode.cpp.
| void QSvgNode::applyAnimatedStyle | ( | QPainter * | p, |
| QSvgExtraStates & | states ) const |
Definition at line 279 of file qsvgnode.cpp.
Definition at line 171 of file qsvgnode.cpp.
Definition at line 163 of file qsvgnode.cpp.
| void QSvgNode::applyStyle | ( | QPainter * | p, |
| QSvgExtraStates & | states ) const |
Definition at line 246 of file qsvgnode.cpp.
| void QSvgNode::applyStyleRecursive | ( | QPainter * | p, |
| QSvgExtraStates & | states ) const |
Apply the styles of all parents to the painter and the states. The styles are applied from the top level node to the current node. This function can be used to set the correct style for a node if it's draw function is triggered out of the ordinary draw context, for example the mask node, that is cross-referenced.
Definition at line 260 of file qsvgnode.cpp.
| QRectF QSvgNode::bounds | ( | ) | const |
Definition at line 367 of file qsvgnode.cpp.
| QRectF QSvgNode::bounds | ( | QPainter * | p, |
| QSvgExtraStates & | states ) const |
Definition at line 500 of file qsvgnode.cpp.
|
staticprotected |
Definition at line 661 of file qsvgnode.cpp.
|
virtual |
Definition at line 513 of file qsvgnode.cpp.
|
virtual |
Reimplemented in QSvgEllipse, QSvgLine, QSvgPath, QSvgPolygon, QSvgPolyline, QSvgRect, QSvgStructureNode, QSvgSymbolLike, and QSvgUse.
Definition at line 508 of file qsvgnode.cpp.
| QSvgNode::DisplayMode QSvgNode::displayMode | ( | ) | const |
Definition at line 633 of file qsvgnode.cpp.
| QSvgTinyDocument * QSvgNode::document | ( | ) | const |
Definition at line 386 of file qsvgnode.cpp.
| void QSvgNode::draw | ( | QPainter * | p, |
| QSvgExtraStates & | states ) |
Definition at line 39 of file qsvgnode.cpp.
|
pure virtual |
Implemented in QSvgAnimateNode, QSvgDefs, QSvgDummyNode, QSvgEllipse, QSvgFeFilterPrimitive, QSvgFilterContainer, QSvgG, QSvgImage, QSvgLine, QSvgMarker, QSvgMask, QSvgPath, QSvgPattern, QSvgPolygon, QSvgPolyline, QSvgRect, QSvgSwitch, QSvgSymbol, QSvgSymbolLike, QSvgText, QSvgTinyDocument, QSvgTspan, QSvgUse, and QSvgVideo.
| QImage QSvgNode::drawIntoBuffer | ( | QPainter * | p, |
| QSvgExtraStates & | states, | ||
| const QRect & | boundsRect ) |
Definition at line 140 of file qsvgnode.cpp.
| void QSvgNode::drawWithMask | ( | QPainter * | p, |
| QSvgExtraStates & | states, | ||
| const QImage & | mask, | ||
| const QRect & | boundsRect ) |
Definition at line 127 of file qsvgnode.cpp.
| void QSvgNode::fillThenStroke | ( | QPainter * | p, |
| QSvgExtraStates & | states ) |
Definition at line 103 of file qsvgnode.cpp.
| QString QSvgNode::filterId | ( | ) | const |
Definition at line 548 of file qsvgnode.cpp.
Definition at line 692 of file qsvgnode.cpp.
| bool QSvgNode::hasAnyMarker | ( | ) | const |
Definition at line 616 of file qsvgnode.cpp.
| bool QSvgNode::hasFilter | ( | ) | const |
Definition at line 558 of file qsvgnode.cpp.
| bool QSvgNode::hasMarkerEnd | ( | ) | const |
Definition at line 609 of file qsvgnode.cpp.
| bool QSvgNode::hasMarkerMid | ( | ) | const |
Definition at line 592 of file qsvgnode.cpp.
| bool QSvgNode::hasMarkerStart | ( | ) | const |
Definition at line 575 of file qsvgnode.cpp.
| bool QSvgNode::hasMask | ( | ) | const |
Definition at line 541 of file qsvgnode.cpp.
Definition at line 646 of file qsvgnode.cpp.
|
virtual |
Reimplemented in QSvgEllipse, QSvgFeFilterPrimitive, QSvgImage, QSvgLine, QSvgPath, QSvgPolygon, QSvgPolyline, QSvgRect, QSvgStructureNode, QSvgText, and QSvgUse.
Definition at line 362 of file qsvgnode.cpp.
|
virtual |
Reimplemented in QSvgEllipse, QSvgFeFilterPrimitive, QSvgLine, QSvgPath, QSvgPolygon, QSvgPolyline, QSvgRect, and QSvgText.
Definition at line 357 of file qsvgnode.cpp.
| bool QSvgNode::isDescendantOf | ( | const QSvgNode * | parent | ) | const |
Definition at line 179 of file qsvgnode.cpp.
|
inline |
Definition at line 224 of file qsvgnode_p.h.
| QString QSvgNode::markerEndId | ( | ) | const |
Definition at line 599 of file qsvgnode.cpp.
| QString QSvgNode::markerMidId | ( | ) | const |
Definition at line 582 of file qsvgnode.cpp.
| QString QSvgNode::markerStartId | ( | ) | const |
Definition at line 565 of file qsvgnode.cpp.
| QString QSvgNode::maskId | ( | ) | const |
Definition at line 531 of file qsvgnode.cpp.
|
inline |
Definition at line 229 of file qsvgnode_p.h.
|
inline |
Definition at line 219 of file qsvgnode_p.h.
| const QStringList & QSvgNode::requiredExtensions | ( | ) | const |
Definition at line 453 of file qsvgnode.cpp.
| const QStringList & QSvgNode::requiredFeatures | ( | ) | const |
Definition at line 443 of file qsvgnode.cpp.
| const QStringList & QSvgNode::requiredFonts | ( | ) | const |
Definition at line 483 of file qsvgnode.cpp.
| const QStringList & QSvgNode::requiredFormats | ( | ) | const |
Definition at line 473 of file qsvgnode.cpp.
| const QStringList & QSvgNode::requiredLanguages | ( | ) | const |
Definition at line 463 of file qsvgnode.cpp.
|
virtual |
Reimplemented in QSvgG, QSvgLine, QSvgPath, QSvgPolygon, QSvgPolyline, and QSvgSymbolLike.
Definition at line 623 of file qsvgnode.cpp.
| void QSvgNode::revertAnimatedStyle | ( | QPainter * | p, |
| QSvgExtraStates & | states ) const |
Definition at line 285 of file qsvgnode.cpp.
| void QSvgNode::revertStyle | ( | QPainter * | p, |
| QSvgExtraStates & | states ) const |
Definition at line 267 of file qsvgnode.cpp.
| void QSvgNode::revertStyleRecursive | ( | QPainter * | p, |
| QSvgExtraStates & | states ) const |
Definition at line 272 of file qsvgnode.cpp.
|
inlinevirtual |
Reimplemented in QSvgEllipse, QSvgPath, QSvgPolygon, QSvgPolyline, QSvgRect, and QSvgText.
Definition at line 94 of file qsvgnode_p.h.
| void QSvgNode::setDisplayMode | ( | DisplayMode | display | ) |
Definition at line 628 of file qsvgnode.cpp.
Definition at line 553 of file qsvgnode.cpp.
Definition at line 604 of file qsvgnode.cpp.
Definition at line 587 of file qsvgnode.cpp.
Definition at line 570 of file qsvgnode.cpp.
Definition at line 536 of file qsvgnode.cpp.
Definition at line 521 of file qsvgnode.cpp.
| void QSvgNode::setRequiredExtensions | ( | const QStringList & | lst | ) |
Definition at line 448 of file qsvgnode.cpp.
| void QSvgNode::setRequiredFeatures | ( | const QStringList & | lst | ) |
Definition at line 438 of file qsvgnode.cpp.
| void QSvgNode::setRequiredFonts | ( | const QStringList & | lst | ) |
Definition at line 478 of file qsvgnode.cpp.
| void QSvgNode::setRequiredFormats | ( | const QStringList & | lst | ) |
Definition at line 468 of file qsvgnode.cpp.
| void QSvgNode::setRequiredLanguages | ( | const QStringList & | lst | ) |
Definition at line 458 of file qsvgnode.cpp.
| void QSvgNode::setVisible | ( | bool | visible | ) |
Definition at line 488 of file qsvgnode.cpp.
Definition at line 526 of file qsvgnode.cpp.
|
virtual |
Reimplemented in QSvgAnimateNode, QSvgDefs, QSvgFeFilterPrimitive, QSvgFilterContainer, QSvgG, QSvgMask, QSvgPattern, and QSvgText.
Definition at line 674 of file qsvgnode.cpp.
Definition at line 638 of file qsvgnode.cpp.
|
inline |
Definition at line 178 of file qsvgnode_p.h.
| QSvgPaintStyleProperty * QSvgNode::styleProperty | ( | QStringView | id | ) | const |
Definition at line 349 of file qsvgnode.cpp.
| QSvgStyleProperty * QSvgNode::styleProperty | ( | QSvgStyleProperty::Type | type | ) | const |
Definition at line 291 of file qsvgnode.cpp.
|
pure virtual |
Implemented in QSvgAnimateColor, QSvgAnimateTransform, QSvgCircle, QSvgDefs, QSvgDummyNode, QSvgEllipse, QSvgFeBlend, QSvgFeColorMatrix, QSvgFeComposite, QSvgFeFlood, QSvgFeGaussianBlur, QSvgFeMerge, QSvgFeMergeNode, QSvgFeOffset, QSvgFeUnsupported, QSvgFilterContainer, QSvgG, QSvgImage, QSvgLine, QSvgMarker, QSvgMask, QSvgPath, QSvgPattern, QSvgPolygon, QSvgPolyline, QSvgRect, QSvgSwitch, QSvgSymbol, QSvgText, QSvgTinyDocument, QSvgTspan, QSvgUse, and QSvgVideo.
| QString QSvgNode::typeName | ( | ) | const |
Definition at line 398 of file qsvgnode.cpp.
|
inline |
Definition at line 234 of file qsvgnode_p.h.
|
friend |
Definition at line 216 of file qsvgnode_p.h.
|
mutableprotected |
Definition at line 181 of file qsvgnode_p.h.
|
mutableprotected |
Definition at line 180 of file qsvgnode_p.h.