Unravel Engine C++ Reference
Loading...
Searching...
No Matches
ImBox::MsgBoxManager Class 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.
 

Detailed Description

Message box manager for handling multiple popups.

Definition at line 129 of file imgui_messagebox.h.

Member Function Documentation

◆ CloseAll()

auto ImBox::MsgBoxManager::CloseAll ( ) -> void

Close all message boxes.

Definition at line 414 of file imgui_messagebox.cpp.

◆ GetActiveCount()

auto ImBox::MsgBoxManager::GetActiveCount ( ) const -> size_t
inline

Get count of active message boxes.

Definition at line 150 of file imgui_messagebox.h.

◆ GetInstance()

auto ImBox::MsgBoxManager::GetInstance ( ) -> MsgBoxManager&
static

Get the singleton instance.

Definition at line 383 of file imgui_messagebox.cpp.

◆ RenderAll()

auto ImBox::MsgBoxManager::RenderAll ( ) -> void

Render all active message boxes.

Definition at line 402 of file imgui_messagebox.cpp.

◆ ShowMessageBox()

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.


The documentation for this class was generated from the following files: