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

#include <qsvggraphics_p.h>

+ Inheritance diagram for QSvgImage:
+ Collaboration diagram for QSvgImage:

Public Member Functions

 QSvgImage (QSvgNode *parent, const QImage &image, const QRectF &bounds)
 
void draw (QPainter *p, QSvgExtraStates &states) override
 
Type type () const override
 
QRectF bounds (QPainter *p, QSvgExtraStates &states) const override
 
- 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 69 of file qsvggraphics_p.h.

Constructor & Destructor Documentation

◆ QSvgImage()

QSvgImage::QSvgImage ( QSvgNode parent,
const QImage image,
const QRectF bounds 
)

Definition at line 117 of file qsvggraphics.cpp.

References QImage::height(), QRectF::height(), QRectF::setHeight(), QRectF::setWidth(), QImage::width(), and QRectF::width().

+ Here is the call graph for this function:

Member Function Documentation

◆ bounds()

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

Reimplemented from QSvgNode.

Definition at line 717 of file qsvggraphics.cpp.

◆ draw()

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

Implements QSvgNode.

Definition at line 128 of file qsvggraphics.cpp.

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

+ Here is the call graph for this function:

◆ type()

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

Implements QSvgNode.

Definition at line 631 of file qsvggraphics.cpp.

References QSvgNode::IMAGE.


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