mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-03 18:41:43 +00:00
d320b6511d
* Unify PlatformIO and ESP-IDF around a shared UI/runtime shell
21 lines
533 B
C
21 lines
533 B
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();
|
|
AppScreen* ui_get_active_app();
|
|
void ui_switch_to_app(AppScreen* app, lv_obj_t* parent);
|
|
void ui_exit_active_app(lv_obj_t* parent);
|
|
void ui_request_exit_to_menu();
|
|
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);
|