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

Function PiuView_onResize

modules/piu/Pebble/piuView.c:529–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529void PiuView_onResize(xsMachine* the)
530{
531 PiuView* self = PIU(View, xsThis);
532 PiuApplication* application = (*self)->application;
533 xsVars(2);
534 PiuApplicationResize(application);
535 if ((*application)->behavior) {
536 xsVar(0) = xsReference((*application)->behavior);
537 if (xsFindResult(xsVar(0), xsID_onResize)) {
538 xsVar(1) = xsReference((*application)->reference);
539 xsCallFunction2(xsResult, xsVar(0), xsVar(1), xsArg(0));
540 }
541 }
542}
543
544void PiuView_onTouchBegan(xsMachine* the)
545{

Callers

nothing calls this directly

Calls 1

PiuApplicationResizeFunction · 0.85

Tested by

no test coverage detected