Files
player/Project/Src/MyWinApp/mywin_user_time.h
2025-06-27 00:32:57 +08:00

64 lines
1.1 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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