GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::events::SimpleMessageBox Class Reference

Utility class for simple message boxes with an OK button to be shown to the user through the host environment. More...

#include <GREM/events/SimpleMessageBox.hpp>

Public Member Functions

 SimpleMessageBox ()=delete
 Message box objects are not intended to be constructed directly.

Static Public Member Functions

static void show (MessageType type, CStringView title, CStringView message)
 Display a simple message box that blocks execution on the current thread until the user presses OK.

Detailed Description

Utility class for simple message boxes with an OK button to be shown to the user through the host environment.

Constructor & Destructor Documentation

◆ SimpleMessageBox()

grem::events::SimpleMessageBox::SimpleMessageBox ( )
delete

Message box objects are not intended to be constructed directly.

Member Function Documentation

◆ show()

void grem::events::SimpleMessageBox::show ( MessageType type,
CStringView title,
CStringView message )
static

Display a simple message box that blocks execution on the current thread until the user presses OK.

Parameters
typetype of message shown in the box. This may be reflected in the styling of the box.
titlewindow title of the message box.
messagemain message to show in the box.
Exceptions
events::Erroron failure to show the message box.
std::length_errorif an internal size limit was exceeded.
std::bad_array_new_lengthif an internal size limit was exceeded.
std::bad_allocon allocation failure.

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