NovaSVG 0.10.0
A header-only SVG library
Loading...
Searching...
No Matches
novasvg::SVGTextNode Class Referencefinal

#include <svgelement.h>

Inheritance diagram for novasvg::SVGTextNode:
Collaboration diagram for novasvg::SVGTextNode:

Public Member Functions

 SVGTextNode (Document *document)
 
bool isTextNode () const final
 
const std::string & data () const
 
void setData (const std::string &data)
 
std::unique_ptr< SVGNode > clone (bool deep) const final
 
- Public Member Functions inherited from novasvg::SVGNode
 SVGNode (Document *document)
 
virtual ~SVGNode ()=default
 
virtual bool isElement () const
 
virtual bool isPaintElement () const
 
virtual bool isGraphicsElement () const
 
virtual bool isGeometryElement () const
 
virtual bool isTextPositioningElement () const
 
Document * document () const
 
SVGRootElement * rootElement () const
 
SVGElement * parentElement () const
 
void setParentElement (SVGElement *parent)
 
bool isRootElement () const
 

Detailed Description

Definition at line 716 of file svgelement.h.

Constructor & Destructor Documentation

◆ SVGTextNode()

NOVASVG_INLINE novasvg::SVGTextNode::SVGTextNode ( Document *  document)

Definition at line 5096 of file svgelement.h.

Member Function Documentation

◆ clone()

NOVASVG_INLINE std::unique_ptr< SVGNode > novasvg::SVGTextNode::clone ( bool  deep) const
finalvirtual

Implements novasvg::SVGNode.

Definition at line 5107 of file svgelement.h.

References novasvg::SVGNode::document(), and setData().

◆ data()

const std::string & novasvg::SVGTextNode::data ( ) const
inline

Definition at line 722 of file svgelement.h.

Referenced by novasvg::TextNode::data(), and setData().

◆ isTextNode()

bool novasvg::SVGTextNode::isTextNode ( ) const
inlinefinalvirtual

Reimplemented from novasvg::SVGNode.

Definition at line 720 of file svgelement.h.

◆ setData()

NOVASVG_INLINE void novasvg::SVGTextNode::setData ( const std::string &  data)

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