![]() |
Lysa UI
0.0
Lysa UI —UI components for the Lysa Engine
|
A native modal asynchronous dialog opening a file or a directory.
Classes | |
| struct | Filter |
Public Typedefs | |
| using | SelectCallback = std::function< void (const std::string &path)> |
Static Public Member Functions | |
| static void | openFile (const RenderingWindow &parent, const SelectCallback &callback, const std::vector< Filter > &filters={}, const std::string &defaultLocation="") |
| static void | openDirectory (const RenderingWindow &parent, const SelectCallback &callback, const std::string &defaultLocation="") |
| using SelectCallback = std::function<void(const std::string& path)> |
Callback called with the selected file or directory, or with an empty string if the user cancelled the dialog or if the dialog can't be displayed.
|
static |
Displays a dialog selecting an existing directory.
| parent | Window the dialog is modal to. |
| callback | Called with the selected directory. |
| defaultLocation | Directory initially displayed. |
|
static |
Displays a dialog selecting an existing file.
| parent | Window the dialog is modal to. |
| callback | Called with the selected file. |
| filters | Types of file displayed by the dialog, all the files if empty. |
| defaultLocation | Directory or file initially displayed. |