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

Function PiuScrollerInvalidate

modules/piu/All/piuScroller.c:220–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void PiuScrollerInvalidate(void* it, PiuRectangle area)
221{
222 if (area) {
223 PiuScroller* self = it;
224 if ((*self)->flags & piuVisible) {
225 PiuContainer* container = (*self)->container;
226 if (container && !PiuRectangleIsEmpty(area)) {
227 PiuRectangleOffset(area, (*self)->bounds.x, (*self)->bounds.y);
228 if ((*self)->flags & piuClip)
229 PiuRectangleIntersect(area, &(*self)->bounds, area);
230 (*(*container)->dispatch->invalidate)(container, area);
231 }
232 }
233 }
234 else {
235 PiuContentInvalidate(it, area);
236 }
237}
238
239void PiuScrollerMeasureHorizontally(void* it)
240{

Callers

nothing calls this directly

Calls 4

PiuRectangleIsEmptyFunction · 0.85
PiuRectangleOffsetFunction · 0.85
PiuRectangleIntersectFunction · 0.85
PiuContentInvalidateFunction · 0.85

Tested by

no test coverage detected