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

Function PiuViewDrawContent

modules/piu/MC/piuView.c:381–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381void PiuViewDrawContent(PiuView* self, PiuViewDrawContentProc proc, void* it, PiuCoordinate x, PiuCoordinate y, PiuDimension sw, PiuDimension sh)
382{
383 Poco poco = (*self)->poco;
384 x += poco->xOrigin;
385 y += poco->yOrigin;
386#ifdef piuGPU
387 (*proc)(it, self, x, y, sw, sh);
388#else
389 {
390 PIUQueueCommand(DrawContentCommand);
391 command->proc = proc;
392 command->content = it;
393 command->x = x;
394 command->y = y;
395 command->sw = sw;
396 command->sh = sh;
397 }
398#endif
399}
400
401void PiuViewDrawString(PiuView* self, xsSlot* string, xsIntegerValue offset, xsIntegerValue length, PiuFont* font, PiuCoordinate x, PiuCoordinate y, PiuDimension w, PiuDimension sw)
402{

Callers 5

PiuImageDrawFunction · 0.50
PiuShapeDrawFunction · 0.50
PiuGIFImageDrawFunction · 0.50
PiuQRCodeDrawFunction · 0.50
PiuImageBufferDrawFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected