65 lines
		
	
	
		
			840 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			840 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef MYWIN_USER_HOME_H__
 | |
| #define MYWIN_USER_HOME_H__
 | |
| 
 | |
| 
 | |
| 
 | |
| //主页
 | |
| 
 | |
| 
 | |
| 
 | |
| #define STRUCT_TYPE_HOME 0x00000001
 | |
| 
 | |
| 
 | |
| 
 | |
| typedef struct
 | |
| {
 | |
| 	u32 structType;			//结构体类型
 | |
| 	char date[50];
 | |
| 	char time[20];
 | |
| }HOME_DataStruct;
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| typedef struct
 | |
| {
 | |
| 	WIN_TouchWinStruct win;
 | |
| 	char date[50];
 | |
| 	char time[20];
 | |
| 	int timerId;			//定时刷新时钟显示的定时器
 | |
| 	u32 color1;
 | |
| 	u8 sec;
 | |
| 	u8 hour;
 | |
| 	
 | |
| 	WIN_ButtonStruct *key_menu;
 | |
| 	WIN_ButtonStruct *key_tool;
 | |
| 		
 | |
| }WIN_HomeStruct;
 | |
| 
 | |
| 
 | |
| 
 | |
| 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);
 | |
| 
 | |
| 
 | |
| int HOME_Updata (WIN_HomeStruct *home,HOME_DataStruct *data);
 | |
| 
 | |
| 
 | |
| //默认绘制函数
 | |
| void HOME_DefaultPaint (WIN_HomeStruct *home);
 | |
| 
 | |
| 
 | |
| //默认消息处理函数
 | |
| void HOME_DefaultMsgLoop (WIN_HomeStruct *home,WIN_MsgStruct *msg);
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| #endif
 | |
| 
 |