diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-08 16:47:28 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-08 16:47:28 -0400 |
| commit | b4357db4be6688c67e522b637f100ceecc4a9680 (patch) | |
| tree | 4b631edcb1e1fed7e6287b41b63a6a08d5aa3a45 /redo/objc_darwin.h | |
| parent | 60d0953fe9f16726958f709007402ea4c8b89fc6 (diff) | |
Added the beginning of the Mac OS X code.
Diffstat (limited to 'redo/objc_darwin.h')
| -rw-r--r-- | redo/objc_darwin.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/redo/objc_darwin.h b/redo/objc_darwin.h new file mode 100644 index 0000000..b3d362d --- /dev/null +++ b/redo/objc_darwin.h @@ -0,0 +1,28 @@ +/* 8 july 2014 */ + +/* cgo will include this file multiple times */ +#ifndef __GO_UI_OBJC_DARWIN_H__ +#define __GO_UI_OBJC_DARWIN_H__ + +#include <stdlib.h> +#include <stdint.h> +#include <objc/message.h> +#include <objc/objc.h> +#include <objc/runtime.h> + +/* uitask_darwin.m */ +extern id getAppDelegate(void); /* used by the other .m files */ +extern BOOL uiinit(void); +extern void uimsgloop(void); +extern void issue(void *); + +/* window_darwin.m */ +extern id newWindow(intptr_t, intptr_t); +extern void windowSetAppDelegate(id); +extern const char *windowTitle(id); +extern void windowSetTitle(id, const char *); +extern void windowShow(id); +extern void windowHide(id); +extern void windowClose(id); + +#endif |
