diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-10 13:28:15 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-10 13:28:34 -0400 |
| commit | 65db139be73ac03b4e7f2d0638727a4ff0e68005 (patch) | |
| tree | 76a4240893d063b765a1983391694eda1327a5fa /redo/basicctrls_darwin.m | |
| parent | 0b3f6570ace035802d5ec02a6862d6130f5440ec (diff) | |
More .m file restructuring on the Mac OS X backend.
Diffstat (limited to 'redo/basicctrls_darwin.m')
| -rw-r--r-- | redo/basicctrls_darwin.m | 27 |
1 files changed, 0 insertions, 27 deletions
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 <Cocoa/Cocoa.h> -#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; |
