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

Function PiuApplication_set_rotation

modules/piu/MC/piuView.c:1369–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367}
1368
1369void PiuApplication_set_rotation(xsMachine* the)
1370{
1371 PiuApplication* self = PIU(Application, xsThis);
1372 PiuView* view = (*self)->view;
1373 Poco poco = (*view)->poco;
1374 xsVars(1);
1375 xsVar(0) = xsReference((*view)->screen);
1376 xsSet(xsVar(0), xsID_rotation, xsArg(0));
1377 poco->width = xsToInteger(xsGet(xsVar(0), xsID_width));
1378 poco->height = xsToInteger(xsGet(xsVar(0), xsID_height));
1379 PiuApplicationResize(self);
1380}
1381
1382void PiuApplication_keyDown(xsMachine* the)
1383{

Callers

nothing calls this directly

Calls 1

PiuApplicationResizeFunction · 0.85

Tested by

no test coverage detected