Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSvgPath Class Reference

#include <qsvggraphics_p.h>

+ Inheritance diagram for QSvgPath:
+ Collaboration diagram for QSvgPath:

Public Member Functions

 QSvgPath (QSvgNode *parent, const QPainterPath &qpath)
 
void draw (QPainter *p, QSvgExtraStates &states) override
 
Type type () const override
 
QRectF fastBounds (QPainter *p, QSvgExtraStates &states) const override
 
QRectF bounds (QPainter *p, QSvgExtraStates &states) const override
 
QPainterPathqpath ()
 
- Public Member Functions inherited from QSvgNode
 QSvgNode (QSvgNode *parent=0)
 
virtual ~QSvgNode ()
 
virtual void draw (QPainter *p, QSvgExtraStates &states)=0
 
QSvgNodeparent () const
 
bool isDescendantOf (const QSvgNode *parent) const
 
void appendStyleProperty (QSvgStyleProperty *prop, const QString &id)
 
void applyStyle (QPainter *p, QSvgExtraStates &states) const
 
void revertStyle (QPainter *p, QSvgExtraStates &states) const
 
QSvgStylePropertystyleProperty (QSvgStyleProperty::Type type) const
 
QSvgFillStylePropertystyleProperty (const QString &id) const
 
QSvgTinyDocumentdocument () const
 
virtual Type type () const =0
 
virtual QRectF fastBounds (QPainter *p, QSvgExtraStates &states) const
 
virtual QRectF bounds (QPainter *p, QSvgExtraStates &states) const
 
virtual QRectF transformedBounds (QPainter *p, QSvgExtraStates &states) const
 
QRectF transformedBounds () const
 
void setRequiredFeatures (const QStringList &lst)
 
const QStringListrequiredFeatures () const
 
void setRequiredExtensions (const QStringList &lst)
 
const QStringListrequiredExtensions () const
 
void setRequiredLanguages (const QStringList &lst)
 
const QStringListrequiredLanguages () const
 
void setRequiredFormats (const QStringList &lst)
 
const QStringListrequiredFormats () const
 
void setRequiredFonts (const QStringList &lst)
 
const QStringListrequiredFonts () const
 
void setVisible (bool visible)
 
bool isVisible () const
 
void setDisplayMode (DisplayMode display)
 
DisplayMode displayMode () const
 
QString nodeId () const
 
void setNodeId (const QString &i)
 
QString xmlClass () const
 
void setXmlClass (const QString &str)
 
bool shouldDrawNode (QPainter *p, QSvgExtraStates &states) const
 

Additional Inherited Members

- Public Types inherited from QSvgNode
enum  Type {
  DOC , G , DEFS , SWITCH ,
  ANIMATION , ARC , CIRCLE , ELLIPSE ,
  IMAGE , LINE , PATH , POLYGON ,
  POLYLINE , RECT , TEXT , TEXTAREA ,
  TSPAN , USE , VIDEO
}
 
enum  DisplayMode {
  InlineMode , BlockMode , ListItemMode , RunInMode ,
  CompactMode , MarkerMode , TableMode , InlineTableMode ,
  TableRowGroupMode , TableHeaderGroupMode , TableFooterGroupMode , TableRowMode ,
  TableColumnGroupMode , TableColumnMode , TableCellMode , TableCaptionMode ,
  NoneMode , InheritMode
}
 
- Static Protected Member Functions inherited from QSvgNode
static qreal strokeWidth (QPainter *p)
 
- Protected Attributes inherited from QSvgNode
QSvgStyle m_style
 

Detailed Description

Definition at line 94 of file qsvggraphics_p.h.

Constructor & Destructor Documentation

◆ QSvgPath()

QSvgPath::QSvgPath ( QSvgNode parent,
const QPainterPath qpath 
)

Definition at line 162 of file qsvggraphics.cpp.

Member Function Documentation

◆ bounds()

QRectF QSvgPath::bounds ( QPainter p,
QSvgExtraStates states 
) const
overridevirtual

Reimplemented from QSvgNode.

Definition at line 184 of file qsvggraphics.cpp.

References boundsOnStroke(), qFuzzyIsNull(), and QSvgNode::strokeWidth().

+ Here is the call graph for this function:

◆ draw()

void QSvgPath::draw ( QPainter p,
QSvgExtraStates states 
)
overridevirtual

Implements QSvgNode.

Definition at line 167 of file qsvggraphics.cpp.

References QSvgNode::applyStyle(), QT_SVG_DRAW_SHAPE, QT_SVG_TIMING_ENTER, QT_SVG_TIMING_EXIT, QSvgNode::revertStyle(), QPainterPath::setFillRule(), and QSvgNode::shouldDrawNode().

+ Here is the call graph for this function:

◆ fastBounds()

QRectF QSvgPath::fastBounds ( QPainter p,
QSvgExtraStates states 
) const
overridevirtual

Reimplemented from QSvgNode.

Definition at line 179 of file qsvggraphics.cpp.

References QPainterPath::controlPointRect().

+ Here is the call graph for this function:

◆ qpath()

QPainterPath * QSvgPath::qpath ( )
inline

Definition at line 103 of file qsvggraphics_p.h.

◆ type()

QSvgNode::Type QSvgPath::type ( ) const
overridevirtual

Implements QSvgNode.

Definition at line 641 of file qsvggraphics.cpp.

References QSvgNode::PATH.


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