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

Function PiuContentUpdate

modules/piu/All/piuContent.c:639–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637}
638
639void PiuContentUpdate(void* it, PiuView* view, PiuRectangle area)
640{
641 PiuContent* self = it;
642 PiuRectangle bounds = &((*self)->bounds);
643 if (((*self)->flags & piuVisible) && PiuRectangleIntersects(bounds, area)) {
644 PiuCoordinate x = bounds->x;
645 PiuCoordinate y = bounds->y;
646 PiuViewPushOrigin(view, x, y);
647 PiuRectangleOffset(area, -x, -y);
648 (*(*self)->dispatch->draw)(self, view, area);
649 PiuRectangleOffset(area, x, y);
650 PiuViewPopOrigin(view);
651 }
652}
653
654PiuIdle PiuContentUseIdle(void* it)
655{

Callers

nothing calls this directly

Calls 4

PiuRectangleIntersectsFunction · 0.85
PiuRectangleOffsetFunction · 0.85
PiuViewPushOriginFunction · 0.50
PiuViewPopOriginFunction · 0.50

Tested by

no test coverage detected