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

Function PiuTextLink_set_state

modules/piu/All/piuText.c:303–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void PiuTextLink_set_state(xsMachine* the)
304{
305 PiuTextLink* self = PIU(TextLink, xsThis);
306 PiuState state = (PiuState)xsToNumber(xsArg(0));
307 if ((*self)->state != state) {
308 (*self)->state = state;
309 PiuContentInvalidate((*self)->container, NULL);
310 }
311}
312
313PiuTextKind PiuTextAdvance(xsMachine* the, xsSlot* string, PiuTextOffset offset, PiuTextOffset limit, PiuTextOffset *nextOffset)
314{

Callers

nothing calls this directly

Calls 1

PiuContentInvalidateFunction · 0.85

Tested by

no test coverage detected