CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::ui::layout Namespace Reference

Centralized layout constants for cdc_views. More...

Variables

constexpr int FOOTER_HEIGHT = 16
 Footer bar height in pixels (used by drawFooterBar).
constexpr int SCROLL_INDICATOR_WIDTH = 8
 Scroll indicator column width in pixels.

Detailed Description

Centralized layout constants for cdc_views.

Shared display layout values used by multiple views and the RenderHelpers utility. Naming convention: SCREAMING_SNAKE_CASE, matching the rest of the cdc_core/cdc_hal/cdc_ui/cdc_views codebase.

View-local constants (TITLE_Y, HINT_Y, TEXT_MARGIN, ITEM_HEIGHT, etc.) intentionally remain in their respective views because their values differ per view (for example TITLE_Y is 5 in ListView but 20 in DateInputView).

Variable Documentation

◆ FOOTER_HEIGHT

int cdc::ui::layout::FOOTER_HEIGHT = 16
constexpr

Footer bar height in pixels (used by drawFooterBar).

Definition at line 21 of file LayoutConstants.h.

Referenced by cdc::ui::ColorPickerView::render().

◆ SCROLL_INDICATOR_WIDTH

int cdc::ui::layout::SCROLL_INDICATOR_WIDTH = 8
constexpr

Scroll indicator column width in pixels.

Definition at line 26 of file LayoutConstants.h.