44 lines
932 B
C
44 lines
932 B
C
#ifndef _FUNC_CLOCK_H
|
|
#define _FUNC_CLOCK_H
|
|
|
|
|
|
#define DP_HEADER_FORMAT 0x4657
|
|
#define DP_HEADER sizeof(dp_header_t)
|
|
#define DP_RES_HEADER sizeof(dp_res_t)
|
|
#define UI_BUF_WATCH_DIY 0xffffffff
|
|
|
|
enum {
|
|
FUNC_CLOCK_MAIN,
|
|
FUNC_CLOCK_SUB_DROPDOWN,
|
|
FUNC_CLOCK_SUB_PULLUP,
|
|
FUNC_CLOCK_SUB_SIDE,
|
|
FUNC_CLOCK_SUB_ROTARY,
|
|
};
|
|
|
|
typedef struct f_clock_t_ {
|
|
u8 sta;
|
|
u8 switch_to;
|
|
u8 animation_id;
|
|
compo_form_t *sub_frm;
|
|
void *sub_cb;
|
|
compo_shape_t *masklayer;
|
|
u8 lindong_music_num;
|
|
} f_clock_t;
|
|
|
|
//主窗体
|
|
void func_clock_sub_process(void);
|
|
void func_clock_sub_message(size_msg_t msg);
|
|
|
|
//子菜单
|
|
void func_clock_sub_dropdown(size_msg_t msg);
|
|
void func_clock_sub_pullup(void);
|
|
void func_clock_sub_side(void);
|
|
|
|
//表盘转盘
|
|
void func_clock_sub_rotary(void);
|
|
|
|
/* 表盘个数 */
|
|
extern u8 func_clock_get_max_dialplate_num(void);
|
|
|
|
#endif
|