class

CArcModalStack

Module
Arc
Header
#include "Arc/Framework/CArcPopupSystems.h"
Namespace
Arcf

Public functions

ReturnsNameDescription
CArcModalStack&Get
voidPushModal
voidPopModal
voidShowDialog30px header, wrapped body, footer with right-aligned role-styled buttons, per the "Dialog" entry in arc-style.json.
voidCloseTopClose the top modal as if buttonIndex was clicked (-1 = dismissed).
int32_tGetPrimaryButtonIndexIndex of the top modal's Primary-role button (Enter target), -1 if none.
int32_tGetCancelButtonIndexIndex of the top modal's Cancel-role button (Escape target), -1 if none.
boolHasModals
size_tGetModalCount
const CModalRequest*GetTopModal
const std::vector<CModalRequest>&GetStack
FDialogHotState&GetHotState
voidResetOrdered shutdown hook — see CArcWidgetReflectorManager::Reset.
voidShowMessageBox

Function details

Get

C++
static CArcModalStack& Get()

PushModal

C++
void PushModal(const CModalRequest& request)

PopModal

C++
void PopModal(EModalResult result = EModalResult::Cancel)

ShowDialog

C++
void ShowDialog(const FArcDialogDesc& desc)

30px header, wrapped body, footer with right-aligned role-styled buttons, per the "Dialog" entry in arc-style.json.

CloseTop

C++
void CloseTop(int32_t buttonIndex)

Close the top modal as if buttonIndex was clicked (-1 = dismissed). Fires OnResult(buttonIndex) and the legacy OnClosed(EModalResult).

GetPrimaryButtonIndex

C++
int32_t GetPrimaryButtonIndex() const

Index of the top modal's Primary-role button (Enter target), -1 if none.

GetCancelButtonIndex

C++
int32_t GetCancelButtonIndex() const

Index of the top modal's Cancel-role button (Escape target), -1 if none.

HasModals

C++
bool HasModals() const

GetModalCount

C++
size_t GetModalCount() const

GetTopModal

C++
const CModalRequest* GetTopModal() const

GetStack

C++
const std::vector<CModalRequest>& GetStack() const

GetHotState

C++
FDialogHotState& GetHotState()

Reset

C++
void Reset()

Ordered shutdown hook — see CArcWidgetReflectorManager::Reset.

ShowMessageBox

C++
static void ShowMessageBox(const CText& title, const CText& message, std::function<void(EModalResult)> onClosed = nullptr)
Generated from Arc/Framework/CArcPopupSystems.h via arc.json · Nov 5, 2026Version 1.0.0