Mercurial > MadButterfly
annotate include/mbapp.h @ 335:01038b8d8f05
Set the progm to be NULL so that we won't call mb_progm_abort when we call it at the next time. This will fix the crash issue of the dynamic. However, the dynamic is still crash sometimes if we click the button quickly. It looks like it crashes in the refresh. We need to future figure out the issue.
author | wycc |
---|---|
date | Sat, 07 Mar 2009 14:24:55 +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 |