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

Function PiuContentSetFraction

modules/piu/All/piuContent.c:501–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501void PiuContentSetFraction(PiuContent* self, double fraction)
502{
503 double duration = PiuContentUseIdle(self)->duration;
504 if (duration)
505 PiuContentSetTime(self, duration * fraction);
506}
507
508void PiuContentSetInterval(PiuContent* self, PiuInterval interval)
509{

Callers 2

PiuContentDictionaryFunction · 0.85
PiuContent_set_fractionFunction · 0.85

Calls 2

PiuContentUseIdleFunction · 0.85
PiuContentSetTimeFunction · 0.85

Tested by

no test coverage detected