Files
player/Project/Src/MyWinApp/mywin_user_time.h
andy 045cff4cc6 整理代码
1.解决一些编译警告
2.发现png因为文件api不支持而不能使用
2025-10-18 13:58:40 +08:00

49 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__
#include "mywin_inc.h"
// 设置时间的对话框
typedef struct {
WIN_TouchWinStruct win;
int page; // 当前页面0第一页选择对时方式第二页根据情况分为1卫星授时和2手动设置
int time12Hours; // 12小时制
int selectItem; // 选择的条目
uint32_t selectTxtColor;
uint32_t txtColor;
uint32_t selectRectColor;
uint32_t 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