Molybden API
Loading...
Searching...
No Matches
molybden::SaveDialog Class Reference

Allow displaying the native save file/folder dialogs. More...

#include <dialogs.hpp>

Static Public Member Functions

static void show (const std::shared_ptr< App > &app, const SaveDialogOptions &options, const std::function< void(SaveDialogResult)> &callback)
 Shows an application save dialog with the given options.
 
static void show (const std::shared_ptr< Browser > &browser, const SaveDialogOptions &options, const std::function< void(SaveDialogResult)> &callback)
 Shows a browser modal save dialog with the given options.
 

Detailed Description

Allow displaying the native save file/folder dialogs.

Member Function Documentation

◆ show() [1/2]

static void molybden::SaveDialog::show ( const std::shared_ptr< App > &  app,
const SaveDialogOptions options,
const std::function< void(SaveDialogResult)> &  callback 
)
static

Shows an application save dialog with the given options.

Parameters
appthe application instance.
optionsthe options of the save dialog.
callbackthe callback to be invoked when the dialog is closed.

◆ show() [2/2]

static void molybden::SaveDialog::show ( const std::shared_ptr< Browser > &  browser,
const SaveDialogOptions options,
const std::function< void(SaveDialogResult)> &  callback 
)
static

Shows a browser modal save dialog with the given options.

Parameters
browserthe browser instance.
optionsthe options of the save dialog.
callbackthe callback to be invoked when the dialog is closed.

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