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

Function PiuQRCodeDrawAux

modules/piu/MC/qrcode/piuQRCode.c:141–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void PiuQRCodeDrawAux(void* it, PiuView* view, PiuCoordinate x, PiuCoordinate y, PiuDimension sw, PiuDimension sh)
142{
143 PiuQRCode* self = it;
144 xsBeginHost((*self)->the);
145 xsVars(6);
146 xsVar(0) = xsReference((*view)->reference);
147 xsVar(0) = xsGet(xsVar(0), xsID_poco);
148 if ((*self)->fillBlend) {
149 PocoRectangleFill((*view)->poco, (*self)->fillColor, 0xff, x, y, sw, sh);
150 }
151 if ((*self)->strokeBlend) {
152 xsVar(1) = xsReference((*self)->buffer);
153 xsVar(2) = xsInteger(x + (*self)->dx);
154 xsVar(3) = xsInteger(y + (*self)->dy);
155 xsVar(4) = xsInteger((*self)->scale);
156 xsVar(5) = xsInteger((*self)->strokeColor);
157 xsCall5(xsVar(0), xsID_drawQRCode, xsVar(1), xsVar(2), xsVar(3), xsVar(4), xsVar(5));
158 }
159 xsEndHost((*self)->the);
160}
161
162void PiuQRCodeMark(xsMachine* the, void* it, xsMarkRoot markRoot)
163{

Callers

nothing calls this directly

Calls 1

PocoRectangleFillFunction · 0.85

Tested by

no test coverage detected