| 241 | } |
| 242 | |
| 243 | void PiuApplicationResize(PiuApplication* self) |
| 244 | { |
| 245 | PiuView* view = (*self)->view; |
| 246 | PiuDimension width, height; |
| 247 | PiuViewInvalidate(view, NULL); |
| 248 | PiuViewGetSize(view, &width, &height); |
| 249 | (*self)->coordinates.horizontal = piuWidth; |
| 250 | (*self)->coordinates.left = (*self)->coordinates.right = (*self)->bounds.x = 0; |
| 251 | (*self)->coordinates.width = (*self)->bounds.width = width; |
| 252 | (*self)->coordinates.vertical = piuHeight; |
| 253 | (*self)->coordinates.top = (*self)->coordinates.bottom = (*self)->bounds.y = 0; |
| 254 | (*self)->coordinates.height = (*self)->bounds.height = height; |
| 255 | (*self)->flags |= piuAdjusting; |
| 256 | PiuContainerMeasureHorizontally(self); |
| 257 | PiuContainerFitHorizontally(self); |
| 258 | PiuContainerMeasureVertically(self); |
| 259 | PiuContainerFitVertically(self); |
| 260 | (*self)->flags &= ~piuAdjusting; |
| 261 | PiuViewReflow(view); |
| 262 | } |
| 263 | |
| 264 | void PiuApplicationSetFocus(PiuApplication* self, void* it) |
| 265 | { |
no test coverage detected