Unravel Engine C++ Reference
Loading...
Searching...
No Matches
imgui_messagebox.cpp File Reference
#include "imgui_messagebox.h"
#include "fonts/icons/icons_material_design_icons.h"
#include "imgui/imgui.h"
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  ImBox
 

Functions

auto ImBox::ShowInfo (const std::string &title, const std::string &message, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox >
 Show an information message box.
 
auto ImBox::ShowWarning (const std::string &title, const std::string &message, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox >
 Show a warning message box.
 
auto ImBox::ShowError (const std::string &title, const std::string &message, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox >
 Show an error message box.
 
auto ImBox::ShowSuccess (const std::string &title, const std::string &message, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox >
 Show a success message box.
 
auto ImBox::ShowQuestion (const std::string &title, const std::string &message, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox >
 Show a question message box with Yes/No buttons.
 
auto ImBox::ShowConfirmation (const std::string &title, const std::string &message, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox >
 Show a confirmation dialog with OK/Cancel buttons.
 
auto ImBox::ShowSaveConfirmation (const std::string &title, const std::string &message, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox >
 Show a save confirmation dialog with Save/Don't Save/Cancel buttons.
 
auto ImBox::ShowDeleteConfirmation (const std::string &title, const std::string &message, std::function< void(ModalResult)> callback=nullptr) -> std::shared_ptr< MsgBox >
 Show a delete confirmation dialog with Delete/Cancel buttons.
 
auto ImBox::RenderMessageBoxes () -> void
 Render all message boxes (call this in your main render loop)