2026-08-26 07:26:58 +08:00
|
|
|
|
#ifndef __UI_GLOBAL_H__
|
|
|
|
|
|
#define __UI_GLOBAL_H__
|
|
|
|
|
|
|
|
|
|
|
|
extern void (*MenuPage_Idle_Proc)(void);
|
|
|
|
|
|
extern void (*MenuPage_SongMode_Proc)(void);
|
|
|
|
|
|
extern void (*MenuPage_ExpertMode_Proc)(void);
|
|
|
|
|
|
extern void (*MenuPage_FreeMode_Proc)(void);
|
|
|
|
|
|
extern void (*MenuPage_Setting_Proc)(void);
|
|
|
|
|
|
extern void (*MenuPage_SystemSetting_Proc)(void);
|
|
|
|
|
|
extern void (*MenuPage_Mixer_Proc)(void);
|
|
|
|
|
|
extern void (*MenuPage_Restore_Proc)(void);;
|
|
|
|
|
|
|
|
|
|
|
|
// ==============================================
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD> UI <20><><EFBFBD>ú<EFBFBD><C3BA><EFBFBD>
|
|
|
|
|
|
// ==============================================
|
|
|
|
|
|
extern void InitMenuUI(void);
|
|
|
|
|
|
void CallUI_Idle(void);
|
|
|
|
|
|
void CallUI_SongMode(void);
|
|
|
|
|
|
void CallUI_ExpertMode(void);
|
|
|
|
|
|
void CallUI_FreeMode(void);
|
|
|
|
|
|
void CallUI_Setting(void);
|
|
|
|
|
|
void CallUI_Mixer(void);
|
|
|
|
|
|
void CallUI_SystemSetting(void);
|
|
|
|
|
|
void CallUI_RestoreSelect(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-08-28 10:34:27 +08:00
|
|
|
|
#define UI_STATUS_BAR_H 26
|
2026-09-02 13:37:25 +08:00
|
|
|
|
/* 0902 设计稿配色与底栏导航 */
|
|
|
|
|
|
#define UI0902_BG_COLOR 0x0042 /* #000813 页面背景 */
|
|
|
|
|
|
#define UI0902_ROW_BG 0x2147 /* #242B3A 列表行背景 */
|
|
|
|
|
|
#define UI0902_BATTERY_X 203
|
|
|
|
|
|
#define UI0902_BATTERY_Y 7
|
|
|
|
|
|
#define UI0902_NAV_SETTING 0 /* 底栏位0:设置(设置页内为返回) */
|
|
|
|
|
|
#define UI0902_NAV_MIXER 1 /* 底栏位1:调音台 */
|
|
|
|
|
|
#define UI0902_NAV_MODE 2 /* 底栏位2:模式选择 */
|
|
|
|
|
|
#define UI0902_NAV_NONE 0xFF
|
2026-08-31 08:20:24 +08:00
|
|
|
|
/* 电量组在 Draw_Battery_Icon 内按右对齐重算;此值为允许的最左起点 */
|
|
|
|
|
|
#define UI_STATUS_BATTERY_X 150
|
2026-08-28 10:34:27 +08:00
|
|
|
|
#define UI_STATUS_BATTERY_H 11
|
|
|
|
|
|
#define UI_STATUS_BATTERY_Y ((UI_STATUS_BAR_H - UI_STATUS_BATTERY_H) / 2)
|
2026-08-31 08:20:24 +08:00
|
|
|
|
#define UI_STATUS_BATTERY_RIGHT_MARGIN 8
|
2026-08-31 06:10:13 +08:00
|
|
|
|
#define UI_FOCUS_NONE 0xFF
|
|
|
|
|
|
|
|
|
|
|
|
void UI_ClearFocus(void);
|
|
|
|
|
|
uint8_t UI_IsFocused(uint8_t widget_id);
|
|
|
|
|
|
uint8_t UI_SetFocus(uint8_t widget_id);
|
|
|
|
|
|
void UI_GetFocusGrad(uint8_t widget_id, uint16_t *c_top, uint16_t *c_bot);
|
2026-08-28 10:34:27 +08:00
|
|
|
|
|
|
|
|
|
|
void Draw_Status_Battery_Icon(uint8_t battery_percent);
|
2026-08-26 07:26:58 +08:00
|
|
|
|
void Show_Battery_Icon(uint8_t flag);
|
|
|
|
|
|
|
|
|
|
|
|
void Show_BL_Icon(uint8_t value);
|
|
|
|
|
|
void Draw_Tab_Section_Menu(const LEBEL_UI *UI, TAB_SECTION_INDEX select_tab);
|
2026-09-02 13:37:25 +08:00
|
|
|
|
void Draw_Bottom_Bar(uint8_t sel, uint8_t first_back);
|
|
|
|
|
|
void UI_GotoCurrentModePage(void);
|
2026-08-26 07:26:58 +08:00
|
|
|
|
void GET_Num_Str(int16_t NUM, uint8_t ValidLen, char* Str, uint8_t hasSign);
|
|
|
|
|
|
void show_Param(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
|
|
|
|
|
|
extern void Show_home_UI(void);
|
|
|
|
|
|
extern void Touch_Action(int8_t FLAG, uint8_t ID, uint8_t areaIndex, uint8_t value);
|
|
|
|
|
|
//extern void Refresh_Transpose(uint8_t last_data, const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void Refresh_Transpose(const LEBEL_UI *UI, GUI_SWITCH * Group);
|
|
|
|
|
|
extern void Refresh_StringTimbre(uint8_t last_data, const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void label_top(void);
|
|
|
|
|
|
extern void label_Tranzpose_ui(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void label_Speed_ui(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void label_ModeSelece_ui(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void label_TimbreSelece_ui(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void label_PlaySection_ui(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void label_Tab_Select_ui(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void Refresh_SectionSelect(uint16_t last_value, const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void Refresh_TabSelect_ui(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
extern void RefreshSystemSetting(uint8_t last_data,const LEBEL_UI *UI,GUI_SWITCH * Group);
|
|
|
|
|
|
extern void RestoreSetting();
|
|
|
|
|
|
extern void Draw_System_Item_List(const LEBEL_UI *UI, GUI_SWITCH *Group);
|
|
|
|
|
|
#endif
|