|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include "cdc_views/InfoView.h"#include "cdc_views/KeyCodes.h"#include "cdc_views/LayoutConstants.h"#include "cdc_views/RenderHelpers.h"#include "cdc_ui/ViewStack.h"#include "cdc_ui/I18n.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 | |
| InfoView * | cdc::ui::showInfo (const char *title, const char *text, const char *hint) |
| Shows a shared info view instance and pushes it onto the view stack. | |
Variables | |
| static const char * | TAG = "InfoView" |
| static constexpr int | TITLE_Y = 5 |
| View-local layout constants. | |
| static constexpr int | TEXT_START_Y = 28 |
| static constexpr int | TEXT_MARGIN = 8 |
| static InfoView | cdc::ui::s_sharedInfoView |
| Convenience factory/helper function. | |
| constexpr int | FOOTER_HEIGHT |
| Footer bar height in pixels (used by drawFooterBar). | |
| constexpr int | SCROLL_INDICATOR_WIDTH |
| Scroll indicator column width in pixels. | |
|
constexpr |
Footer bar height in pixels (used by drawFooterBar).
Definition at line 21 of file LayoutConstants.h.
Referenced by cdc::ui::InfoView::render().
|
constexpr |
Scroll indicator column width in pixels.
Definition at line 26 of file LayoutConstants.h.
Referenced by cdc::ui::InfoView::render(), and cdc::ui::ListView::render().
|
static |
InfoView Implementation
Scrollable text display for help screens, about pages, etc.
Definition at line 18 of file InfoView.cpp.
|
staticconstexpr |
Definition at line 28 of file InfoView.cpp.
|
staticconstexpr |
Definition at line 27 of file InfoView.cpp.
Referenced by cdc::ui::InfoView::render().
|
staticconstexpr |
View-local layout constants.
Shared values (FOOTER_HEIGHT, SCROLL_INDICATOR_WIDTH) come from cdc::ui::layout in LayoutConstants.h.
Definition at line 26 of file InfoView.cpp.