neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
file_dialog.hpp File Reference
#include <neogfx/neogfx.hpp>
#include <string>
#include <vector>
#include <optional>

Go to the source code of this file.

Classes

struct  neogfx::file_dialog_spec
 

Namespaces

namespace  neogfx
 

Typedefs

using neogfx::file_path = std::string
 
using neogfx::file_paths = std::vector< file_path >
 
using neogfx::optional_file_path = std::optional< file_path >
 If dialog is cancelled value is std::nullopt.
 
using neogfx::optional_file_paths = std::optional< file_paths >
 If dialog is cancelled value is std::nullopt.
 
using neogfx::filter_pattern = std::string
 
using neogfx::filter_patterns = std::vector< filter_pattern >
 

Functions

optional_file_path neogfx::save_file_dialog (file_dialog_spec const &aSpec={})
 
optional_file_paths neogfx::open_file_dialog (file_dialog_spec const &aSpec={}, bool aAllowMultipleSelection=false)
 
optional_file_path neogfx::select_folder_dialog (std::optional< std::string > const &aTitle={}, optional_file_path const &aDefaultPath={})
 
optional_file_path neogfx::save_file_dialog (i_widget &aParent, file_dialog_spec const &aSpec={})
 
optional_file_paths neogfx::open_file_dialog (i_widget &aParent, file_dialog_spec const &aSpec={}, bool aAllowMultipleSelection=false)
 
optional_file_path neogfx::select_folder_dialog (i_widget &aParent, std::optional< std::string > const &aTitle={}, optional_file_path const &aDefaultPath={})