MCPcopy Index your code
hub / github.com/MapServer/MapServer / styleObj_label_new

Function styleObj_label_new

mapscript/php/mapscript_i.c:1408–1421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406 }
1407
1408styleObj *styleObj_label_new(labelObj *label, styleObj *style) {
1409 if(msGrowLabelStyles(label) == NULL)
1410 return NULL;
1411
1412 if(initStyle(label->styles[label->numstyles]) == -1)
1413 return NULL;
1414
1415 if (style)
1416 msCopyStyle(label->styles[label->numstyles], style);
1417
1418 label->numstyles++;
1419
1420 return label->styles[label->numstyles-1];
1421 }
1422
1423int styleObj_updateFromString(styleObj *self, char *snippet) {
1424 return msUpdateStyleFromString(self, snippet, MS_FALSE);

Callers 1

style.cFile · 0.85

Calls 3

msGrowLabelStylesFunction · 0.85
initStyleFunction · 0.85
msCopyStyleFunction · 0.85

Tested by

no test coverage detected