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

Function PiuContainer_create

modules/piu/All/piuContainer.c:503–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503void PiuContainer_create(xsMachine* the)
504{
505 PiuContainer* self;
506 xsVars(4);
507 xsSetHostChunk(xsThis, NULL, sizeof(PiuContainerRecord));
508 self = PIU(Container, xsThis);
509 (*self)->the = the;
510 (*self)->reference = xsToReference(xsThis);
511 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuContainerHooks);
512 (*self)->dispatch = (PiuDispatch)&PiuContainerDispatchRecord;
513 (*self)->recordSize = PiuRecordSize(sizeof(PiuContainerRecord));
514 (*self)->flags = piuVisible | piuContainer;
515 PiuContentDictionary(the, self);
516 PiuContainerDictionary(the, self);
517 PiuBehaviorOnCreate(self);
518}
519
520void PiuContainer_get_clip(xsMachine *the)
521{

Callers

nothing calls this directly

Calls 3

PiuContentDictionaryFunction · 0.85
PiuContainerDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected