| 29 |
29 |
| 30 #include "../ui/toolkit.h" |
30 #include "../ui/toolkit.h" |
| 31 #include "../common/context.h" |
31 #include "../common/context.h" |
| 32 #include "../common/object.h" |
32 #include "../common/object.h" |
| 33 |
33 |
| |
34 @interface UiAppCallback : NSObject { |
| |
35 ui_threadfunc callback; |
| |
36 void *userdata; |
| |
37 } |
| |
38 |
| |
39 - (id) initWithCallback:(ui_threadfunc)func userdata:(void*)userdata; |
| |
40 |
| |
41 - (void) callMainThread; |
| |
42 |
| |
43 - (void) mainThread:(id)n; |
| |
44 |
| |
45 @end |
| |
46 |
| 34 void ui_cocoa_onstartup(void); |
47 void ui_cocoa_onstartup(void); |
| 35 void ui_cocoa_onopen(const char *file); |
48 void ui_cocoa_onopen(const char *file); |
| 36 void ui_cocoa_onexit(void); |
49 void ui_cocoa_onexit(void); |
| 37 |
50 |