From 65db139be73ac03b4e7f2d0638727a4ff0e68005 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 10 Aug 2014 13:28:15 -0400 Subject: More .m file restructuring on the Mac OS X backend. --- redo/basicctrls_darwin.m | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'redo/basicctrls_darwin.m') diff --git a/redo/basicctrls_darwin.m b/redo/basicctrls_darwin.m index 2dbcfed..c4395c6 100644 --- a/redo/basicctrls_darwin.m +++ b/redo/basicctrls_darwin.m @@ -4,36 +4,9 @@ #import "_cgo_export.h" #import -#define toNSView(x) ((NSView *) (x)) -#define toNSWindow(x) ((NSWindow *) (x)) -#define toNSControl(x) ((NSControl *) (x)) #define toNSButton(x) ((NSButton *) (x)) #define toNSTextField(x) ((NSTextField *) (x)) -// TODO move to control_darwin.m - -void parent(id control, id parentid) -{ - [toNSView(parentid) addSubview:toNSView(control)]; -} - -void controlSetHidden(id control, BOOL hidden) -{ - [toNSView(control) setHidden:hidden]; -} - -// also fine for NSCells -void setStandardControlFont(id control) -{ - [toNSControl(control) setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSRegularControlSize]]]; -} - -// also fine for NSCells -void setSmallControlFont(id control) -{ - [toNSControl(control) setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]]; -} - @interface goControlDelegate : NSObject { @public void *gocontrol; -- cgit v1.2.3