Krita Source Code Documentation
Loading...
Searching...
No Matches
PathElement Struct Reference

Public Types

enum  Type { Wildcard , Parent , Index }
 

Public Member Functions

 PathElement (int _i)
 
 PathElement (Type _type)
 

Public Attributes

unsigned int index {0}
 
Type type
 

Detailed Description

Definition at line 14 of file kis_node_query_path.cc.

Member Enumeration Documentation

◆ Type

Enumerator
Wildcard 
Parent 
Index 

Definition at line 15 of file kis_node_query_path.cc.

Constructor & Destructor Documentation

◆ PathElement() [1/2]

PathElement::PathElement ( Type _type)
inline

Definition at line 20 of file kis_node_query_path.cc.

20 : type(_type) {
21 Q_ASSERT(type == Wildcard || type == Parent);
22 }

References Parent, type, and Wildcard.

◆ PathElement() [2/2]

PathElement::PathElement ( int _i)
inline

Definition at line 23 of file kis_node_query_path.cc.

23: type(Index), index(_i) {}
unsigned int index

Member Data Documentation

◆ index

unsigned int PathElement::index {0}

Definition at line 25 of file kis_node_query_path.cc.

25{0};

◆ type

Type PathElement::type

Definition at line 24 of file kis_node_query_path.cc.


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