ui/cocoa/toolkit.h

changeset 100
d2bd73d28ff1
parent 0
2483f517c562
--- a/ui/cocoa/toolkit.h	Fri Nov 29 22:21:36 2024 +0100
+++ b/ui/cocoa/toolkit.h	Thu Dec 12 20:01:43 2024 +0100
@@ -1,7 +1,7 @@
 /*
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
- * Copyright 2014 Olaf Wintermann. All rights reserved.
+ * Copyright 2024 Olaf Wintermann. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -31,58 +31,7 @@
 #include "../common/context.h"
 #include "../common/object.h"
 
-
-@interface UiApplicationDelegate : NSObject<NSApplicationDelegate> {
-    
-}
-
-- (void)applicationWillTerminate:(NSNotification*)notification;
-
-- (BOOL)applicationShouldHandleReopen:(NSApplication *)app hasVisibleWindows:(BOOL)visible;
-
-- (BOOL)application:(NSApplication *)application openFile:(NSString *)filename;
-
-@end
-
-@interface EventWrapper : NSObject {
-    void         *data;
-    ui_callback  callback;
-    int          value;
-}
-
-- (EventWrapper*) initWithData: (void*)data callback:(ui_callback) f;
-
-- (void*) data;
-- (void) setData:(void*)d;
-- (ui_callback) callback;
-- (void) setCallback: (ui_callback)f;
-- (int) intval;
-- (void) setIntval:(int)i;
+void ui_cocoa_onstartup(void);
+void ui_cocoa_onopen(const char *file);
+void ui_cocoa_onexit(void);
 
-- (BOOL)handleEvent:(id)sender;
-- (BOOL)handleStateEvent:(id)sender;
-- (BOOL)handleToggleEvent:(id)sender;
-
-@end
-
-@interface UiThread : NSObject {
-    UiObject      *obj;
-    ui_threadfunc job_func;
-    void          *job_data;
-    ui_callback   finish_callback;
-    void          *finish_data;
-}
-
-- (id) initWithObject:(UiObject*)object;
-- (void) setJobFunction:(ui_threadfunc)func;
-- (void) setJobData:(void*)data;
-- (void) setFinishCallback:(ui_callback)callback;
-- (void) setFinishData:(void*)data;
-
-- (void) start;
-- (void) runJob:(id)n;
-- (void) finish:(id)n;
-
-@end
-
-

mercurial