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

Function createAndShowExampleWidgetStandaloneWindow

tests/Demo.cpp:384–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382
383template <class ExampleWidgetStandaloneWindow>
384void createAndShowExampleWidgetStandaloneWindow(Application& app)
385{
386 ExampleWidgetStandaloneWindow swin(app);
387 const double scaleFactor = swin.getScaleFactor();
388 swin.setGeometryConstraints(128 * scaleFactor, 128 * scaleFactor);
389 swin.setResizable(true);
390 swin.setSize(600 * scaleFactor, 500 * scaleFactor);
391 swin.setTitle(ExampleWidgetStandaloneWindow::kExampleWidgetName);
392 swin.show();
393 app.exec();
394}
395
396// --------------------------------------------------------------------------------------------------------------------
397

Callers

nothing calls this directly

Calls 7

setTitleMethod · 0.80
execMethod · 0.80
getScaleFactorMethod · 0.45
setResizableMethod · 0.45
setSizeMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected