MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuSVGImage_rotate

Function PiuSVGImage_rotate

modules/piu/Pebble/piuSVGImage.c:425–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void PiuSVGImage_rotate(xsMachine* the)
426{
427 PiuSVGImage* self = PIU(SVGImage, xsThis);
428 xsIntegerValue c = xsToInteger(xsArgc);
429 (*self)->r = (c > 0) ? xsToNumber(xsArg(0)) : 0;
430 (*self)->transforming = 1;
431 PiuSVGImageInvalidate(self, NULL);
432}
433
434void PiuSVGImage_get_r(xsMachine* the)
435{

Callers

nothing calls this directly

Calls 1

PiuSVGImageInvalidateFunction · 0.85

Tested by

no test coverage detected