Mercurial > MadButterfly
annotate include/mbapp.h @ 306:c981e561ac37
* Keep the font name as the original case.
* Add some new functions for the mb_animated_menu_t widget class.
author | wycc |
---|---|
date | Sat, 21 Feb 2009 21:45:04 +0800 |
parents | 2e97e8082d83 |
children | 84ce2d4a8c3f |
rev | line source |
---|---|
294 | 1 #ifndef __APP_H |
2 #define __APP_H | |
3 typedef struct _mbapp MBApp; | |
4 struct _mbapp { | |
5 void *rt; | |
6 redraw_man_t *rdman; | |
7 mb_sprite_t *rootsprite; | |
8 mb_obj_t *root; | |
296
2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
294
diff
changeset
|
9 subject_t *kbevents; |
294 | 10 void *private; |
11 }; | |
12 MBApp *MBApp_Init(char *module); | |
13 void MBApp_setData(MBApp *app,void *data); | |
14 mb_tman_t *MBApp_getTimer(MBApp *app); | |
15 void MBApp_loop(MBApp *en); | |
16 #define MBAPP_DATA(app,type) ((type *) ((app)->private)) | |
17 #define MBAPP_RDMAN(app) (((MBApp *) app)->rdman) | |
296
2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
294
diff
changeset
|
18 #define MBAPP_keySubject(app) ((app)->kbevents) |
294 | 19 |
20 #include "mbbutton.h" | |
21 #endif |