File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,30 @@ class QgsSymbolV2
54
54
SymbolType type() const;
55
55
56
56
// symbol layers handling
57
-
57
+
58
+ /**Returns list of symbol layers contained in the symbol.
59
+ * @returns symbol layers list
60
+ * @note added in QGIS 2.7
61
+ * @see symbolLayer
62
+ * @see symbolLayerCount
63
+ */
64
+ QgsSymbolLayerV2List symbolLayers();
65
+
66
+ /**Returns a specific symbol layers contained in the symbol.
67
+ * @param layer layer number
68
+ * @returns corresponding symbol layer
69
+ * @note added in QGIS 2.7
70
+ * @see symbolLayers
71
+ * @see symbolLayerCount
72
+ */
58
73
QgsSymbolLayerV2* symbolLayer( int layer );
59
74
75
+ /**Returns total number of symbol layers contained in the symbol.
76
+ * @returns count of symbol layers
77
+ * @note added in QGIS 2.7
78
+ * @see symbolLayers
79
+ * @see symbolLayer
80
+ */
60
81
int symbolLayerCount();
61
82
62
83
//! insert symbol layer to specified index
Original file line number Diff line number Diff line change @@ -80,8 +80,29 @@ class CORE_EXPORT QgsSymbolV2
80
80
81
81
// symbol layers handling
82
82
83
+ /* *Returns list of symbol layers contained in the symbol.
84
+ * @returns symbol layers list
85
+ * @note added in QGIS 2.7
86
+ * @see symbolLayer
87
+ * @see symbolLayerCount
88
+ */
89
+ QgsSymbolLayerV2List symbolLayers () { return mLayers ; }
90
+
91
+ /* *Returns a specific symbol layers contained in the symbol.
92
+ * @param layer layer number
93
+ * @returns corresponding symbol layer
94
+ * @note added in QGIS 2.7
95
+ * @see symbolLayers
96
+ * @see symbolLayerCount
97
+ */
83
98
QgsSymbolLayerV2* symbolLayer ( int layer );
84
99
100
+ /* *Returns total number of symbol layers contained in the symbol.
101
+ * @returns count of symbol layers
102
+ * @note added in QGIS 2.7
103
+ * @see symbolLayers
104
+ * @see symbolLayer
105
+ */
85
106
int symbolLayerCount () { return mLayers .count (); }
86
107
87
108
// ! insert symbol layer to specified index
You can’t perform that action at this time.
0 commit comments