GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
SimpleMessageBox.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Ivar Härnqvist
2// SPDX-License-Identifier: MIT
3
4#ifndef GREM_EVENTS_SIMPLE_MESSAGE_BOX_HPP
5#define GREM_EVENTS_SIMPLE_MESSAGE_BOX_HPP
6
8
10
11namespace grem::events {
12
21
27public:
42 GREM_API(events) static void show(MessageType type, CStringView title, CStringView message);
43
45 SimpleMessageBox() = delete;
46};
47
48} // namespace grem::events
49
50#endif
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.
SimpleMessageBox()=delete
Message box objects are not intended to be constructed directly.
Definition controller.hpp:11
MessageType
Type of message contained in a message box.
Definition SimpleMessageBox.hpp:16
@ WARNING_MESSAGE
Warns the user about a potential error.
Definition SimpleMessageBox.hpp:18
@ ERROR_MESSAGE
Indicates that an error occured.
Definition SimpleMessageBox.hpp:17
@ INFO_MESSAGE
Provides general information.
Definition SimpleMessageBox.hpp:19
CStringViewBase< char, std::char_traits< char > > CStringView
Definition CStringView.hpp:635