ui/cocoa/toolkit.h

changeset 48
0b8ac9d6d473
parent 29
c96169444d88
child 49
a80ba8741be6
equal deleted inserted replaced
47:97792f44d919 48:0b8ac9d6d473
62 - (BOOL)handleEvent:(id)sender; 62 - (BOOL)handleEvent:(id)sender;
63 - (BOOL)handleStateEvent:(id)sender; 63 - (BOOL)handleStateEvent:(id)sender;
64 64
65 @end 65 @end
66 66
67 @interface UiThread : NSObject {
68 UiObject *obj;
69 ui_threadfunc job_func;
70 void *job_data;
71 ui_callback finish_callback;
72 void *finish_data;
73 }
67 74
75 - (id) initWithObject:(UiObject*)object;
76 - (void) setJobFunction:(ui_threadfunc)func;
77 - (void) setJobData:(void*)data;
78 - (void) setFinishCallback:(ui_callback)callback;
79 - (void) setFinishData:(void*)data;
80
81 - (void) start;
82 - (void) runJob:(id)n;
83 - (void) finish:(id)n;
84
85 @end
86
87

mercurial