Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextNodeIndex Class Reference

The KoSvgTextNodeIndex class. More...

#include <KoSvgTextShape.h>

Classes

struct  Private
 

Public Member Functions

 KoSvgTextNodeIndex (const KoSvgTextNodeIndex &rhs)
 
KoSvgTextPropertiesproperties ()
 properties The properties for this node as a pointer.
 
KoShapetextPath ()
 textPath
 
KoSvgText::TextOnPathInfotextPathInfo ()
 textPathInfo the text path info for this node as a pointer.
 
 ~KoSvgTextNodeIndex ()
 

Private Member Functions

 KoSvgTextNodeIndex ()
 

Private Attributes

QScopedPointer< Privated
 

Friends

class KoSvgTextShape
 

Detailed Description

The KoSvgTextNodeIndex class.

Because SVG text is a tree, it is not always possible to edit nodes by range. This class can be used to access a node in the tree directly, allow the direct editing of properties or any text path on the given node.

Definition at line 726 of file KoSvgTextShape.h.

Constructor & Destructor Documentation

◆ KoSvgTextNodeIndex() [1/2]

KoSvgTextNodeIndex::KoSvgTextNodeIndex ( const KoSvgTextNodeIndex & rhs)

Definition at line 111 of file KoSvgTextShape.cpp.

112{
113 d.reset(new KoSvgTextNodeIndex::Private(rhs.d->textElement, rhs.d->textPath));
114}
QScopedPointer< Private > d

References KoShape::d, and d.

◆ ~KoSvgTextNodeIndex()

KoSvgTextNodeIndex::~KoSvgTextNodeIndex ( )

Definition at line 116 of file KoSvgTextShape.cpp.

116 {
117
118}

◆ KoSvgTextNodeIndex() [2/2]

KoSvgTextNodeIndex::KoSvgTextNodeIndex ( )
private

Definition at line 99 of file KoSvgTextShape.cpp.

100 : d() // Private is **not** initialized, to be initialized by the factory method
101{
102}

Member Function Documentation

◆ properties()

KoSvgTextProperties * KoSvgTextNodeIndex::properties ( )

properties The properties for this node as a pointer.

Returns
properties for this node.

Definition at line 120 of file KoSvgTextShape.cpp.

120 {
121 if (!d) { return nullptr;}
122 return &d->textElement->properties;
123}

References KoShape::d, and KoSvgTextProperties::properties().

◆ textPath()

KoShape * KoSvgTextNodeIndex::textPath ( )

textPath

Returns
the textPath of this node, may be null.

Definition at line 133 of file KoSvgTextShape.cpp.

133 {
134 if (!d) { qDebug() << "d not initialized...";return nullptr;}
135 return d->textPath;
136}

References KoShape::d.

◆ textPathInfo()

KoSvgText::TextOnPathInfo * KoSvgTextNodeIndex::textPathInfo ( )

textPathInfo the text path info for this node as a pointer.

Returns
the current text path info.

Definition at line 125 of file KoSvgTextShape.cpp.

125 {
126 if (!d) {
127 qDebug() << "d not initialized...";
128 return nullptr;
129 }
130 return &d->textElement->textPathInfo;
131}

References KoShape::d.

Friends And Related Symbol Documentation

◆ KoSvgTextShape

friend class KoSvgTextShape
friend

Definition at line 756 of file KoSvgTextShape.h.

Member Data Documentation

◆ d

QScopedPointer<Private> KoSvgTextNodeIndex::d
private

Definition at line 758 of file KoSvgTextShape.h.


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