Unravel Engine C++ Reference
|
#include <functional>
#include <imgui_includes.h>
#include <string>
#include <vector>
#include <memory>
#include <chrono>
Go to the source code of this file.
Classes | |
struct | ImBox::MsgBoxConfig |
Configuration for message box appearance and behavior. More... | |
class | ImBox::MsgBox |
Individual message box instance. More... | |
class | ImBox::MsgBoxManager |
Message box manager for handling multiple popups. More... | |
Namespaces | |
namespace | ImBox |
Enumerations | |
enum | ImBox::ModalResult { ImBox::None = 0x0 , ImBox::Ok = 1 << 0 , ImBox::Cancel = 1 << 1 , ImBox::Yes = 1 << 2 , ImBox::No = 1 << 3 , ImBox::Abort = 1 << 4 , ImBox::Retry = 1 << 5 , ImBox::Ignore = 1 << 6 , ImBox::YesToAll = 1 << 7 , ImBox::NoToAll = 1 << 8 , ImBox::Apply = 1 << 9 , ImBox::Discard = 1 << 10 , ImBox::Help = 1 << 11 , ImBox::Reset = 1 << 12 , ImBox::Close = 1 << 13 , ImBox::Save = 1 << 14 , ImBox::Delete = 1 << 15 , ImBox::DontSave = 1 << 16 , ImBox::CancelDelete = 1 << 17 } |
Modal result flags for message box buttons. More... | |
enum class | ImBox::MessageType { ImBox::Info , ImBox::Warning , ImBox::Error , ImBox::Success , ImBox::Question , ImBox::Custom } |
Message box types that determine appearance and icon. More... | |
enum class | ImBox::AnimationState { ImBox::Opening , ImBox::Open , ImBox::Closing , ImBox::Closed } |
Animation state for smooth transitions. More... | |
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) | |