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

Function PiuViewDictionary

modules/piu/MC/piuView.c:367–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void PiuViewDictionary(xsMachine* the, void* it)
368{
369 PiuApplication* self = it;
370 PiuView* view = (*self)->view;
371 PiuDimension width, height;
372 PiuViewGetSize(view, &width, &height);
373 (*self)->coordinates.horizontal = piuWidth;
374 (*self)->coordinates.left = (*self)->coordinates.right = (*self)->bounds.x = 0;
375 (*self)->coordinates.width = (*self)->bounds.width = width;
376 (*self)->coordinates.vertical = piuHeight;
377 (*self)->coordinates.top = (*self)->coordinates.bottom = (*self)->bounds.y = 0;
378 (*self)->coordinates.height = (*self)->bounds.height = height;
379}
380
381void PiuViewDrawContent(PiuView* self, PiuViewDrawContentProc proc, void* it, PiuCoordinate x, PiuCoordinate y, PiuDimension sw, PiuDimension sh)
382{

Callers 1

PiuApplication_createFunction · 0.50

Calls 1

PiuViewGetSizeFunction · 0.70

Tested by

no test coverage detected