| 344 | } |
| 345 | |
| 346 | void PiuContentInvalidate(void* it, PiuRectangle area) |
| 347 | { |
| 348 | PiuContent* self = it; |
| 349 | if ((*self)->flags & piuVisible) { |
| 350 | PiuContainer* container = (*self)->container; |
| 351 | if (container) { |
| 352 | if (area) { |
| 353 | if (!PiuRectangleIsEmpty(area)) { |
| 354 | PiuRectangleOffset(area, (*self)->bounds.x, (*self)->bounds.y); |
| 355 | (*(*container)->dispatch->invalidate)((*self)->container, area); |
| 356 | } |
| 357 | } |
| 358 | else { |
| 359 | PiuRectangleRecord bounds; |
| 360 | PiuRectangleSet(&bounds, (*self)->bounds.x, (*self)->bounds.y, (*self)->bounds.width, (*self)->bounds.height); |
| 361 | (*(*container)->dispatch->invalidate)((*self)->container, &bounds); |
| 362 | } |
| 363 | } |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | PiuBoolean PiuContentIsShown(void* it) |
| 368 | { |
no test coverage detected