Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::FileDialogs Class Reference

Cross-platform file dialog utilities. More...

#include <PlatformUtils.h>

Static Public Member Functions

static std::string OpenFile (const char *filter)
 Opens a file dialog to select a file to open.
 
static std::string SaveFile (const char *filter)
 Opens a file dialog to select a location to save a file.
 

Detailed Description

Cross-platform file dialog utilities.

Member Function Documentation

◆ OpenFile()

std::string Muto::FileDialogs::OpenFile ( const char *  filter)
static

Opens a file dialog to select a file to open.

Parameters
filterThe file type filter for the dialog.
Returns
The selected file path or an empty string if cancelled.
161 {
162 return RunDialog(false, filter);
163 }
constexpr Scope< T > CreateScope(Args &&... args)
Creates a Scope (unique_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:51

Referenced by Muto::SceneHierarchyPanel::DrawComponents(), and Muto::EditorLayer::OpenScene().

◆ SaveFile()

std::string Muto::FileDialogs::SaveFile ( const char *  filter)
static

Opens a file dialog to select a location to save a file.

Parameters
filterThe file type filter for the dialog.
Returns
The selected file path or an empty string if cancelled.
166 {
167 return RunDialog(true, filter);
168 }

Referenced by Muto::EditorLayer::SaveSceneAs().


The documentation for this class was generated from the following files: