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

Method openFileBrowser

dgl/src/WindowPrivateData.cpp:517–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515// file browser dialog
516
517bool Window::PrivateData::openFileBrowser(const FileBrowserOptions& options)
518{
519 if (fileBrowserHandle != nullptr)
520 fileBrowserClose(fileBrowserHandle);
521
522 FileBrowserOptions options2 = options;
523
524 if (options2.title == nullptr)
525 options2.title = puglGetViewString(view, PUGL_WINDOW_TITLE);
526
527 options2.className = puglGetViewString(view, PUGL_CLASS_NAME);
528
529 fileBrowserHandle = fileBrowserCreate(isEmbed,
530 puglGetNativeView(view),
531 autoScaling ? autoScaleFactor : scaleFactor,
532 options2);
533
534 return fileBrowserHandle != nullptr;
535}
536#endif // DGL_USE_FILE_BROWSER
537
538#ifdef DGL_USE_WEB_VIEW

Callers

nothing calls this directly

Calls 3

fileBrowserCloseFunction · 0.85
fileBrowserCreateFunction · 0.85
puglGetNativeViewFunction · 0.50

Tested by

no test coverage detected