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

Function PiuApplicationStopContent

modules/piu/All/piuApplication.c:295–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void PiuApplicationStopContent(PiuApplication* self, void* it)
296{
297 PiuIdleLink* link = it;
298 PiuIdleLink* former = NULL;
299 PiuIdleLink* current = (*self)->idleChain;
300 while (current) {
301 if (current == link) {
302 link = PiuContentUseIdle(current)->idleLink;
303 PiuContentUseIdle(current)->idleLink = NULL;
304 if (former)
305 PiuContentUseIdle(former)->idleLink = link;
306 else
307 (*self)->idleChain = link;
308 if ((*self)->idleLoop == current)
309 (*self)->idleLoop = link;
310 break;
311 }
312 former = current;
313 current = PiuContentUseIdle(current)->idleLink;
314 }
315 PiuViewReschedule((*self)->view);
316}
317
318void PiuApplicationTouchBegan(PiuApplication* self, xsIntegerValue index, PiuCoordinate x, PiuCoordinate y, xsNumberValue ticks)
319{

Callers 4

PiuContentStopFunction · 0.85
PiuContentUnbindFunction · 0.85
PiuTransitionCompleteFunction · 0.85
PiuTransitionIdleFunction · 0.85

Calls 2

PiuContentUseIdleFunction · 0.85
PiuViewRescheduleFunction · 0.50

Tested by

no test coverage detected