uiMenu.h 516 B

12345678910111213141516171819202122232425
  1. #ifndef __UI_MENU_H__
  2. #define __UI_MENU_H__
  3. #define UI_MENU_TOPY 29
  4. #define UI_MENU_ROW 5
  5. #define UI_MENU_SPACE 4
  6. #define UI_MENU_BAR_LEN 140
  7. #include "stdbool.h"
  8. #include "gui.h"
  9. #pragma pack(push)
  10. #pragma pack(1)
  11. typedef struct{
  12. const char **item;
  13. unsigned char itemnum;
  14. unsigned char handle;
  15. unsigned char page;
  16. unsigned char pagenum;
  17. }SUT_MENU;
  18. #pragma pack(pop)
  19. void uiMenuInit(SUT_MENU *p, const char **item, FONT_MODEENUM fontMode,bool status);
  20. unsigned short uiMenuResponse(SUT_MENU *p);
  21. #endif