Lightweight wrapper around Native File Dialog operations.
More...
#include <Gui.h>
|
| | FileDialog (const char *filterList=nullptr, const char *defaultPath=nullptr) |
| | Creates a file dialog helper with optional filter and start path.
|
| std::filesystem::path | Open () const |
| | Opens a single-file picker dialog.
|
| std::filesystem::path | Save () const |
| | Opens a save-file dialog.
|
| std::vector< std::filesystem::path > | OpenMultiple () const |
| | Opens a multi-select file picker dialog.
|
| std::filesystem::path | Dir () const |
| | Opens a directory picker dialog.
|
Lightweight wrapper around Native File Dialog operations.
◆ FileDialog()
| FileDialog::FileDialog |
( |
const char * | filterList = nullptr, |
|
|
const char * | defaultPath = nullptr ) |
|
inline |
Creates a file dialog helper with optional filter and start path.
- Parameters
-
| filterList | Native File Dialog filter list. |
| defaultPath | Initial directory or path hint. |
◆ Dir()
| std::filesystem::path FileDialog::Dir |
( |
| ) |
const |
|
inlinenodiscard |
Opens a directory picker dialog.
- Returns
- Selected directory path, or an empty path if cancelled.
◆ Open()
| std::filesystem::path FileDialog::Open |
( |
| ) |
const |
|
inlinenodiscard |
Opens a single-file picker dialog.
- Returns
- Selected file path, or an empty path if cancelled.
◆ OpenMultiple()
| std::vector< std::filesystem::path > FileDialog::OpenMultiple |
( |
| ) |
const |
|
inlinenodiscard |
Opens a multi-select file picker dialog.
- Returns
- All selected file paths, or an empty list if cancelled.
◆ Save()
| std::filesystem::path FileDialog::Save |
( |
| ) |
const |
|
inlinenodiscard |
Opens a save-file dialog.
- Returns
- Selected output path, or an empty path if cancelled.
◆ m_DefaultPath
| const char* FileDialog::m_DefaultPath |
|
private |
◆ m_FilterList
| const char* FileDialog::m_FilterList |
|
private |
The documentation for this class was generated from the following file: