Files
trail-mate/modules/ui_shared/include/ui/app_runtime.h
T
Trail Mate Dev 6e613e382e Add CM0 Linux support and share device services across platforms
Compose the CM0 fullscreen application and standard Debian package, align the
Cardputer Zero shell, and share protocol, configuration, audio and storage
services with embedded targets through existing platform seams.

Add the paginated on-device TMAP creator using Center's published producer,
private workspace recovery and direct keyboard shortcuts. Preserve unfinished
management work behind its existing opt-in capability.

Include native, ARM and shared-core regression fixtures, integration records,
packaging helpers and dependency/license updates. Keep local build trees,
device credentials, produced packages and validation logs outside version control.

Validation before integration: ESP stack hygiene, Reticulum scope guard, staged
whitespace checks and GitNexus scope audit. Prior device/build evidence and
remaining hardware/package boundaries are recorded in the acceptance documents.
2026-10-29 10:29:29 +08:00

32 lines
1.1 KiB
C

#pragma once
#include "lvgl.h"
#include "ui/app_screen.h"
extern lv_obj_t* main_screen;
extern lv_group_t* menu_g;
extern lv_group_t* app_g;
void menu_show();
void ui_clear_active_app();
// Detach a composition-owned descriptor before destroying it. Its owner must
// close its widgets separately; no other application is entered by this call.
void ui_detach_app(AppScreen* app);
AppScreen* ui_get_active_app();
void ui_switch_to_app(AppScreen* app, lv_obj_t* parent);
// Programmatic navigation through the shell's application container.
bool ui_open_app(AppScreen* app);
void ui_exit_active_app(lv_obj_t* parent);
bool ui_present_interruption_app(AppScreen* app, lv_obj_t* parent);
void ui_dismiss_interruption_app(lv_obj_t* parent);
bool ui_is_interruption_app_active();
// Global modal renderers must wait until a queued exit/rebuild has completed.
bool ui_is_transition_pending();
void ui_request_exit_to_menu();
void ui_request_rebuild_active_app();
void ui_set_overlay_active(bool active);
bool ui_is_overlay_active();
void set_default_group(lv_group_t* group);
lv_obj_t* create_menu(lv_obj_t* parent, lv_event_cb_t event_cb);