comparison examples/dynamic/mbapp.h @ 247:d9a78c859660

Seperate the frameowrk codes from the main.c. Write a simpler MBAF demo hello program.
author wycc
date Thu, 01 Jan 2009 08:32:03 +0800
parents
children
comparison
equal deleted inserted replaced
246:4df1b766bbf5 247:d9a78c859660
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;
9 void *private;
10 };
11 MBApp *MBApp_Init(char *module);
12 void MBApp_setData(MBApp *app,void *data);
13 mb_tman_t *MBApp_getTimer(MBApp *app);
14 void MBApp_loop(MBApp *en);
15 #define MBAPP_DATA(app,type) ((type *) ((app)->private))
16 #define MBAPP_RDMAN(app) (((MBApp *) app)->rdman)
17
18 #include "mbbutton.h"
19 #endif