MCPcopy Create free account
hub / github.com/DISTRHO/DPF / onResize

Method onResize

distrho/src/DistrhoUI.cpp:578–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576 * UI Resize Handling, internal */
577
578void 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
593void UI::requestSizeChange(const uint width, const uint height)

Callers

nothing calls this directly

Calls 4

onResizeFunction · 0.50
getWidthMethod · 0.45
getHeightMethod · 0.45
setSizeCallbackMethod · 0.45

Tested by

no test coverage detected