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

Function PiuDie_set

modules/piu/MC/piuDie.c:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void PiuDie_set(xsMachine* the)
300{
301 PiuDie* self = PIU(Die, xsThis);
302 PiuCoordinate x = xsToPiuCoordinate(xsArg(0));
303 PiuCoordinate y = xsToPiuCoordinate(xsArg(1));
304 PiuDimension width = xsToPiuDimension(xsArg(2));
305 PiuDimension height = xsToPiuDimension(xsArg(3));
306 if (!PiuRegionRectangle((*self)->work, x, y, width, height))
307 xsErrorPrintf("region overflowed");
308 xsResult = xsThis;
309}
310
311void PiuDie_sub(xsMachine* the)
312{

Callers

nothing calls this directly

Calls 1

PiuRegionRectangleFunction · 0.85

Tested by

no test coverage detected