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

Function PiuBehaviorOnDraw

modules/piu/All/piuBehavior.c:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void PiuBehaviorOnDraw(void* it, PiuRectangle area)
52{
53 PiuContent* content = it;
54 if ((*content)->behavior) {
55 xsBeginHost((*content)->the);
56 xsVars(2);
57 xsVar(0) = xsReference((*content)->behavior);
58 if (xsFindResult(xsVar(0), xsID_onDraw)) {
59 xsVar(1) = xsReference((*content)->reference);
60 (void)xsCallFunction5(xsResult, xsVar(0), xsVar(1), xsPiuCoordinate(area->x), xsPiuCoordinate(area->y), xsPiuDimension(area->width), xsPiuDimension(area->height));
61 }
62 xsEndHost((*content)->the);
63 }
64}
65
66void PiuBehaviorOnFitID(void* it, xsIdentifier id, PiuDimension dimension)
67{

Callers 1

PiuPortDrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected