view examples/dynamic/mbapp.h @ 255:96ca1357ebc4

Setup dependency between object file and header file in AM file. - *.o should rely on *.h that generated by svg2code.py and M4 macros.
author Thinker K.F. Li <thinker@branda.to>
date Mon, 05 Jan 2009 10:20:25 +0800
parents d9a78c859660
children
line wrap: on
line source

#ifndef __APP_H
#define __APP_H
typedef struct _mbapp MBApp;
struct _mbapp {
    void *rt;
    redraw_man_t *rdman;
    mb_sprite_t *rootsprite;
    mb_obj_t *root;
    void *private;
};
MBApp *MBApp_Init(char *module);
void MBApp_setData(MBApp *app,void *data);
mb_tman_t *MBApp_getTimer(MBApp *app);
void MBApp_loop(MBApp *en);
#define MBAPP_DATA(app,type) ((type *) ((app)->private))
#define MBAPP_RDMAN(app) (((MBApp *) app)->rdman)

#include "mbbutton.h"
#endif