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

Function PiuBehaviorOnDefaultID

modules/piu/All/piuBehavior.c:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void PiuBehaviorOnDefaultID(void* it, xsIdentifier id)
37{
38 PiuContent* content = it;
39 if ((*content)->behavior) {
40 xsBeginHost((*content)->the);
41 xsVars(2);
42 xsVar(0) = xsReference((*content)->behavior);
43 if (xsFindResult(xsVar(0), id)) {
44 xsVar(1) = xsReference((*content)->reference);
45 (void)xsCallFunction1(xsResult, xsVar(0), xsVar(1));
46 }
47 xsEndHost((*content)->the);
48 }
49}
50
51void PiuBehaviorOnDraw(void* it, PiuRectangle area)
52{

Callers 2

PiuLayoutPlaceFunction · 0.85
PiuApplicationSetFocusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected