annotate examples/dynamic/mbapp.h @ 303:f894b30676e9

Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
author wycc
date Sun, 15 Feb 2009 08:34:57 +0800
parents d9a78c859660
children
rev   line source
247
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
1 #ifndef __APP_H
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
2 #define __APP_H
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
3 typedef struct _mbapp MBApp;
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
4 struct _mbapp {
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
5 void *rt;
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
6 redraw_man_t *rdman;
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
7 mb_sprite_t *rootsprite;
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
8 mb_obj_t *root;
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
9 void *private;
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
10 };
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
11 MBApp *MBApp_Init(char *module);
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
12 void MBApp_setData(MBApp *app,void *data);
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
13 mb_tman_t *MBApp_getTimer(MBApp *app);
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
14 void MBApp_loop(MBApp *en);
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
15 #define MBAPP_DATA(app,type) ((type *) ((app)->private))
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
16 #define MBAPP_RDMAN(app) (((MBApp *) app)->rdman)
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
17
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
18 #include "mbbutton.h"
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents:
diff changeset
19 #endif