|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include "cdc_views/MessageBox.h"#include "cdc_views/KeyCodes.h"#include "cdc_views/RenderHelpers.h"#include "cdc_ui/ViewStack.h"#include "cdc_hal/IDisplay.h"#include "cdc_log.h"#include <goodisplay/gdey029T94.h>#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | cdc |
| namespace | cdc::ui |
| Centralized key-code constants for cdc_views. | |
Functions | |
| void | cdc::ui::showMessage (const char *message, MessageIcon icon, uint32_t timeoutMs, MessageBox::CloseCallback onClose) |
| Shows the shared modal message box. | |
| void | cdc::ui::hideMessage () |
| Hides the currently shown modal message box. | |
Variables | |
| static const char * | TAG = "MessageBox" |
| static constexpr int | BOX_PADDING = 12 |
| Display layout constants. | |
| static constexpr int | ICON_SIZE = 16 |
| static constexpr int | ICON_MARGIN = 8 |
| static constexpr int | MIN_BOX_WIDTH = 120 |
| static constexpr int | MAX_BOX_WIDTH = 260 |
| static MessageBox | cdc::ui::s_sharedMessageBox |
| Convenience helper functions. | |
|
staticconstexpr |
Display layout constants.
Definition at line 22 of file MessageBox.cpp.
|
staticconstexpr |
Definition at line 24 of file MessageBox.cpp.
Referenced by cdc::ui::MessageBox::render().
|
staticconstexpr |
Definition at line 23 of file MessageBox.cpp.
Referenced by cdc::ui::MessageBox::render().
|
staticconstexpr |
Definition at line 26 of file MessageBox.cpp.
|
staticconstexpr |
Definition at line 25 of file MessageBox.cpp.
|
static |
MessageBox Implementation
System feedback overlay with optional icon and auto-dismiss. Rendered as modal over the current view.
Definition at line 17 of file MessageBox.cpp.