1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /********************************************************************************
- * File Name: Menu.h
- * Function Describe: Menu.c declare module
- * Relate Module: GUI.c
- * Writer: Shliangwen
- * Date: 2016-1-8
- *******************************************************************************/
- #ifndef __MENU_H
- #define __MENU_H
-
-
- #define MENU_TOPY 24
- #define MENU_ROW 5 //5
- #define MENU_SPACE 4
- #define MENU_BAR_LEN 120
-
- // #define MENU_KEY_BACK 1
- // #define MENU_KEY_ENTER 2
- typedef struct SUT_MENU
- {
- const char **item; //menu items
- unsigned char itemnum; //item number
- unsigned char handle; //current item
- unsigned char page; //menu page(first item of page)
- unsigned char pgaenum;
- }SUT_MENU;
- extern SUT_MENU sutMenuSysSetup;
- int GetStrXLen(char *str);
- void ShowCaption(const char *str,unsigned char y);
- /*initialize menu structs and variable*/
- void MenuInit(struct SUT_MENU *p,const char **item);
- /*show menu */
- void MenuShow(struct SUT_MENU *p);
- /*response key */
- unsigned long MenuResponse(struct SUT_MENU *p);
- /*get menu 's handle*/
- unsigned char MenuGetHandle(struct SUT_MENU *p);
- void ShowCaptionArea(const char *str,unsigned char x1,unsigned char x2,unsigned char y);
- extern unsigned char fanhui;
- #endif
- /********************************************************************************
- * End of Module
- *******************************************************************************/
|