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

Function PiuApplicationAdjust

modules/piu/All/piuApplication.c:71–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69};
70
71void PiuApplicationAdjust(PiuApplication* self)
72{
73#ifdef piuPC
74 if ((*self)->flags & piuMenusChanged) {
75 (*self)->flags &= ~piuMenusChanged;
76 xsBeginHost((*self)->the);
77 xsResult = xsReference((*self)->reference);
78 xsCall0(xsResult, xsID_updateMenus);
79 xsEndHost((*self)->the);
80 }
81#endif
82 if (!((*self)->flags & piuAdjusting)) {
83 (*self)->flags |= piuAdjusting;
84 if ((*self)->flags & (piuContentsChanged | piuContentsPlaced)) {
85 while ((*self)->flags & (piuContentsChanged | piuContentsPlaced)) {
86 while ((*self)->flags & piuContentsChanged) {
87 if ((*self)->flags & piuContentsHorizontallyChanged)
88 PiuContainerAdjustHorizontally(self);
89 if ((*self)->flags & piuContentsVerticallyChanged)
90 PiuContainerAdjustVertically(self);
91 }
92 if ((*self)->flags & piuContentsPlaced)
93 PiuContainerPlace(self);
94 }
95 PiuViewAdjust((*self)->view);
96 }
97 (*self)->flags &= ~piuAdjusting;
98 }
99}
100
101void PiuApplicationCaptureTouch(PiuApplication* self, PiuContent* it, xsIntegerValue index, PiuCoordinate x, PiuCoordinate y, double ticks)
102{

Callers 15

PiuDebugMachineCallbackFunction · 0.85
doUpdateFunction · 0.85
PiuView_onIdleFunction · 0.85
PiuView_onTouchBeganFunction · 0.85
PiuView_onTouchEndedFunction · 0.85
PiuApplicationDoMenuFunction · 0.85
PiuContent_get_boundsFunction · 0.85
PiuContent_get_offsetFunction · 0.85
PiuContent_get_positionFunction · 0.85
PiuContent_get_sizeFunction · 0.85
PiuContent_get_xFunction · 0.85

Calls 4

PiuContainerPlaceFunction · 0.85
PiuViewAdjustFunction · 0.50

Tested by

no test coverage detected