Unravel Engine C++ Reference
|
Individual message box instance. More...
#include <imgui_messagebox.h>
Public Member Functions | |
MsgBox (const std::string &title, const std::string &message, int buttons, const MsgBoxConfig &config=MsgBoxConfig{}) | |
Constructor with configuration. | |
~MsgBox () | |
Destructor. | |
auto | OpenPopup (std::function< void(ModalResult)> callback) -> void |
Open the popup with callback. | |
auto | Draw () -> bool |
Draw the message box (returns true if still open) | |
auto | IsOpen () const -> bool |
Check if the message box is open. | |
auto | SetCustomIcon (const char *icon) -> void |
Set custom icon (overrides type-based icon) | |
Individual message box instance.
Definition at line 70 of file imgui_messagebox.h.
ImBox::MsgBox::MsgBox | ( | const std::string & | title, |
const std::string & | message, | ||
int | buttons, | ||
const MsgBoxConfig & | config = MsgBoxConfig{} ) |
Constructor with configuration.
Definition at line 12 of file imgui_messagebox.cpp.
|
default |
Destructor.
auto ImBox::MsgBox::Draw | ( | ) | -> bool |
Draw the message box (returns true if still open)
Definition at line 36 of file imgui_messagebox.cpp.
|
inline |
Check if the message box is open.
Definition at line 87 of file imgui_messagebox.h.
auto ImBox::MsgBox::OpenPopup | ( | std::function< void(ModalResult)> | callback | ) | -> void |
Open the popup with callback.
Definition at line 27 of file imgui_messagebox.cpp.
|
inline |
Set custom icon (overrides type-based icon)
Definition at line 91 of file imgui_messagebox.h.