libdonut 2.3.6
Application framework for cross-platform game development in C++20
Loading...
Searching...
No Matches
MessageBox.hpp
Go to the documentation of this file.
1#ifndef DONUT_EVENTS_MESSAGE_BOX_HPP
2#define DONUT_EVENTS_MESSAGE_BOX_HPP
3
4namespace donut::events {
5
11public:
15 enum class Type {
19 };
20
35 static void show(Type type, const char* title, const char* message);
36
38 MessageBox() = delete;
39};
40
41} // namespace donut::events
42
43#endif
Utility class for simple message boxes to be delivered to the user through the host environment.
Definition MessageBox.hpp:10
Type
Type of message contained in a message box.
Definition MessageBox.hpp:15
@ WARNING_MESSAGE
Warns the user about a potential error.
@ ERROR_MESSAGE
Indicates that an error occured.
@ INFO_MESSAGE
Provides general information.
static void show(Type type, const char *title, const char *message)
Display a simple message box that blocks execution on the current thread until the user presses OK.
MessageBox()=delete
Message box objects are not intended to be constructed directly.
Definition Error.hpp:7