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

Function PiuGIFImage_create

modules/piu/MC/gif/piuGIFImage.c:250–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void PiuGIFImage_create(xsMachine* the)
251{
252 PiuGIFImage* self;
253 xsVars(4);
254 xsSetHostChunk(xsThis, NULL, sizeof(PiuGIFImageRecord));
255 self = PIU(GIFImage, xsThis);
256 (*self)->the = the;
257 (*self)->reference = xsToReference(xsThis);
258 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuGIFImageHooks);
259 (*self)->dispatch = (PiuDispatch)&PiuGIFImageDispatchRecord;
260 (*self)->recordSize = PiuRecordSize(sizeof(PiuGIFImageRecord));
261 (*self)->flags = piuVisible;
262 PiuContentDictionary(the, self);
263 PiuGIFImageDictionary(the, self);
264 PiuBehaviorOnCreate(self);
265}
266
267

Callers

nothing calls this directly

Calls 3

PiuContentDictionaryFunction · 0.85
PiuGIFImageDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected