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

Function PiuContentUnbind

modules/piu/All/piuContent.c:620–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620void PiuContentUnbind(void* it, PiuApplication* application, PiuView* view)
621{
622 PiuContent* self = it;
623#ifdef piuGPU
624 PiuSkin* skin = (*self)->skin;
625 if (skin)
626 PiuSkinUnbind(skin, application, view);
627#endif
628#ifdef piuPC
629 if ((*application)->hover == self)
630 (*application)->hover = NULL;
631#endif
632 if ((*application)->focus == self)
633 PiuApplicationSetFocus(application, NULL);
634 if ((*self)->flags & piuIdling)
635 PiuApplicationStopContent((*self)->application, self);
636 (*self)->application = NULL;
637}
638
639void PiuContentUpdate(void* it, PiuView* view, PiuRectangle area)
640{

Callers 15

PiuQRCodeUnbindFunction · 0.85
PiuSVGImageUnbindFunction · 0.85
PiuScreenBufferUnbindFunction · 0.85
PiuTextUnbindFunction · 0.85
PiuPortUnbindFunction · 0.85
PiuLabelUnbindFunction · 0.85
PiuContainerUnbindFunction · 0.85
PiuImageUnbindFunction · 0.85
PiuShapeUnbindFunction · 0.85
PiuGIFImageUnbindFunction · 0.85
PiuQRCodeUnbindFunction · 0.85
PiuCodeUnbindFunction · 0.85

Calls 3

PiuSkinUnbindFunction · 0.85
PiuApplicationSetFocusFunction · 0.85

Tested by

no test coverage detected