class
CArcModalStack
- Module
- Arc
- Header
#include "Arc/Framework/CArcPopupSystems.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
CArcModalStack& | Get | |
void | PushModal | |
void | PopModal | |
void | ShowDialog | 30px header, wrapped body, footer with right-aligned role-styled buttons, per the "Dialog" entry in arc-style.json. |
void | CloseTop | Close the top modal as if buttonIndex was clicked (-1 = dismissed). |
int32_t | GetPrimaryButtonIndex | Index of the top modal's Primary-role button (Enter target), -1 if none. |
int32_t | GetCancelButtonIndex | Index of the top modal's Cancel-role button (Escape target), -1 if none. |
bool | HasModals | |
size_t | GetModalCount | |
const CModalRequest* | GetTopModal | |
const std::vector<CModalRequest>& | GetStack | |
FDialogHotState& | GetHotState | |
void | Reset | Ordered shutdown hook — see CArcWidgetReflectorManager::Reset. |
void | ShowMessageBox |
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() constIndex of the top modal's Primary-role button (Enter target), -1 if none.
GetCancelButtonIndex
C++
int32_t GetCancelButtonIndex() constIndex of the top modal's Cancel-role button (Escape target), -1 if none.
HasModals
C++
bool HasModals() constGetModalCount
C++
size_t GetModalCount() constGetTopModal
C++
const CModalRequest* GetTopModal() constGetStack
C++
const std::vector<CModalRequest>& GetStack() constGetHotState
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