| 218 | } |
| 219 | |
| 220 | void 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 | |
| 239 | void PiuScrollerMeasureHorizontally(void* it) |
| 240 | { |
nothing calls this directly
no test coverage detected