2 #ifndef ENIGMA_MESSAGE_BOX_H
3 #define ENIGMA_MESSAGE_BOX_H
6 #include <portable-file-dialogs.h>
9 #if defined(ENIGMA_PLATFORM_WINDOWS)
22 enum class Icon : std::uint8_t {
23 Info =
static_cast<std::uint8_t
>(pfd::icon::info),
24 Warning =
static_cast<std::uint8_t
>(pfd::icon::warning),
25 Error =
static_cast<std::uint8_t
>(pfd::icon::error),
26 Question =
static_cast<std::uint8_t
>(pfd::icon::question)
33 Ok =
static_cast<std::uint8_t
>(pfd::choice::ok),
34 Ok_Cancel =
static_cast<std::uint8_t
>(pfd::choice::ok_cancel),
35 Yes_No =
static_cast<std::uint8_t
>(pfd::choice::yes_no),
36 Yes_No_Cancel =
static_cast<std::uint8_t
>(pfd::choice::yes_no_cancel),
37 Retry_Cancel =
static_cast<std::uint8_t
>(pfd::choice::retry_cancel),
45 Cancel =
static_cast<std::int8_t
>(pfd::button::cancel),
46 Ok =
static_cast<std::int8_t
>(pfd::button::ok),
47 Yes =
static_cast<std::int8_t
>(pfd::button::yes),
48 No =
static_cast<std::int8_t
>(pfd::button::no),
49 Abort =
static_cast<std::int8_t
>(pfd::button::abort),
50 Retry =
static_cast<std::int8_t
>(pfd::button::retry),
51 Ignore =
static_cast<std::int8_t
>(pfd::button::ignore)
62 MessageBox(
const std::string& title,
const std::string& message,
75 std::
string m_message;
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
~MessageBox() noexcept=default
MessageBox::Action Show() const
MessageBox(const std::string &title, const std::string &message, Icon icon=Icon::Info, Choice choice=Choice::Ok_Cancel)