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

Method setScaleFactor

distrho/src/DistrhoPluginCLAP.cpp:252–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250
251 #ifndef DISTRHO_OS_MAC
252 bool setScaleFactor(const double scaleFactor)
253 {
254 if (d_isEqual(fScaleFactor, scaleFactor))
255 return true;
256
257 fScaleFactor = scaleFactor;
258
259 if (UIExporter* const ui = fUI.get())
260 ui->notifyScaleFactorChanged(scaleFactor);
261
262 return true;
263 }
264 #endif
265
266 bool getSize(uint32_t* const width, uint32_t* const height) const

Callers 1

clap_gui_set_scaleFunction · 0.80

Calls 2

d_isEqualFunction · 0.85

Tested by

no test coverage detected