| 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 { |
34 @interface UiAppCallback : NSObject |
| 35 ui_threadfunc callback; |
35 |
| 36 void *userdata; |
36 @property ui_threadfunc callback; |
| 37 } |
37 @property void *userdata; |
| 38 |
38 |
| 39 - (id) initWithCallback:(ui_threadfunc)func userdata:(void*)userdata; |
39 - (id) initWithCallback:(ui_threadfunc)func userdata:(void*)userdata; |
| 40 |
40 |
| 41 - (void) callMainThread; |
41 - (void) callMainThread; |
| 42 |
42 |