Unravel Engine C++ Reference
|
Message box manager for handling multiple popups. More...
#include <imgui_messagebox.h>
Public Member Functions | |
auto | ShowMessageBox (const std::string &title, const std::string &message, int buttons=ModalResult::Ok, const MsgBoxConfig &config=MsgBoxConfig{}, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox > |
Create and show a message box. | |
auto | RenderAll () -> void |
Render all active message boxes. | |
auto | CloseAll () -> void |
Close all message boxes. | |
auto | GetActiveCount () const -> size_t |
Get count of active message boxes. | |
Static Public Member Functions | |
static auto | GetInstance () -> MsgBoxManager & |
Get the singleton instance. | |
Message box manager for handling multiple popups.
Definition at line 129 of file imgui_messagebox.h.
auto ImBox::MsgBoxManager::CloseAll | ( | ) | -> void |
Close all message boxes.
Definition at line 414 of file imgui_messagebox.cpp.
|
inline |
Get count of active message boxes.
Definition at line 150 of file imgui_messagebox.h.
|
static |
Get the singleton instance.
Definition at line 383 of file imgui_messagebox.cpp.
auto ImBox::MsgBoxManager::RenderAll | ( | ) | -> void |
Render all active message boxes.
Definition at line 402 of file imgui_messagebox.cpp.
auto ImBox::MsgBoxManager::ShowMessageBox | ( | const std::string & | title, |
const std::string & | message, | ||
int | buttons = ModalResult::Ok, | ||
const MsgBoxConfig & | config = MsgBoxConfig{}, | ||
std::function< void(ModalResult)> | callback = nullptr ) -> std::shared_ptr<MsgBox> |
Create and show a message box.
Definition at line 389 of file imgui_messagebox.cpp.