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

Function PiuLayout_create

modules/piu/All/piuLayout.c:94–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void PiuLayout_create(xsMachine* the)
95{
96 PiuLayout* self;
97 xsVars(4);
98 xsSetHostChunk(xsThis, NULL, sizeof(PiuLayoutRecord));
99 self = PIU(Layout, xsThis);
100 (*self)->the = the;
101 (*self)->reference = xsToReference(xsThis);
102 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuLayoutHooks);
103 (*self)->dispatch = (PiuDispatch)&PiuLayoutDispatchRecord;
104 (*self)->recordSize = PiuRecordSize(sizeof(PiuLayoutRecord));
105 (*self)->flags = piuVisible | piuContainer;
106 PiuContentDictionary(the, self);
107 PiuContainerDictionary(the, self);
108 PiuBehaviorOnCreate(self);
109}

Callers

nothing calls this directly

Calls 3

PiuContentDictionaryFunction · 0.85
PiuContainerDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected