Mercurial > MadButterfly
view include/mbapp.h @ 435:2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Since sh_text depends on pango, and we want a version of MadButterfly
without Pango (lite version), we make sh_text and sh_stext optional.
User can choice which one to enable.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 29 Jul 2009 20:22:36 +0800 |
parents | 2e97e8082d83 |
children | 84ce2d4a8c3f |
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; subject_t *kbevents; 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) #define MBAPP_keySubject(app) ((app)->kbevents) #include "mbbutton.h" #endif