|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include "cdc_os_ui/views/LockScreenView.h"#include "cdc_os_ui/WifiHandlers.h"#include "cdc_ui/I18n.h"#include "cdc_views/ContextMenuView.h"#include "cdc_views/KeyCodes.h"#include "cdc_hal/IDisplay.h"#include "cdc_hal/IKeypad.h"#include "cdc_hal/ISleepController.h"#include "cdc_core/ModuleRegistry.h"#include "plugin_manager/PluginManager.h"#include "cdc_log.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include <goodisplay/gdey029T94.h>#include "cdc_views/Fonts.h"#include "cdc_views/RenderHelpers.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 | |
| static void | cdc::ui::onLightMenuCallback () |
| Context-menu callback toggling lock-screen backlight mode. | |
| static void | cdc::ui::onWifiToggleCallback () |
| Context-menu callback toggling WiFi on/off via the user intent flag. | |
| static void | cdc::ui::moduleContextCallback0 () |
| Wrapper callback for module context item at index 0. | |
| static void | cdc::ui::moduleContextCallback1 () |
| Wrapper callback for module context item at index 1. | |
| static void | cdc::ui::moduleContextCallback2 () |
| Wrapper callback for module context item at index 2. | |
| static void | cdc::ui::moduleContextCallback3 () |
| Wrapper callback for module context item at index 3. | |
| static void | cdc::ui::moduleContextCallback4 () |
| Wrapper callback for module context item at index 4. | |
| static void | cdc::ui::moduleContextCallback5 () |
| Wrapper callback for module context item at index 5. | |
| static void | cdc::ui::moduleContextCallback6 () |
| Wrapper callback for module context item at index 6. | |
| static void | cdc::ui::pluginContextCallback0 () |
| static void | cdc::ui::pluginContextCallback1 () |
| static void | cdc::ui::pluginContextCallback2 () |
| static void | cdc::ui::pluginContextCallback3 () |
Variables | |
| static const char * | TAG = "LockScreen" |
| static constexpr int | CLOCK_Y = 5 |
| Display layout constants. | |
| static constexpr int | DATE_Y = 22 |
| static constexpr int | ICONS_Y = 5 |
| static constexpr int | NAME_Y = 60 |
| static constexpr int | INFO_Y = 80 |
| static constexpr int | INFO2_Y = 96 |
| static constexpr int | BATTERY_X = 260 |
| static constexpr int | BATTERY_Y = 5 |
| static constexpr int | DISPLAY_WIDTH = 296 |
| static constexpr int | BAT_WIDTH = 28 |
| Battery icon dimensions. | |
| static constexpr int | BAT_HEIGHT = 12 |
| static constexpr int | BAT_TIP_WIDTH = 3 |
| static constexpr int | BAT_TIP_HEIGHT = 6 |
| static LockScreenView * | cdc::ui::s_lockScreenInstance = nullptr |
| Static lock-screen instance pointer for C-style callbacks. | |
| static constexpr uint8_t | cdc::ui::MAX_CONTEXT_ITEMS = 12 |
| Storage for dynamic context-menu items contributed by modules. | |
| static constexpr uint8_t | cdc::ui::MAX_PLUGIN_ITEMS = 4 |
| static constexpr uint8_t | cdc::ui::MAX_MODULE_CONTEXT_ITEMS = 7 |
| static ContextMenuItem | cdc::ui::s_contextItems [MAX_CONTEXT_ITEMS] |
| static core::LockScreenContextItem | cdc::ui::s_moduleContextItems [MAX_MODULE_CONTEXT_ITEMS] |
| static uint8_t | cdc::ui::s_moduleContextCount = 0 |
| static cdc::plugin_manager::PluginManager::LockscreenItem | cdc::ui::s_pluginContextItems [MAX_PLUGIN_ITEMS] |
| static uint8_t | cdc::ui::s_pluginContextCount = 0 |
| static void(*const | cdc::ui::s_moduleCallbacks [])() |
| static void(*const | cdc::ui::s_pluginCallbacks [MAX_PLUGIN_ITEMS])() |
|
staticconstexpr |
Definition at line 45 of file LockScreenView.cpp.
|
staticconstexpr |
Definition at line 47 of file LockScreenView.cpp.
|
staticconstexpr |
Definition at line 46 of file LockScreenView.cpp.
|
staticconstexpr |
Battery icon dimensions.
Definition at line 44 of file LockScreenView.cpp.
|
staticconstexpr |
Definition at line 36 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::render().
|
staticconstexpr |
Definition at line 37 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::render().
|
staticconstexpr |
Display layout constants.
Definition at line 30 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::render().
|
staticconstexpr |
Definition at line 31 of file LockScreenView.cpp.
Referenced by cdc::ui::DateInputView::render(), and cdc::ui::LockScreenView::render().
|
staticconstexpr |
Definition at line 38 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::render().
|
staticconstexpr |
Definition at line 32 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::render().
|
staticconstexpr |
Definition at line 35 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::render().
|
staticconstexpr |
Definition at line 34 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::render().
|
staticconstexpr |
Definition at line 33 of file LockScreenView.cpp.
Referenced by cdc::ui::ColorPickerView::render(), and cdc::ui::LockScreenView::render().
|
static |
LockScreenView Implementation
Main lock screen with clock, icons, and user info.
Definition at line 25 of file LockScreenView.cpp.