2025-06-27 00:32:57 +08:00
|
|
|
|
#ifndef MYWIN_USER_TIMEOUT_H__
|
|
|
|
|
|
#define MYWIN_USER_TIMEOUT_H__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
|
{
|
|
|
|
|
|
WIN_TouchWinStruct win;
|
2025-07-05 19:47:28 +08:00
|
|
|
|
int timerId; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>id
|
|
|
|
|
|
int power; //<2F><>ʱ<EFBFBD><CAB1><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
int index;
|
|
|
|
|
|
int spend;
|
2025-07-05 19:47:28 +08:00
|
|
|
|
int fresh; //<2F><>ʱ<EFBFBD><CAB1>ʱȫ<CAB1><C8AB>ˢ<EFBFBD><CBA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
int hour; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õı<C3B5><C4B1><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
int min;
|
|
|
|
|
|
int sec;
|
|
|
|
|
|
u32 selectTxtColor;
|
|
|
|
|
|
u32 txtColor;
|
|
|
|
|
|
u32 selectRectColor;
|
|
|
|
|
|
u32 rectColor;
|
|
|
|
|
|
char *title;
|
2025-07-05 19:47:28 +08:00
|
|
|
|
u8 *icon; //ͼ<><CDBC>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
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 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
//<2F><>Ϣ<EFBFBD><CFA2><EFBFBD>Ļ<EFBFBD><C4BB>ƺ<EFBFBD><C6BA><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
void TIMEOUT_DefaultPaint (WIN_TimeOutStruct *timeout);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
//<2F><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
void TIMEOUT_defaultMsgLoop (WIN_TimeOutStruct *timeout,WIN_MsgStruct *msg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WIN_TimeOutStruct *TIMEOUT_SaveTime (WIN_WindowStruct *base);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|