#include <MessageBox.h>
|
static MessageBoxResult | info (const std::string &sTitle, const std::string &sText, MessageBoxChoice buttons=MessageBoxChoice::OK) |
|
static MessageBoxResult | question (const std::string &sTitle, const std::string &sText, MessageBoxChoice buttons=MessageBoxChoice::OK) |
|
static MessageBoxResult | warning (const std::string &sTitle, const std::string &sText, MessageBoxChoice buttons=MessageBoxChoice::OK) |
|
static MessageBoxResult | error (const std::string &sTitle, const std::string &sText, MessageBoxChoice buttons=MessageBoxChoice::OK) |
|
Message box notification.
◆ error()
MessageBoxResult ne::MessageBox::error |
( |
const std::string & |
sTitle, |
|
|
const std::string & |
sText, |
|
|
MessageBoxChoice |
buttons = MessageBoxChoice::OK |
|
) |
| |
|
static |
Show an error message box.
- Parameters
-
sTitle | Title of the message box. |
sText | Text (content) of the message box. |
buttons | Available buttons for this message box. |
- Returns
- Button that the user pressed.
- Note
- This function blocks the current thread until a button is pressed.
◆ info()
MessageBoxResult ne::MessageBox::info |
( |
const std::string & |
sTitle, |
|
|
const std::string & |
sText, |
|
|
MessageBoxChoice |
buttons = MessageBoxChoice::OK |
|
) |
| |
|
static |
Show an information message box.
- Parameters
-
sTitle | Title of the message box. |
sText | Text (content) of the message box. |
buttons | Available buttons for this message box. |
- Returns
- Button that the user pressed.
- Note
- This function blocks the current thread until a button is pressed.
◆ question()
MessageBoxResult ne::MessageBox::question |
( |
const std::string & |
sTitle, |
|
|
const std::string & |
sText, |
|
|
MessageBoxChoice |
buttons = MessageBoxChoice::OK |
|
) |
| |
|
static |
Show a question message box.
- Parameters
-
sTitle | Title of the message box. |
sText | Text (content) of the message box. |
buttons | Available buttons for this message box. |
- Returns
- Button that the user pressed.
- Note
- This function blocks the current thread until a button is pressed.
◆ warning()
MessageBoxResult ne::MessageBox::warning |
( |
const std::string & |
sTitle, |
|
|
const std::string & |
sText, |
|
|
MessageBoxChoice |
buttons = MessageBoxChoice::OK |
|
) |
| |
|
static |
Show a warning message box.
- Parameters
-
sTitle | Title of the message box. |
sText | Text (content) of the message box. |
buttons | Available buttons for this message box. |
- Returns
- Button that the user pressed.
- Note
- This function blocks the current thread until a button is pressed.
The documentation for this class was generated from the following files:
- src/engine_lib/public/misc/MessageBox.h
- src/engine_lib/private/misc/MessageBox.cpp