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

Function PiuTextLink_create

modules/piu/All/piuText.c:281–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void PiuTextLink_create(xsMachine* the)
282{
283 PiuTextLink* self;
284 xsVars(4);
285 xsSetHostChunk(xsThis, NULL, sizeof(PiuTextLinkRecord));
286 self = PIU(TextLink, xsThis);
287 (*self)->the = the;
288 (*self)->reference = xsToReference(xsThis);
289 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuTextLinkHooks);
290 (*self)->dispatch = (PiuDispatch)&PiuTextLinkDispatchRecord;
291 (*self)->recordSize = PiuRecordSize(sizeof(PiuTextLinkRecord));
292 (*self)->flags = piuVisible | piuActive | piuExclusiveTouch;
293 PiuTextLinkDictionary(the, self);
294 PiuBehaviorOnCreate(self);
295}
296
297void PiuTextLink_get_state(xsMachine* the)
298{

Callers

nothing calls this directly

Calls 2

PiuTextLinkDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected