| 515 | // file browser dialog |
| 516 | |
| 517 | bool 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 |
nothing calls this directly
no test coverage detected