Nui
Classes | Functions
Nui::FileDialog Namespace Reference

Classes

struct  Filter
 
struct  OpenDialogOptions
 
struct  DirectoryDialogOptions
 
struct  SaveDialogOptions
 

Functions

std::optional< std::vector< std::filesystem::path > > showOpenDialog (OpenDialogOptions const &options)
 
std::optional< std::vector< std::filesystem::path > > showDirectoryDialog (DirectoryDialogOptions const &options)
 
std::optional< std::filesystem::path > showSaveDialog (SaveDialogOptions const &options)
 
void showOpenDialog (OpenDialogOptions const &options, std::function< void(std::optional< std::vector< std::filesystem::path >>)> onResult)
 
void showDirectoryDialog (DirectoryDialogOptions const &options, std::function< void(std::optional< std::vector< std::filesystem::path >>)> onResult)
 
void showSaveDialog (SaveDialogOptions const &options, std::function< void(std::optional< std::filesystem::path >)> onResult)
 
template<typename T >
void to_json_common (nlohmann::json &json, T const &options)
 
template<typename T >
void from_json_common (nlohmann::json const &json, T &options)
 
void to_json (nlohmann::json &json, OpenDialogOptions const &options)
 
void from_json (nlohmann::json const &json, OpenDialogOptions &options)
 
void to_json (nlohmann::json &json, DirectoryDialogOptions const &options)
 
void from_json (nlohmann::json const &json, DirectoryDialogOptions &options)
 
void to_json (nlohmann::json &json, SaveDialogOptions const &options)
 
void from_json (nlohmann::json const &json, SaveDialogOptions &options)
 

Function Documentation

◆ from_json() [1/3]

void Nui::FileDialog::from_json ( nlohmann::json const &  json,
DirectoryDialogOptions options 
)

◆ from_json() [2/3]

void Nui::FileDialog::from_json ( nlohmann::json const &  json,
OpenDialogOptions options 
)

◆ from_json() [3/3]

void Nui::FileDialog::from_json ( nlohmann::json const &  json,
SaveDialogOptions options 
)

◆ from_json_common()

template<typename T >
void Nui::FileDialog::from_json_common ( nlohmann::json const &  json,
T &  options 
)

◆ showDirectoryDialog() [1/2]

std::optional< std::vector< std::filesystem::path > > Nui::FileDialog::showDirectoryDialog ( DirectoryDialogOptions const &  options)

◆ showDirectoryDialog() [2/2]

void Nui::FileDialog::showDirectoryDialog ( DirectoryDialogOptions const &  options,
std::function< void(std::optional< std::vector< std::filesystem::path >>)>  onResult 
)

◆ showOpenDialog() [1/2]

std::optional< std::vector< std::filesystem::path > > Nui::FileDialog::showOpenDialog ( OpenDialogOptions const &  options)

◆ showOpenDialog() [2/2]

void Nui::FileDialog::showOpenDialog ( OpenDialogOptions const &  options,
std::function< void(std::optional< std::vector< std::filesystem::path >>)>  onResult 
)

◆ showSaveDialog() [1/2]

std::optional< std::filesystem::path > Nui::FileDialog::showSaveDialog ( SaveDialogOptions const &  options)

◆ showSaveDialog() [2/2]

void Nui::FileDialog::showSaveDialog ( SaveDialogOptions const &  options,
std::function< void(std::optional< std::filesystem::path >)>  onResult 
)

◆ to_json() [1/3]

void Nui::FileDialog::to_json ( nlohmann::json &  json,
DirectoryDialogOptions const &  options 
)

◆ to_json() [2/3]

void Nui::FileDialog::to_json ( nlohmann::json &  json,
OpenDialogOptions const &  options 
)

◆ to_json() [3/3]

void Nui::FileDialog::to_json ( nlohmann::json &  json,
SaveDialogOptions const &  options 
)

◆ to_json_common()

template<typename T >
void Nui::FileDialog::to_json_common ( nlohmann::json &  json,
T const &  options 
)