| 576 | * UI Resize Handling, internal */ |
| 577 | |
| 578 | void UI::onResize(const ResizeEvent& ev) |
| 579 | { |
| 580 | UIWidget::onResize(ev); |
| 581 | |
| 582 | #if ! DISTRHO_UI_USES_SIZE_REQUEST |
| 583 | if (uiData->initializing) |
| 584 | return; |
| 585 | |
| 586 | const uint width = ev.size.getWidth(); |
| 587 | const uint height = ev.size.getHeight(); |
| 588 | uiData->setSizeCallback(width, height); |
| 589 | #endif |
| 590 | } |
| 591 | |
| 592 | // NOTE: only used for CLAP and VST3 |
| 593 | void UI::requestSizeChange(const uint width, const uint height) |
nothing calls this directly
no test coverage detected