| 676 | |
| 677 | #ifndef DPF_TEST_WINDOW_CPP |
| 678 | FOR_EACH_TOP_LEVEL_WIDGET(it) |
| 679 | { |
| 680 | TopLevelWidget* const widget = *it; |
| 681 | |
| 682 | /* Some special care here, we call Widget::setSize instead of the TopLevelWidget one. |
| 683 | * This is because we want TopLevelWidget::setSize to handle both window and widget size, |
| 684 | * but we dont want to change window size here, because we are the window.. |
| 685 | * So we just call the Widget specific method manually. |
| 686 | * |
| 687 | * Alternatively, we could expose a resize function on the pData, like done with the display function. |
| 688 | * But there is nothing extra we need to do in there, so this works fine. |
| 689 | */ |
| 690 | ((Widget*)widget)->setSize(uwidth, uheight); |
| 691 | } |
| 692 | #endif |
| 693 | |
| 694 | // always repaint after a resize |