62 lines
996 B
C
62 lines
996 B
C
#ifndef MYWIN_USER_ALARM_H__
|
|
#define MYWIN_USER_ALARM_H__
|
|
|
|
|
|
|
|
|
|
//定义最多可以设置多少个闹钟
|
|
#define ALARM_MAXNUM 10
|
|
|
|
|
|
|
|
typedef struct
|
|
{
|
|
WIN_TouchWinStruct win;
|
|
int index; //选中的闹钟
|
|
int startIndex; //页首的闹钟
|
|
int page; //当前页面
|
|
int setIndex; //设置闹钟时的选中项
|
|
AlarmStruct setAlarm; //正在设置的闹钟
|
|
u32 selectTxtColor;
|
|
u32 txtColor;
|
|
u32 selectRectColor;
|
|
u32 rectColor;
|
|
char *title;
|
|
u8 *icon; //图标
|
|
int alarmNum;
|
|
AlarmStruct alarm[ALARM_MAXNUM];
|
|
|
|
int y_off;
|
|
RECT_Struct rect_list;
|
|
WIN_ButtonStruct *key_back;
|
|
}WIN_AlarmStruct;
|
|
|
|
|
|
|
|
WIN_AlarmStruct *WIN_CreatAlarm (WIN_WindowStruct *base,
|
|
void (*msgLoop)(struct _WIN_WindowStruct *win,WIN_MsgStruct *msg),
|
|
int x,int y,int x_size,int y_size);
|
|
|
|
|
|
|
|
//消息框的绘制函数
|
|
void ALARM_DefaultPaint (WIN_AlarmStruct *alarm);
|
|
|
|
|
|
|
|
//消息框的消息处理函数
|
|
void ALARM_defaultMsgLoop (WIN_AlarmStruct *alarm,WIN_MsgStruct *msg);
|
|
|
|
|
|
|
|
|
|
|
|
WIN_AlarmStruct *ALARM_SetAlarm (WIN_WindowStruct *base);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|