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

Method setSizeFromHost

distrho/src/DistrhoPluginCLAP.cpp:393–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391 }
392
393 bool setSizeFromHost(uint32_t width, uint32_t height)
394 {
395 if (UIExporter* const ui = fUI.get())
396 {
397 #ifdef DISTRHO_OS_MAC
398 const double scaleFactor = ui->getScaleFactor();
399 width *= scaleFactor;
400 height *= scaleFactor;
401 #endif
402 ui->setWindowSizeFromHost(width, height);
403 return true;
404 }
405
406 return false;
407 }
408
409 bool setParent(const clap_window_t* const window)
410 {

Callers 3

setWindowSizeFromHostFunction · 0.80
clap_gui_set_sizeFunction · 0.80
requestSizeChangeMethod · 0.80

Calls 1

getScaleFactorMethod · 0.45

Tested by

no test coverage detected