2014-03-01 03:17:32 -06:00
/* 28 february 2014 */
2014-05-16 05:37:25 -05:00
/* apparently this header is included by other headers generated by cgo, wrecking the structures below, so wheee include guards */
/* the change that introduced this was [master 9b4e30c] ("Started to build a single global delegate object; now to fix issues.") */
# ifndef __GO_UI_OBJC_DARWIN_H__
# define __GO_UI_OBJC_DARWIN_H__
2014-03-01 16:01:28 -06:00
2014-05-16 05:37:25 -05:00
/* the Objective-C runtime headers, for id */
2014-03-01 03:17:32 -06:00
# include <objc/message.h>
# include <objc/objc.h>
# include <objc/runtime.h>
# include <stdint.h>
2014-05-16 05:37:25 -05:00
/* wrapper types since the meaning of NSRect, NSSize, and NSPoint are CPU architectured-dependent; also because they're in an Objective-C-only header */
2014-03-01 12:58:38 -06:00
struct xrect {
2014-05-16 05:37:25 -05:00
intptr_t x ;
intptr_t y ;
intptr_t width ;
intptr_t height ;
2014-03-01 12:58:38 -06:00
} ;
2014-03-01 03:21:47 -06:00
struct xsize {
2014-05-16 05:37:25 -05:00
intptr_t width ;
intptr_t height ;
2014-03-01 03:21:47 -06:00
} ;
2014-03-30 16:52:27 -05:00
struct xpoint {
2014-05-16 05:37:25 -05:00
intptr_t x ;
intptr_t y ;
2014-03-30 16:52:27 -05:00
} ;
2014-05-16 05:37:25 -05:00
/* objc_darwin.m */
extern id toNSString ( char * ) ;
extern char * fromNSString ( id ) ;
extern void display ( id ) ;
extern struct xrect frame ( id ) ;
extern id makeScrollView ( id ) ;
extern void giveScrollViewBezelBorder ( id ) ;
extern id scrollViewContent ( id ) ;
2014-03-01 16:01:28 -06:00
# endif