64 lines
1.0 KiB
C
64 lines
1.0 KiB
C
#ifndef MYWIN_USER_TIME_H__
|
||
#define MYWIN_USER_TIME_H__
|
||
|
||
|
||
|
||
//设置时间的对话框
|
||
|
||
|
||
|
||
|
||
typedef struct
|
||
{
|
||
WIN_TouchWinStruct win;
|
||
int page; //当前页面,0第一页,选择对时方式,第二页,根据情况分为1卫星授时和2手动设置
|
||
int time12Hours; //12小时制
|
||
int selectItem; //选择的条目
|
||
u32 selectTxtColor;
|
||
u32 txtColor;
|
||
u32 selectRectColor;
|
||
u32 rectColor;
|
||
int press;
|
||
int index;
|
||
char *title;
|
||
int year;
|
||
int mounth;
|
||
int date;
|
||
int hour;
|
||
int min;
|
||
int sec;
|
||
|
||
int touch_support; //支持触屏
|
||
WIN_ButtonStruct *key_up;
|
||
WIN_ButtonStruct *key_down;
|
||
WIN_ButtonStruct *key_enter;
|
||
WIN_ButtonStruct *key_back;
|
||
}WIN_TimeboxStruct;
|
||
|
||
|
||
|
||
WIN_TimeboxStruct *WIN_CreatTimebox (WIN_WindowStruct *base,
|
||
void (*msgLoop)(struct _WIN_WindowStruct *win,WIN_MsgStruct *msg),
|
||
int x,int y,int x_size,int y_size);
|
||
|
||
|
||
|
||
|
||
//消息框的绘制函数
|
||
void TIMEBOX_DefaultPaint (WIN_TimeboxStruct *timebox);
|
||
|
||
|
||
|
||
//消息框的消息处理函数
|
||
void TIMEBOX_defaultMsgLoop (WIN_TimeboxStruct *timebox,WIN_MsgStruct *msg);
|
||
|
||
|
||
|
||
//设置时间
|
||
int TIMEBOX_TimeSet (WIN_WindowStruct *base);
|
||
|
||
|
||
|
||
#endif
|
||
|