Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 () override
Type type () const override
void drawCommand (QPainter *, QSvgExtraStates &) override
void addText (QStringView text)
const QString & text () const
bool isTspan () const
void setWhitespaceMode (QSvgText::WhitespaceMode mode)
QSvgText::WhitespaceMode whitespaceMode () const
void setX (qreal x)
void setY (qreal y)
bool hasX () const
bool hasY () const
bool hasPosition () const
qreal x () const
qreal y () const
Public Member Functions inherited from QSvgNode
 QSvgNode (QSvgNode *parent=0)
virtual ~QSvgNode ()
void draw (QPainter *p, QSvgExtraStates &states)
virtual bool separateFillStroke (const QPainter *, const QSvgExtraStates &) const
void fillThenStroke (QPainter *p, QSvgExtraStates &states)
QImage drawIntoBuffer (QPainter *p, QSvgExtraStates &states, const QRect &boundsRect)
void applyMaskToBuffer (QImage *proxy, const QImage &mask) const
void drawWithMask (QPainter *p, QSvgExtraStates &states, const QImage &mask, const QRect &boundsRect)
void applyBufferToCanvas (QPainter *p, const QImage &proxy) const
QSvgNode * parent () const
bool isDescendantOf (const QSvgNode *parent) const
void appendStyleProperty (QSvgStylePropertyPtr prop)
void applyStyle (QPainter *p, QSvgExtraStates &states) const
void applyStyleRecursive (QPainter *p, QSvgExtraStates &states) const
void revertStyle (QPainter *p, QSvgExtraStates &states) const
void revertStyleRecursive (QPainter *p, QSvgExtraStates &states) const
void applyAnimatedStyle (QPainter *p, QSvgExtraStates &states) const
void revertAnimatedStyle (QPainter *p, QSvgExtraStates &states) const
QSvgStyleProperty * styleProperty (QSvgStyleProperty::Type type) const
QLatin1StringView typeName () const
virtual QRectF internalFastBounds (QPainter *p, QSvgExtraStates &states) const
virtual QRectF internalBounds (QPainter *p, QSvgExtraStates &states) const
QRectF bounds (QPainter *p, QSvgExtraStates &states) const
QRectF bounds (const QSvgDocument *doc) const
virtual QRectF decoratedInternalBounds (QPainter *p, QSvgExtraStates &states) const
virtual QRectF decoratedBounds (QPainter *p, QSvgExtraStates &states) const
void setRequiredFeatures (const QStringList &lst)
const QStringList & requiredFeatures () const
void setRequiredExtensions (const QStringList &lst)
const QStringList & requiredExtensions () const
void setRequiredLanguages (const QStringList &lst)
const QStringList & requiredLanguages () const
void setRequiredFormats (const QStringList &lst)
const QStringList & requiredFormats () const
void setRequiredFonts (const QStringList &lst)
const QStringList & requiredFonts () 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)
QString maskId () const
void setMaskId (const QString &str)
bool hasMask () const
QString filterId () const
void setFilterId (const QString &str)
bool hasFilter () const
QString markerStartId () const
void setMarkerStartId (const QString &str)
bool hasMarkerStart () const
QString markerMidId () const
void setMarkerMidId (const QString &str)
bool hasMarkerMid () const
QString markerEndId () const
void setMarkerEndId (const QString &str)
bool hasMarkerEnd () const
bool hasAnyMarker () const
virtual bool requiresGroupRendering () const
virtual bool shouldDrawNode (QPainter *p, QSvgExtraStates &states) const
const QSvgStaticStyle & style () const

Additional Inherited Members

Public Types inherited from QSvgNode
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 , Font
}
enum  DisplayMode {
  InlineMode , BlockMode , ListItemMode , RunInMode ,
  CompactMode , MarkerMode , TableMode , InlineTableMode ,
  TableRowGroupMode , TableHeaderGroupMode , TableFooterGroupMode , TableRowMode ,
  TableColumnGroupMode , TableColumnMode , TableCellMode , TableCaptionMode ,
  NoneMode , InheritMode
}
Protected Types inherited from QSvgNode
enum  BoundsMode { Simplistic , IncludeMiterLimit }
Protected Member Functions inherited from QSvgNode
QRectF filterRegion (const QSvgDocument *doc, QRectF bounds) const
Static Protected Member Functions inherited from QSvgNode
static qreal strokeWidth (QPainter *p)
static void initPainter (QPainter *p)
static QRectF boundsOnStroke (QPainter *p, const QPainterPath &path, qreal width, BoundsMode mode)
Protected Attributes inherited from QSvgNode
QSvgStaticStyle m_style
QSvgAnimatedStyle m_animatedStyle

Detailed Description

Definition at line 240 of file qsvggraphics_p.h.

Constructor & Destructor Documentation

◆ QSvgTspan()

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

Definition at line 244 of file qsvggraphics_p.h.

◆ ~QSvgTspan()

QSvgTspan::~QSvgTspan ( )
overridedefault

Member Function Documentation

◆ addText()

void QSvgTspan::addText ( QStringView text)
inline

Definition at line 252 of file qsvggraphics_p.h.

◆ drawCommand()

void QSvgTspan::drawCommand ( QPainter * ,
QSvgExtraStates &  )
inlineoverridevirtual

Implements QSvgNode.

Definition at line 251 of file qsvggraphics_p.h.

◆ hasPosition()

bool QSvgTspan::hasPosition ( ) const
inline

Definition at line 266 of file qsvggraphics_p.h.

◆ hasX()

bool QSvgTspan::hasX ( ) const
inline

Definition at line 264 of file qsvggraphics_p.h.

◆ hasY()

bool QSvgTspan::hasY ( ) const
inline

Definition at line 265 of file qsvggraphics_p.h.

◆ isTspan()

bool QSvgTspan::isTspan ( ) const
inline

Definition at line 254 of file qsvggraphics_p.h.

◆ setWhitespaceMode()

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

Definition at line 255 of file qsvggraphics_p.h.

◆ setX()

void QSvgTspan::setX ( qreal x)
inline

Definition at line 262 of file qsvggraphics_p.h.

◆ setY()

void QSvgTspan::setY ( qreal y)
inline

Definition at line 263 of file qsvggraphics_p.h.

◆ text()

const QString & QSvgTspan::text ( ) const
inline

Definition at line 253 of file qsvggraphics_p.h.

◆ type()

Type QSvgTspan::type ( ) const
inlineoverridevirtual

Implements QSvgNode.

Definition at line 250 of file qsvggraphics_p.h.

◆ whitespaceMode()

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

Definition at line 256 of file qsvggraphics_p.h.

◆ x()

qreal QSvgTspan::x ( ) const
inline

Definition at line 267 of file qsvggraphics_p.h.

◆ y()

qreal QSvgTspan::y ( ) const
inline

Definition at line 268 of file qsvggraphics_p.h.


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