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

Detailed Description

Individual message box instance.

Definition at line 70 of file imgui_messagebox.h.

Constructor & Destructor Documentation

◆ MsgBox()

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.

◆ ~MsgBox()

ImBox::MsgBox::~MsgBox ( )
default

Destructor.

Member Function Documentation

◆ Draw()

auto ImBox::MsgBox::Draw ( ) -> bool

Draw the message box (returns true if still open)

Definition at line 36 of file imgui_messagebox.cpp.

◆ IsOpen()

auto ImBox::MsgBox::IsOpen ( ) const -> bool
inline

Check if the message box is open.

Definition at line 87 of file imgui_messagebox.h.

◆ OpenPopup()

auto ImBox::MsgBox::OpenPopup ( std::function< void(ModalResult)> callback) -> void

Open the popup with callback.

Definition at line 27 of file imgui_messagebox.cpp.

◆ SetCustomIcon()

auto ImBox::MsgBox::SetCustomIcon ( const char * icon) -> void
inline

Set custom icon (overrides type-based icon)

Definition at line 91 of file imgui_messagebox.h.


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