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

Function PiuRow_create

modules/piu/All/piuRow.c:151–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void PiuRow_create(xsMachine* the)
152{
153 PiuRow* self;
154 xsVars(4);
155 xsSetHostChunk(xsThis, NULL, sizeof(PiuRowRecord));
156 self = PIU(Row, xsThis);
157 (*self)->the = the;
158 (*self)->reference = xsToReference(xsThis);
159 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuRowHooks);
160 (*self)->dispatch = (PiuDispatch)&PiuRowDispatchRecord;
161 (*self)->recordSize = PiuRecordSize(sizeof(PiuRowRecord));
162 (*self)->flags = piuVisible | piuContainer;
163 PiuContentDictionary(the, self);
164 PiuContainerDictionary(the, self);
165 PiuBehaviorOnCreate(self);
166}
167

Callers

nothing calls this directly

Calls 3

PiuContentDictionaryFunction · 0.85
PiuContainerDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected