annotate include/mbapp.h @ 294:2ca0773cd48d

* Add MBAF files * Change begin_index to be start_index * fix the color setting.
author wycc
date Sun, 01 Feb 2009 09:51:12 +0800
parents
children 2e97e8082d83
rev   line source
294
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
1 #ifndef __APP_H
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
2 #define __APP_H
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
3 typedef struct _mbapp MBApp;
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
4 struct _mbapp {
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
5 void *rt;
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
6 redraw_man_t *rdman;
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
7 mb_sprite_t *rootsprite;
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
8 mb_obj_t *root;
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
9 void *private;
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
10 };
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
11 MBApp *MBApp_Init(char *module);
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
12 void MBApp_setData(MBApp *app,void *data);
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
13 mb_tman_t *MBApp_getTimer(MBApp *app);
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
14 void MBApp_loop(MBApp *en);
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
15 #define MBAPP_DATA(app,type) ((type *) ((app)->private))
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
16 #define MBAPP_RDMAN(app) (((MBApp *) app)->rdman)
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
17
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
18 #include "mbbutton.h"
2ca0773cd48d * Add MBAF files
wycc
parents:
diff changeset
19 #endif