Qt 4.8
Public Functions | Properties | List of all members
QSvgTspan Class Reference

#include <qsvggraphics_p.h>

Inheritance diagram for QSvgTspan:
QSvgNode

Public Functions

void addText (const QString &text)
 
virtual void draw (QPainter *, QSvgExtraStates &)
 
bool isTspan () const
 
 QSvgTspan (QSvgNode *parent, bool isProperTspan=true)
 
void setWhitespaceMode (QSvgText::WhitespaceMode mode)
 
const QStringtext () const
 
virtual Type type () const
 
QSvgText::WhitespaceMode whitespaceMode () const
 
 ~QSvgTspan ()
 
- Public Functions inherited from QSvgNode
void appendStyleProperty (QSvgStyleProperty *prop, const QString &id)
 
void applyStyle (QPainter *p, QSvgExtraStates &states) const
 
virtual QRectF bounds (QPainter *p, QSvgExtraStates &states) const
 
DisplayMode displayMode () const
 
QSvgTinyDocumentdocument () const
 
bool isVisible () const
 
QString nodeId () const
 
QSvgNodeparent () const
 
 QSvgNode (QSvgNode *parent=0)
 
const QStringListrequiredExtensions () const
 
const QStringListrequiredFeatures () const
 
const QStringListrequiredFonts () const
 
const QStringListrequiredFormats () const
 
const QStringListrequiredLanguages () const
 
void revertStyle (QPainter *p, QSvgExtraStates &states) const
 
void setDisplayMode (DisplayMode display)
 
void setNodeId (const QString &i)
 
void setRequiredExtensions (const QStringList &lst)
 
void setRequiredFeatures (const QStringList &lst)
 
void setRequiredFonts (const QStringList &lst)
 
void setRequiredFormats (const QStringList &lst)
 
void setRequiredLanguages (const QStringList &lst)
 
void setVisible (bool visible)
 
void setXmlClass (const QString &str)
 
QSvgStylePropertystyleProperty (QSvgStyleProperty::Type type) const
 
QSvgFillStylePropertystyleProperty (const QString &id) const
 
virtual QRectF transformedBounds (QPainter *p, QSvgExtraStates &states) const
 
QRectF transformedBounds () const
 
QString xmlClass () const
 
virtual ~QSvgNode ()
 

Properties

bool m_isTspan
 
QSvgText::WhitespaceMode m_mode
 
QString m_text
 

Additional Inherited Members

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

Detailed Description

Definition at line 217 of file qsvggraphics_p.h.

Constructors and Destructors

◆ QSvgTspan()

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

Definition at line 221 of file qsvggraphics_p.h.

222  : QSvgNode(parent), m_mode(QSvgText::Default), m_isTspan(isProperTspan)
223  {
224  }
QSvgText::WhitespaceMode m_mode
QSvgNode(QSvgNode *parent=0)
Definition: qsvgnode.cpp:52

◆ ~QSvgTspan()

QSvgTspan::~QSvgTspan ( )
inline

Definition at line 225 of file qsvggraphics_p.h.

225 { };

Functions

◆ addText()

void QSvgTspan::addText ( const QString text)
inline

Definition at line 228 of file qsvggraphics_p.h.

Referenced by QSvgText::addText().

228 {m_text += text;}
QString m_text
const QString & text() const

◆ draw()

virtual void QSvgTspan::draw ( QPainter ,
QSvgExtraStates  
)
inlinevirtual

Implements QSvgNode.

Definition at line 227 of file qsvggraphics_p.h.

227 {Q_ASSERT(!"Tspans should be drawn through QSvgText::draw().");}
#define Q_ASSERT(cond)
Definition: qglobal.h:1823

◆ isTspan()

bool QSvgTspan::isTspan ( ) const
inline

Definition at line 230 of file qsvggraphics_p.h.

230 {return m_isTspan;}

◆ setWhitespaceMode()

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

Definition at line 231 of file qsvggraphics_p.h.

Referenced by QSvgText::addText().

231 {m_mode = mode;}
QSvgText::WhitespaceMode m_mode

◆ text()

const QString& QSvgTspan::text ( ) const
inline

Definition at line 229 of file qsvggraphics_p.h.

229 {return m_text;}
QString m_text

◆ type()

virtual Type QSvgTspan::type ( ) const
inlinevirtual

Implements QSvgNode.

Definition at line 226 of file qsvggraphics_p.h.

226 {return TSPAN;}

◆ whitespaceMode()

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

Definition at line 232 of file qsvggraphics_p.h.

232 {return m_mode;}
QSvgText::WhitespaceMode m_mode

Properties

◆ m_isTspan

bool QSvgTspan::m_isTspan
private

Definition at line 236 of file qsvggraphics_p.h.

◆ m_mode

QSvgText::WhitespaceMode QSvgTspan::m_mode
private

Definition at line 235 of file qsvggraphics_p.h.

◆ m_text

QString QSvgTspan::m_text
private

Definition at line 234 of file qsvggraphics_p.h.


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