| 637 | } |
| 638 | |
| 639 | void PiuContentUpdate(void* it, PiuView* view, PiuRectangle area) |
| 640 | { |
| 641 | PiuContent* self = it; |
| 642 | PiuRectangle bounds = &((*self)->bounds); |
| 643 | if (((*self)->flags & piuVisible) && PiuRectangleIntersects(bounds, area)) { |
| 644 | PiuCoordinate x = bounds->x; |
| 645 | PiuCoordinate y = bounds->y; |
| 646 | PiuViewPushOrigin(view, x, y); |
| 647 | PiuRectangleOffset(area, -x, -y); |
| 648 | (*(*self)->dispatch->draw)(self, view, area); |
| 649 | PiuRectangleOffset(area, x, y); |
| 650 | PiuViewPopOrigin(view); |
| 651 | } |
| 652 | } |
| 653 | |
| 654 | PiuIdle PiuContentUseIdle(void* it) |
| 655 | { |
nothing calls this directly
no test coverage detected