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

#include <qsvggraphics_p.h>

+ Inheritance diagram for QSvgTspan:
+ Collaboration diagram for QSvgTspan:

Public Member Functions

 QSvgTspan (QSvgNode *parent, bool isProperTspan=true)
 
 ~QSvgTspan ()
 
Type type () const override
 
void draw (QPainter *, QSvgExtraStates &) override
 
void addText (const QString &text)
 
const QStringtext () const
 
bool isTspan () const
 
void setWhitespaceMode (QSvgText::WhitespaceMode mode)
 
QSvgText::WhitespaceMode whitespaceMode () const
 
- 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 190 of file qsvggraphics_p.h.

Constructor & Destructor Documentation

◆ QSvgTspan()

QSvgTspan::QSvgTspan ( QSvgNode parent,
bool  isProperTspan = true 
)
inline

Definition at line 194 of file qsvggraphics_p.h.

◆ ~QSvgTspan()

QSvgTspan::~QSvgTspan ( )
inline

Definition at line 198 of file qsvggraphics_p.h.

Member Function Documentation

◆ addText()

void QSvgTspan::addText ( const QString text)
inline

Definition at line 201 of file qsvggraphics_p.h.

References text.

Referenced by QSvgText::addText().

+ Here is the caller graph for this function:

◆ draw()

void QSvgTspan::draw ( QPainter ,
QSvgExtraStates  
)
inlineoverridevirtual

Implements QSvgNode.

Definition at line 200 of file qsvggraphics_p.h.

References Q_ASSERT.

◆ isTspan()

bool QSvgTspan::isTspan ( ) const
inline

Definition at line 203 of file qsvggraphics_p.h.

◆ setWhitespaceMode()

void QSvgTspan::setWhitespaceMode ( QSvgText::WhitespaceMode  mode)
inline

Definition at line 204 of file qsvggraphics_p.h.

Referenced by QSvgText::addText().

+ Here is the caller graph for this function:

◆ text()

const QString & QSvgTspan::text ( ) const
inline

Definition at line 202 of file qsvggraphics_p.h.

Referenced by QSvgText::fastBounds().

+ Here is the caller graph for this function:

◆ type()

Type QSvgTspan::type ( ) const
inlineoverridevirtual

Implements QSvgNode.

Definition at line 199 of file qsvggraphics_p.h.

References QSvgNode::TSPAN.

◆ whitespaceMode()

QSvgText::WhitespaceMode QSvgTspan::whitespaceMode ( ) const
inline

Definition at line 205 of file qsvggraphics_p.h.


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