NumEdit.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. /********************************************************************************
  2. * File Name: NumEdit.h
  3. * Function Describe: NumEdit.c declare module
  4. * Relate Module: GUI.c
  5. * Writer: Shliangwen
  6. * Date: 2016-1-31
  7. *********************************************************************************/
  8. #ifndef _NUM_EDIT_H_
  9. #define _NUM_EDIT_H_
  10. /*********************************************************************************/
  11. #define NUM_EDIT_BUFFER_LEN_MAX 20
  12. typedef struct SUT_NUM_EDIT
  13. {
  14. unsigned short x;
  15. unsigned char y;
  16. char buffer[NUM_EDIT_BUFFER_LEN_MAX+1];
  17. unsigned char item;
  18. unsigned char len;
  19. unsigned char xlen;
  20. unsigned char ylen;
  21. }SUT_NUM_EDIT;
  22. extern SUT_NUM_EDIT sutNumEdit;
  23. void NumEditInit(SUT_NUM_EDIT *p,unsigned short x,unsigned char y,char *def);
  24. void NumEditShow(SUT_NUM_EDIT *p);
  25. void NumEditShowNORect(SUT_NUM_EDIT *p);
  26. unsigned char NumEditResponse(SUT_NUM_EDIT *p);
  27. /*********************************************************************************/
  28. #endif