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 567 of file KoSvgTextShape.h.

Constructor & Destructor Documentation

◆ KoSvgTextNodeIndex() [1/2]

KoSvgTextNodeIndex::KoSvgTextNodeIndex ( const KoSvgTextNodeIndex & rhs)

Definition at line 106 of file KoSvgTextShape.cpp.

107{
108 d->textElement = rhs.d->textElement;
109}
QScopedPointer< Private > d

References KoShape::d, and d.

◆ ~KoSvgTextNodeIndex()

KoSvgTextNodeIndex::~KoSvgTextNodeIndex ( )

Definition at line 111 of file KoSvgTextShape.cpp.

111 {
112
113}

◆ KoSvgTextNodeIndex() [2/2]

KoSvgTextNodeIndex::KoSvgTextNodeIndex ( )
private

Definition at line 94 of file KoSvgTextShape.cpp.

95 : d() // Private is **not** initialized, to be initialized by the factory method
96{
97}

Member Function Documentation

◆ properties()

KoSvgTextProperties * KoSvgTextNodeIndex::properties ( )

properties The properties for this node as a pointer.

Returns
properties for this node.

Definition at line 115 of file KoSvgTextShape.cpp.

115 {
116 return &d->textElement->properties;
117}

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

◆ textPath()

KoShape * KoSvgTextNodeIndex::textPath ( )

textPath

Returns
the textPath of this node, may be null.

Definition at line 123 of file KoSvgTextShape.cpp.

123 {
124 // TODO: implement this properly in the text-in-shape branch.
125 return nullptr;
126}

◆ 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 119 of file KoSvgTextShape.cpp.

119 {
120 return &d->textElement->textPathInfo;
121}

References KoShape::d.

Friends And Related Symbol Documentation

◆ KoSvgTextShape

friend class KoSvgTextShape
friend

Definition at line 597 of file KoSvgTextShape.h.

Member Data Documentation

◆ d

QScopedPointer<Private> KoSvgTextNodeIndex::d
private

Definition at line 599 of file KoSvgTextShape.h.


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