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

Function PiuBehaviorOnCreate

modules/piu/All/piuBehavior.c:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "piuAll.h"
22
23void PiuBehaviorOnCreate(void* it)
24{
25 PiuContent* content = it;
26 if ((*content)->behavior) {
27 xsMachine* the = (*content)->the;
28 xsVar(0) = xsReference((*content)->behavior);
29 if (xsFindResult(xsVar(0), xsID_onCreate)) {
30 xsVar(1) = xsReference((*content)->reference);
31 (void)xsCallFunction3(xsResult, xsVar(0), xsVar(1), xsArg(0), xsArg(1));
32 }
33 }
34}
35
36void PiuBehaviorOnDefaultID(void* it, xsIdentifier id)
37{

Callers 15

PiuRoundRect_createFunction · 0.85
PiuQRCode_createFunction · 0.85
PiuInverter_createFunction · 0.85
PiuSVGImage_createFunction · 0.85
PiuScreenBuffer_createFunction · 0.85
PiuTextLink_createFunction · 0.85
PiuText_createFunction · 0.85
PiuScroller_createFunction · 0.85
PiuLayout_createFunction · 0.85
PiuPort_createFunction · 0.85
PiuLabel_createFunction · 0.85
PiuRow_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected