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

#include <qsvggraphics_p.h>

+ Inheritance diagram for QSvgUse:
+ Collaboration diagram for QSvgUse:

Public Member Functions

 QSvgUse (const QPointF &start, QSvgNode *parent, QSvgNode *link)
 
 QSvgUse (const QPointF &start, QSvgNode *parent, const QString &linkId)
 
void draw (QPainter *p, QSvgExtraStates &states) override
 
Type type () const override
 
QRectF bounds (QPainter *p, QSvgExtraStates &states) const override
 
bool isResolved () const
 
QString linkId () const
 
void setLink (QSvgNode *link)
 
- 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 212 of file qsvggraphics_p.h.

Constructor & Destructor Documentation

◆ QSvgUse() [1/2]

QSvgUse::QSvgUse ( const QPointF start,
QSvgNode parent,
QSvgNode link 
)

Definition at line 563 of file qsvggraphics.cpp.

◆ QSvgUse() [2/2]

QSvgUse::QSvgUse ( const QPointF start,
QSvgNode parent,
const QString linkId 
)
inline

Definition at line 216 of file qsvggraphics_p.h.

References linkId().

+ Here is the call graph for this function:

Member Function Documentation

◆ bounds()

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

Reimplemented from QSvgNode.

Definition at line 676 of file qsvggraphics.cpp.

References bounds(), QSvgNode::isDescendantOf(), Q_LIKELY, QSvgNode::transformedBounds(), and QRectF::translate().

Referenced by bounds().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ draw()

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

Implements QSvgNode.

Definition at line 569 of file qsvggraphics.cpp.

References QSvgNode::applyStyle(), QSvgNode::draw(), QSvgNode::isDescendantOf(), QPointF::isNull(), Q_ASSERT, Q_UNLIKELY, qCDebug, qPrintable, QT_SVG_TIMING_ENTER, QT_SVG_TIMING_EXIT, and QSvgNode::revertStyle().

+ Here is the call graph for this function:

◆ isResolved()

bool QSvgUse::isResolved ( ) const
inline

Definition at line 222 of file qsvggraphics_p.h.

◆ linkId()

QString QSvgUse::linkId ( ) const
inline

Definition at line 223 of file qsvggraphics_p.h.

Referenced by QSvgUse().

+ Here is the caller graph for this function:

◆ setLink()

void QSvgUse::setLink ( QSvgNode link)
inline

Definition at line 224 of file qsvggraphics_p.h.

◆ type()

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

Implements QSvgNode.

Definition at line 666 of file qsvggraphics.cpp.

References QSvgNode::USE.


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