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

Function PiuQRCode_create

modules/piu/Pebble/piuQRCode.c:186–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void PiuQRCode_create(xsMachine* the)
187{
188 PiuQRCode* self;
189 xsVars(4);
190 xsSetHostChunk(xsThis, NULL, sizeof(PiuQRCodeRecord));
191 self = PIU(QRCode, xsThis);
192 (*self)->the = the;
193 (*self)->reference = xsToReference(xsThis);
194 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuQRCodeHooks);
195 (*self)->dispatch = (PiuDispatch)&PiuQRCodeDispatchRecord;
196 (*self)->recordSize = PiuRecordSize(sizeof(PiuQRCodeRecord));
197 (*self)->flags = piuVisible;
198 PiuContentDictionary(the, self);
199 PiuQRCodeDictionary(the, self);
200 PiuBehaviorOnCreate(self);
201}
202
203void PiuQRCode_get_string(xsMachine* the)
204{

Callers

nothing calls this directly

Calls 3

PiuContentDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85
PiuQRCodeDictionaryFunction · 0.70

Tested by

no test coverage detected