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

Method requestSizeChange

distrho/src/DistrhoUI.cpp:593–605  ·  view source on GitHub ↗

NOTE: only used for CLAP and VST3

Source from the content-addressed store, hash-verified

591
592// NOTE: only used for CLAP and VST3
593void UI::requestSizeChange(const uint width, const uint height)
594{
595 #if DISTRHO_UI_USES_SIZE_REQUEST
596 if (uiData->initializing)
597 uiData->window->setSizeFromHost(width, height);
598 else
599 uiData->setSizeCallback(width, height);
600 #else
601 // unused
602 (void)width;
603 (void)height;
604 #endif
605}
606
607// -----------------------------------------------------------------------------------------------------------
608

Callers

nothing calls this directly

Calls 2

setSizeFromHostMethod · 0.80
setSizeCallbackMethod · 0.45

Tested by

no test coverage detected