comparison include/animated_menu.h @ 454:9b8dda201ccb

Make naming convention consistent with MadButterfly.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 06 Aug 2009 09:38:51 +0800
parents 080aca2b7c47
children 58b6337fb3b2
comparison
equal deleted inserted replaced
453:84ce2d4a8c3f 454:9b8dda201ccb
7 int top; 7 int top;
8 int cur; 8 int cur;
9 int max; 9 int max;
10 int ready; 10 int ready;
11 int speed; 11 int speed;
12 MBApp *app; 12 mbaf_t *app;
13 mb_sprite_t *sprite; 13 mb_sprite_t *sprite;
14 mb_obj_t **objects; 14 mb_obj_t **objects;
15 mb_obj_t *lightbar; 15 mb_obj_t *lightbar;
16 void (*callback)(struct _mb_animated_menu *m, int sel); 16 void (*callback)(struct _mb_animated_menu *m, int sel);
17 void (*update_callback)(struct _mb_animated_menu *m, int sel); 17 void (*update_callback)(struct _mb_animated_menu *m, int sel);
23 * The objectnames is used to extract symbols from the SVG file. 23 * The objectnames is used to extract symbols from the SVG file.
24 * ${objectnames}0 - ${objectnames}8 is the text object. 24 * ${objectnames}0 - ${objectnames}8 is the text object.
25 * ${objectnames}_lightbar is the lightbar. 25 * ${objectnames}_lightbar is the lightbar.
26 * 26 *
27 */ 27 */
28 mb_animated_menu_t *mb_animated_menu_new(MBApp *app,mb_sprite_t *sp,char *objnames,char *menus[]); 28 mb_animated_menu_t *mb_animated_menu_new(mbaf_t *app,mb_sprite_t *sp,char *objnames,char *menus[]);
29 void mb_animated_menu_set_speed(mb_animated_menu_t *m,int speed); 29 void mb_animated_menu_set_speed(mb_animated_menu_t *m,int speed);
30 int mb_animated_menu_get_speed(mb_animated_menu_t *m); 30 int mb_animated_menu_get_speed(mb_animated_menu_t *m);
31 void mb_animated_menu_set_callback(mb_animated_menu_t *m, void (*f)(mb_animated_menu_t *m, int sel)); 31 void mb_animated_menu_set_callback(mb_animated_menu_t *m, void (*f)(mb_animated_menu_t *m, int sel));
32 #endif 32 #endif