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

Function PiuViewPushClip

modules/piu/MC/piuView.c:935–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935void PiuViewPushClip(PiuView* self, PocoCoordinate x, PocoCoordinate y, PocoDimension w, PocoDimension h)
936{
937 Poco poco = (*self)->poco;
938 x += poco->xOrigin;
939 y += poco->yOrigin;
940#ifdef piuGPU
941 PocoClipPush(poco, x, y, w, h);
942#else
943 {
944 PIUQueueCommand(PushClipCommand);
945 command->x = x;
946 command->y = y;
947 command->w = w;
948 command->h = h;
949 }
950#endif
951}
952
953void PiuViewPushColor(PiuView* self, PiuColor color)
954{

Callers 8

PiuDieUpdateFunction · 0.70
PiuScrollerUpdateFunction · 0.50
PiuPort_pushClipFunction · 0.50
PiuContainerUpdateFunction · 0.50
PiuImageDrawFunction · 0.50
PiuShapeDrawFunction · 0.50
PiuGIFImageDrawFunction · 0.50
PiuImageBufferDrawFunction · 0.50

Calls 1

PocoClipPushFunction · 0.85

Tested by

no test coverage detected