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

Method getNumPaths

src/window/Svg.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63
64int Svg::getNumPaths() {
65 if (!handle)
66 return 0;
67 int count = 0;
68 for (NSVGshape* shape = handle->shapes; shape; shape = shape->next) {
69 for (NSVGpath* path = shape->paths; path; path = path->next) {
70 count++;
71 }
72 }
73 return count;
74}
75
76
77int Svg::getNumPoints() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected