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

Allow displaying the native message dialogs. More...

#include <dialogs.hpp>

Static Public Member Functions

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

Detailed Description

Allow displaying the native message dialogs.

Member Function Documentation

◆ show() [1/4]

static void molybden::MessageDialog::show ( const std::shared_ptr< App > &  app,
const MessageDialogOptions options 
)
static

Shows an application message dialog with the given options.

Parameters
appthe application instance.
optionsthe options of the message dialog.

◆ show() [2/4]

static void molybden::MessageDialog::show ( const std::shared_ptr< App > &  app,
const MessageDialogOptions options,
const std::function< void(MessageDialogResult)> &  callback 
)
static

Shows an application message dialog with the given options.

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

◆ show() [3/4]

static void molybden::MessageDialog::show ( const std::shared_ptr< Browser > &  browser,
const MessageDialogOptions options 
)
static

Shows a browser modal message dialog with the given options.

Parameters
browserthe browser instance.
optionsthe options of the message dialog.

◆ show() [4/4]

static void molybden::MessageDialog::show ( const std::shared_ptr< Browser > &  browser,
const MessageDialogOptions options,
const std::function< void(MessageDialogResult)> &  callback 
)
static

Shows a browser modal message dialog with the given options.

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

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