2014-07-08 15:47:28 -05:00
|
|
|
/* 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);
|
2014-07-13 20:31:13 -05:00
|
|
|
extern void uistop(void);
|
2014-07-08 15:47:28 -05:00
|
|
|
extern void issue(void *);
|
|
|
|
|
|
|
|
/* window_darwin.m */
|
|
|
|
extern id newWindow(intptr_t, intptr_t);
|
2014-07-08 16:43:50 -05:00
|
|
|
extern void windowSetDelegate(id, void *);
|
2014-07-08 15:47:28 -05:00
|
|
|
extern const char *windowTitle(id);
|
|
|
|
extern void windowSetTitle(id, const char *);
|
|
|
|
extern void windowShow(id);
|
|
|
|
extern void windowHide(id);
|
|
|
|
extern void windowClose(id);
|
|
|
|
|
2014-07-16 12:25:09 -05:00
|
|
|
/* controls_darwin.m */
|
|
|
|
extern void unparent(id);
|
|
|
|
extern void parent(id, id, BOOL);
|
|
|
|
extern id newButton(char *);
|
|
|
|
extern const char *buttonText(id);
|
|
|
|
extern void buttonSetText(id, char *);
|
|
|
|
|
2014-07-08 15:47:28 -05:00
|
|
|
#endif
|