27 lines
692 B
C
Raw Permalink Normal View History

2021-08-10 15:00:09 +08:00
//<2F><>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD> GUI <20><>
#ifndef __GE_GUI_H
#define __GE_GUI_H
//<2F>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
typedef void (*MsgBoxHandler)(void);
typedef void (*MenuBoxHandler)(uint8_t choice_num);
void GE_GUI_Init(void);
void GE_GUI_MsgBox(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *head, uint8_t *content, MsgBoxHandler func);
#define GE_GUI_MENUBOX_MAX_CONTENT_NUM 10 //<2F><><EFBFBD>ò<EFBFBD><C3B2><EFBFBD> 5, 5, 310, 230
#define GE_GUI_MENUBOX_CONTENT_LEN 37 //<2F><><EFBFBD>ò<EFBFBD><C3B2><EFBFBD> 5, 5, 310, 230
2021-08-10 15:00:09 +08:00
uint8_t GE_GUI_MenuBox(
uint16_t x,
uint16_t y,
uint16_t width,
uint16_t height,
uint8_t *head,
uint8_t content_amount,
uint8_t content[][GE_GUI_MENUBOX_CONTENT_LEN],
MenuBoxHandler handler_func);
#endif