| 69 | }; |
| 70 | |
| 71 | void PiuApplicationAdjust(PiuApplication* self) |
| 72 | { |
| 73 | #ifdef piuPC |
| 74 | if ((*self)->flags & piuMenusChanged) { |
| 75 | (*self)->flags &= ~piuMenusChanged; |
| 76 | xsBeginHost((*self)->the); |
| 77 | xsResult = xsReference((*self)->reference); |
| 78 | xsCall0(xsResult, xsID_updateMenus); |
| 79 | xsEndHost((*self)->the); |
| 80 | } |
| 81 | #endif |
| 82 | if (!((*self)->flags & piuAdjusting)) { |
| 83 | (*self)->flags |= piuAdjusting; |
| 84 | if ((*self)->flags & (piuContentsChanged | piuContentsPlaced)) { |
| 85 | while ((*self)->flags & (piuContentsChanged | piuContentsPlaced)) { |
| 86 | while ((*self)->flags & piuContentsChanged) { |
| 87 | if ((*self)->flags & piuContentsHorizontallyChanged) |
| 88 | PiuContainerAdjustHorizontally(self); |
| 89 | if ((*self)->flags & piuContentsVerticallyChanged) |
| 90 | PiuContainerAdjustVertically(self); |
| 91 | } |
| 92 | if ((*self)->flags & piuContentsPlaced) |
| 93 | PiuContainerPlace(self); |
| 94 | } |
| 95 | PiuViewAdjust((*self)->view); |
| 96 | } |
| 97 | (*self)->flags &= ~piuAdjusting; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | void PiuApplicationCaptureTouch(PiuApplication* self, PiuContent* it, xsIntegerValue index, PiuCoordinate x, PiuCoordinate y, double ticks) |
| 102 | { |
no test coverage detected