|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include "cdc_views/ToastView.h"#include "cdc_views/KeyCodes.h"#include "cdc_views/RenderHelpers.h"#include "cdc_ui/ViewStack.h"#include "cdc_hal/IDisplay.h"#include <goodisplay/gdey029T94.h>#include <cstring>#include "esp_timer.h"Go to the source code of this file.
Namespaces | |
| namespace | cdc |
| namespace | cdc::ui |
| Centralized key-code constants for cdc_views. | |
Functions | |
| static void | cdc::ui::showToastInternal (const char *message, ToastView::Icon icon, uint16_t durationMs, bool dismissible=true) |
| Shows the shared toast instance with custom icon and behavior. | |
| void | cdc::ui::showToast (const char *message, uint16_t durationMs) |
| Shows a plain toast message. | |
| void | cdc::ui::showToastSuccess (const char *message, uint16_t durationMs) |
| Shows a success toast message. | |
| void | cdc::ui::showToastError (const char *message, uint16_t durationMs) |
| Shows an error toast message. | |
| void | cdc::ui::showToastInfo (const char *message, uint16_t durationMs) |
| Shows an informational toast message. | |
| void | cdc::ui::showToastTask (const char *message, uint16_t durationMs) |
| Shows a task/progress toast message. | |
| void | cdc::ui::showToastAlert (const char *message, uint16_t durationMs) |
| Shows an alert toast message. | |
| void | cdc::ui::showToastAlertSticky (const char *message) |
| Shows a non-dismissible alert toast. | |
Variables | |
| static ToastView | cdc::ui::s_sharedToast |
| Convenience helper functions. | |