2025-06-27 00:32:57 +08:00
|
|
|
|
#ifndef MYWIN_USER_HOME_H__
|
|
|
|
|
|
#define MYWIN_USER_HOME_H__
|
|
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
#include "mywin_inc.h"
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
// <20><>ҳ
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
|
|
|
|
|
#define STRUCT_TYPE_HOME 0x00000001
|
|
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
typedef struct {
|
|
|
|
|
|
u32 structType; // <20>ṹ<EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
char date[50];
|
|
|
|
|
|
char time[20];
|
|
|
|
|
|
} HOME_DataStruct;
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
typedef struct {
|
|
|
|
|
|
WIN_TouchWinStruct win;
|
|
|
|
|
|
char date[50];
|
|
|
|
|
|
char time[20];
|
|
|
|
|
|
int timerId; // <20><>ʱˢ<CAB1><CBA2>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>ʾ<EFBFBD>Ķ<EFBFBD>ʱ<EFBFBD><CAB1>
|
|
|
|
|
|
u32 color1;
|
|
|
|
|
|
u8 sec;
|
|
|
|
|
|
u8 hour;
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
WIN_ButtonStruct *key_menu;
|
|
|
|
|
|
WIN_ButtonStruct *key_tool;
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
} WIN_HomeStruct;
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
WIN_HomeStruct *WIN_CreatHome(WIN_WindowStruct *base,
|
|
|
|
|
|
void (*msgLoop)(struct _WIN_WindowStruct *win,
|
|
|
|
|
|
WIN_MsgStruct *msg),
|
|
|
|
|
|
int x, int y, int x_size, int y_size);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
int HOME_Updata(WIN_HomeStruct *home, HOME_DataStruct *data);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
// Ĭ<>ϻ<EFBFBD><CFBB>ƺ<EFBFBD><C6BA><EFBFBD>
|
|
|
|
|
|
void HOME_DefaultPaint(WIN_HomeStruct *home);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
// Ĭ<><C4AC><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
void HOME_DefaultMsgLoop(WIN_HomeStruct *home, WIN_MsgStruct *msg);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
|
|
|
|
|
#endif
|