58 lines
		
	
	
		
			895 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			58 lines
		
	
	
		
			895 B
		
	
	
	
		
			C
		
	
	
	
	
	
|  | #ifndef MYWIN_USER_LOCK_H__
 | ||
|  | #define MYWIN_USER_LOCK_H__
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | #include "mywin_inc.h"
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | typedef struct | ||
|  | { | ||
|  | 	WIN_TouchWinStruct win; | ||
|  | 	char date[50]; | ||
|  | 	char time[20]; | ||
|  | 	int timerId;			//定时刷新时钟显示的定时器
 | ||
|  | 	u32 color1; | ||
|  | 	u8 sec; | ||
|  |     int lock_relieve;       //锁定解除
 | ||
|  |      | ||
|  |     char *pic_altitude; | ||
|  |     char *pic_pressure; | ||
|  |     char *pic_heart; | ||
|  |     char *pic_battery; | ||
|  |     char *pic_lock; | ||
|  | 	float pressure; | ||
|  |     int altitude; | ||
|  |     int heart; | ||
|  |     int electricity; | ||
|  | 		 | ||
|  | }WIN_LockStruct; | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | WIN_LockStruct *WIN_CreatLock (WIN_WindowStruct *base, | ||
|  | 			void (*msgLoop)(struct _WIN_WindowStruct *win,WIN_MsgStruct *msg), | ||
|  | 			int x,int y,int x_size,int y_size); | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | //默认绘制函数
 | ||
|  | void LOCK_DefaultPaint (WIN_LockStruct *lo); | ||
|  | 
 | ||
|  | //默认消息处理函数
 | ||
|  | void LOCK_DefaultMsgLoop (WIN_LockStruct *lo,WIN_MsgStruct *msg); | ||
|  | 
 | ||
|  | // 进入锁屏界面
 | ||
|  | void LOCK_EnterLock(const char *path); | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | #endif
 | ||
|  | 
 |