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

42 lines
935 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; // 定时刷新时钟显示的定时器
uint32_t color1;
uint8_t 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