Prototype
size_t __cdecl fnThemeCount ( ShapeType type );
Return value
Number of themes this plugin will create for shapes of type type .
Parameters
type
The type of shapes for which ShapeUp queries the loader plugin.
Remarks
This function will typically be called three times, one for each basic shape type
The function should for each call return the number of themes it wants to load for that particular shape type.
Example
size_t __cdecl fnThemeCount ( ShapeType type ) { switch (type) { case ShapeType_Point: /* we have 2 point layers */ return 2; case ShapeType_Polyline: /* one polyline layer */ return 1; case ShapeType_Polygon: /* and various number of polygon layers, * depending on some preconditions */ return _polygonLayerCount; default: break; } return 0; }
See Also