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

Function PiuScroller_create

modules/piu/All/piuScroller.c:462–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462void PiuScroller_create(xsMachine* the)
463{
464 PiuScroller* self;
465 xsVars(4);
466 xsSetHostChunk(xsThis, NULL, sizeof(PiuScrollerRecord));
467 self = PIU(Scroller, xsThis);
468 (*self)->the = the;
469 (*self)->reference = xsToReference(xsThis);
470 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuScrollerHooks);
471 (*self)->dispatch = (PiuDispatch)&PiuScrollerDispatchRecord;
472 (*self)->recordSize = PiuRecordSize(sizeof(PiuScrollerRecord));
473 (*self)->flags = piuVisible | piuContainer;
474 PiuContentDictionary(the, self);
475 PiuContainerDictionary(the, self);
476 PiuScrollerDictionary(the, self);
477 PiuBehaviorOnCreate(self);
478}
479
480void PiuScroller_get_constraint(xsMachine* the)
481{

Callers

nothing calls this directly

Calls 4

PiuContentDictionaryFunction · 0.85
PiuContainerDictionaryFunction · 0.85
PiuScrollerDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected