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

Function styleObj_new

mapscript/php/mapscript_i.c:1393–1406  ·  view source on GitHub ↗

* class extensions for styleObj, always within the context of a class **********************************************************************/

Source from the content-addressed store, hash-verified

1391 * class extensions for styleObj, always within the context of a class
1392 **********************************************************************/
1393styleObj *styleObj_new(classObj *class, styleObj *style) {
1394 if(msGrowClassStyles(class) == NULL)
1395 return NULL;
1396
1397 if(initStyle(class->styles[class->numstyles]) == -1)
1398 return NULL;
1399
1400 if (style)
1401 msCopyStyle(class->styles[class->numstyles], style);
1402
1403 class->numstyles++;
1404
1405 return class->styles[class->numstyles-1];
1406 }
1407
1408styleObj *styleObj_label_new(labelObj *label, styleObj *style) {
1409 if(msGrowLabelStyles(label) == NULL)

Callers 2

php_mapscript.cFile · 0.85
style.cFile · 0.85

Calls 3

msGrowClassStylesFunction · 0.85
initStyleFunction · 0.85
msCopyStyleFunction · 0.85

Tested by

no test coverage detected