67 lines
1013 B
C
67 lines
1013 B
C
#ifndef MYWIN_USER_TIMEOUT_H__
|
|
#define MYWIN_USER_TIMEOUT_H__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
{
|
|
WIN_TouchWinStruct win;
|
|
int timerId; //软件定时器id
|
|
int power; //定时器是否开启
|
|
int index;
|
|
int spend;
|
|
int fresh; //计时到时全局刷新了吗
|
|
int hour; //用于设置的变量
|
|
int min;
|
|
int sec;
|
|
u32 selectTxtColor;
|
|
u32 txtColor;
|
|
u32 selectRectColor;
|
|
u32 rectColor;
|
|
char *title;
|
|
u8 *icon; //图标
|
|
int num_x;
|
|
int num_y;
|
|
int num_xsize;
|
|
int num_ysize;
|
|
|
|
RECT_Struct rect_ok;
|
|
RECT_Struct rect_back;
|
|
}WIN_TimeOutStruct;
|
|
|
|
|
|
|
|
|
|
WIN_TimeOutStruct *WIN_CreatTimeOut (WIN_WindowStruct *base,
|
|
void (*msgLoop)(struct _WIN_WindowStruct *win,WIN_MsgStruct *msg),
|
|
int x,int y,int x_size,int y_size);
|
|
|
|
|
|
|
|
void WIN_DeleteTimeOut (WIN_TimeOutStruct *timeout );
|
|
|
|
|
|
|
|
//消息框的绘制函数
|
|
void TIMEOUT_DefaultPaint (WIN_TimeOutStruct *timeout);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//消息框的消息处理函数
|
|
void TIMEOUT_defaultMsgLoop (WIN_TimeOutStruct *timeout,WIN_MsgStruct *msg);
|
|
|
|
|
|
WIN_TimeOutStruct *TIMEOUT_SaveTime (WIN_WindowStruct *base);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|