MCPcopy Create free account
hub / github.com/VCVRack/Rack / getNumShapes

Method getNumShapes

src/window/Svg.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53int Svg::getNumShapes() {
54 if (!handle)
55 return 0;
56 int count = 0;
57 for (NSVGshape* shape = handle->shapes; shape; shape = shape->next) {
58 count++;
59 }
60 return count;
61}
62
63
64int Svg::getNumPaths() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected