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

Method runAsModal

dgl/src/WindowPrivateData.cpp:620–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620void Window::PrivateData::runAsModal(const bool blockWait)
621{
622 DGL_DBGp("Window::PrivateData::runAsModal %i\n", blockWait);
623 startModal();
624
625 if (blockWait)
626 {
627 DISTRHO_SAFE_ASSERT_RETURN(appData->isStandalone,);
628
629 while (isVisible && modal.enabled)
630 appData->idle(10);
631
632 stopModal();
633 }
634 else
635 {
636 appData->idle(0);
637 }
638}
639
640// -----------------------------------------------------------------------
641// pugl events

Callers

nothing calls this directly

Calls 1

idleMethod · 0.45

Tested by

no test coverage detected