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

Function PiuSVGImage_create

modules/piu/Pebble/piuSVGImage.c:357–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357void PiuSVGImage_create(xsMachine* the)
358{
359 PiuSVGImage* self;
360 xsVars(4);
361 xsSetHostChunk(xsThis, NULL, sizeof(PiuSVGImageRecord));
362 self = PIU(SVGImage, xsThis);
363 (*self)->the = the;
364 (*self)->reference = xsToReference(xsThis);
365 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuSVGImageHooks);
366 (*self)->dispatch = (PiuDispatch)&PiuSVGImageDispatchRecord;
367 (*self)->recordSize = PiuRecordSize(sizeof(PiuSVGImageRecord));
368 (*self)->flags = piuVisible;
369 PiuContentDictionary(the, self);
370 PiuSVGImageDictionary(the, self);
371 PiuBehaviorOnCreate(self);
372}
373
374void PiuSVGImage_get_opacity(xsMachine* the)
375{

Callers

nothing calls this directly

Calls 3

PiuContentDictionaryFunction · 0.85
PiuSVGImageDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected