Luna::Window::message_box
R< MessageBoxButton > message_box(const c8 *text, const c8 *caption, MessageBoxType type, MessageBoxIcon icon=MessageBoxIcon::none)
Displays one message box dialog. The current thread blocks until the dialog is closed.
Parameters
-
in text
The UTF-8 text that will be displayed in the message box.
-
in caption
The caption (title) of the message box.
-
in type
The type of the message box,
-
in icon
The icon of the message box. Default value is MessageBoxIcon::none, which does not show any icon.
Return value
Returns the button clicked by the user.
Valid Usage
text
andcaption
must specify null-terminated strings.