Nameless Engine
Loading...
Searching...
No Matches
ne::MessageBox Class Reference

#include <MessageBox.h>

Static Public Member Functions

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)
 

Detailed Description

Message box notification.

Member Function Documentation

◆ error()

MessageBoxResult ne::MessageBox::error ( const std::string &  sTitle,
const std::string &  sText,
MessageBoxChoice  buttons = MessageBoxChoice::OK 
)
static

Show an error message box.

Parameters
sTitleTitle of the message box.
sTextText (content) of the message box.
buttonsAvailable 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
sTitleTitle of the message box.
sTextText (content) of the message box.
buttonsAvailable 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
sTitleTitle of the message box.
sTextText (content) of the message box.
buttonsAvailable 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
sTitleTitle of the message box.
sTextText (content) of the message box.
buttonsAvailable 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: