annotate inkscape/firefox/template/textmenu/app.h @ 766:be0e02948c1d

Improve resource management for coords, shapes and paints. - Make paint to use weak reference to release resource before collected. - Call Persistent<Object>::Dispose() before deleting the handle variable. Dispose() will real release Persistent handle. Handle variable is just a pointer to the handle.
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 29 Aug 2010 13:34:40 +0800
parents 9b8dda201ccb
children
rev   line source
371
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
1 #ifndef _APP_H
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
2 #define _APP_H
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
3 typedef struct {
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
4 mb_animated_menu_t *m;
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
5 }MyAppData;
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
6
454
9b8dda201ccb Make naming convention consistent with MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents: 371
diff changeset
7 extern void MyApp_InitContent(mbaf_t *app,int argc, char *argv[]);
371
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
8
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
9 void myselect_callback(mb_animated_menu_t *m, int select);
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
10 #endif