/******************************************************************************** * File Name: NumEdit.h * Function Describe: NumEdit.c declare module * Relate Module: GUI.c * Writer: Shliangwen * Date: 2016-1-31 *********************************************************************************/ #ifndef _NUM_EDIT_H_ #define _NUM_EDIT_H_ /*********************************************************************************/ #define NUM_EDIT_BUFFER_LEN_MAX 20 typedef struct SUT_NUM_EDIT { unsigned short x; unsigned char y; char buffer[NUM_EDIT_BUFFER_LEN_MAX+1]; unsigned char item; unsigned char len; unsigned char xlen; unsigned char ylen; }SUT_NUM_EDIT; extern SUT_NUM_EDIT sutNumEdit; void NumEditInit(SUT_NUM_EDIT *p,unsigned short x,unsigned char y,char *def); void NumEditShow(SUT_NUM_EDIT *p); void NumEditShowNORect(SUT_NUM_EDIT *p); unsigned char NumEditResponse(SUT_NUM_EDIT *p); /*********************************************************************************/ #endif