Mercurial > MadButterfly
comparison include/mb_ani_menu.h @ 1067:7b4e80ab671a openvg
merge from default branch
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 01 Dec 2010 12:25:56 +0800 |
parents | 586e50f82c1f |
children | 1993e5ae60aa |
comparison
equal
deleted
inserted
replaced
630:bd18951b51d5 | 1067:7b4e80ab671a |
---|---|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- | |
2 // vim: sw=4:ts=8:sts=4 | |
1 #ifndef __ANIMATED_MENU_H | 3 #ifndef __ANIMATED_MENU_H |
2 #define __ANIMATED_MENU_H | 4 #define __ANIMATED_MENU_H |
3 typedef struct _mb_animated_menu { | 5 typedef struct _mb_animated_menu { |
4 char **titles; | 6 char **titles; |
5 int *menus_y; | 7 int *menus_y; |
17 void (*update_callback)(struct _mb_animated_menu *m, int sel); | 19 void (*update_callback)(struct _mb_animated_menu *m, int sel); |
18 mb_progm_t *progm; | 20 mb_progm_t *progm; |
19 X_kb_event_t pending_keys[16]; | 21 X_kb_event_t pending_keys[16]; |
20 int pending_pos, pending_last; | 22 int pending_pos, pending_last; |
21 } mb_animated_menu_t; | 23 } mb_animated_menu_t; |
22 /** \brief Create an instace of animated menu. | 24 /** \brief Create an instace of animated menu. |
23 * | 25 * |
24 * The objectnames is used to extract symbols from the SVG file. | 26 * The objectnames is used to extract symbols from the SVG file. |
25 * ${objectnames}0 - ${objectnames}8 is the text object. | 27 * ${objectnames}0 - ${objectnames}8 is the text object. |
26 * ${objectnames}_lightbar is the lightbar. | 28 * ${objectnames}_lightbar is the lightbar. |
27 * | 29 * |
28 */ | 30 */ |
29 mb_animated_menu_t *mb_animated_menu_new(mbaf_t *app,mb_sprite_t *sp,char *objnames,char *menus[]); | 31 mb_animated_menu_t *mb_animated_menu_new(mbaf_t *app,mb_sprite_t *sp,char *objnames,char *menus[]); |