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

#include <kis_multinode_property.h>

+ Inheritance diagram for ColorLabelAdapter:

Public Types

typedef MultinodePropertyBaseConnector ConnectorType
 
typedef int ValueType
 

Static Public Member Functions

static ValueType propForNode (KisNodeSP node)
 
static void setPropForNode (KisNodeSP node, const ValueType &value, int index)
 
- Static Public Member Functions inherited from BaseAdapter
static KisNodeList filterNodes (KisNodeList nodes)
 

Static Public Attributes

static const bool forceIgnoreByDefault = false
 

Additional Inherited Members

- Public Member Functions inherited from BaseAdapter
void setNumNodes (int numNodes)
 
- Public Attributes inherited from BaseAdapter
int m_numNodes = 0
 

Detailed Description

Definition at line 90 of file kis_multinode_property.h.

Member Typedef Documentation

◆ ConnectorType

◆ ValueType

Definition at line 91 of file kis_multinode_property.h.

Member Function Documentation

◆ propForNode()

static ValueType ColorLabelAdapter::propForNode ( KisNodeSP node)
inlinestatic

Definition at line 95 of file kis_multinode_property.h.

95 {
96 return node->colorLabelIndex();
97 }
int colorLabelIndex() const

References KisBaseNode::colorLabelIndex().

◆ setPropForNode()

static void ColorLabelAdapter::setPropForNode ( KisNodeSP node,
const ValueType & value,
int index )
inlinestatic

Definition at line 99 of file kis_multinode_property.h.

99 {
100 Q_UNUSED(index);
102 }
float value(const T *src, size_t ch)
void setColorLabelIndex(int index)

References KisBaseNode::setColorLabelIndex(), and value().

Member Data Documentation

◆ forceIgnoreByDefault

const bool ColorLabelAdapter::forceIgnoreByDefault = false
static

Definition at line 93 of file kis_multinode_property.h.


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