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

Function PiuPort_drawContent

modules/piu/All/piuPort.c:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void PiuPort_drawContent(xsMachine* the)
171{
172 PiuPort* self = PIU(Port, xsThis);
173 PiuView* view = (*self)->view;
174 PiuRectangleRecord bounds;
175 if (!view) xsUnknownError("out of sequence");
176 bounds.x = xsToPiuCoordinate(xsArg(0));
177 bounds.y = xsToPiuCoordinate(xsArg(1));
178 bounds.width = xsToPiuDimension(xsArg(2));
179 bounds.height = xsToPiuDimension(xsArg(3));
180 if ((*self)->skin)
181 PiuSkinDraw((*self)->skin, view, &bounds, (*self)->variant, (*self)->state, piuCenter, piuMiddle);
182}
183
184void PiuPort_drawLabel(xsMachine* the)
185{

Callers

nothing calls this directly

Calls 1

PiuSkinDrawFunction · 0.85

Tested by

no test coverage detected