|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Portal::System::Dialog::open_file | ( | ChooserCallback | callback, |
| std::vector< ChooserFilter > | filters = {}, |
||
| std::filesystem::path | start_dir = {} |
||
| ) |
Present a native open-file dialog, delivering the result via callback.
Primitive overload. The callback receives a ChooserResult and is responsible for checking and unwrapping it. Invoked exactly once on the platform backend thread; callers that need thread affinity must marshal the result themselves.
| callback | Invoked with the chosen path or a SystemDialogError. |
| filters | Extension filter groups shown in the dialog. |
| start_dir | Directory the dialog opens in. Platform default if empty. |
Definition at line 8 of file Chooser.cpp.
References MayaFlux::Journal::API, MayaFlux::Core::BackendError, MayaFlux::Portal::System::get_backend(), MF_ERROR, and MayaFlux::Journal::Portal.
Here is the call graph for this function: