Mercurial > MadButterfly
comparison include/mb_ani_menu.h @ 456:26c302b47de1
Change name of header files.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 06 Aug 2009 15:38:04 +0800 |
parents | |
children | 586e50f82c1f |
comparison
equal
deleted
inserted
replaced
455:58b6337fb3b2 | 456:26c302b47de1 |
---|---|
1 #ifndef __ANIMATED_MENU_H | |
2 #define __ANIMATED_MENU_H | |
3 typedef struct _mb_animated_menu { | |
4 char **titles; | |
5 int *menus_y; | |
6 int *items; | |
7 int top; | |
8 int cur; | |
9 int max; | |
10 int ready; | |
11 int speed; | |
12 mbaf_t *app; | |
13 mb_sprite_t *sprite; | |
14 mb_obj_t **objects; | |
15 mb_obj_t *lightbar; | |
16 void (*callback)(struct _mb_animated_menu *m, int sel); | |
17 void (*update_callback)(struct _mb_animated_menu *m, int sel); | |
18 mb_progm_t *progm; | |
19 X_kb_event_t pending_keys[16]; | |
20 int pending_pos, pending_last; | |
21 } mb_animated_menu_t; | |
22 /** \brief Create an instace of animated menu. | |
23 * | |
24 * The objectnames is used to extract symbols from the SVG file. | |
25 * ${objectnames}0 - ${objectnames}8 is the text object. | |
26 * ${objectnames}_lightbar is the lightbar. | |
27 * | |
28 */ | |
29 mb_animated_menu_t *mb_animated_menu_new(mbaf_t *app,mb_sprite_t *sp,char *objnames,char *menus[]); | |
30 void mb_animated_menu_set_speed(mb_animated_menu_t *m,int speed); | |
31 int mb_animated_menu_get_speed(mb_animated_menu_t *m); | |
32 void mb_animated_menu_set_callback(mb_animated_menu_t *m, void (*f)(mb_animated_menu_t *m, int sel)); | |
33 #endif |