From 5a51263adc6d2e8ee7ea0dac4d92a66755c07cb1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 30 Jul 2014 00:54:50 -0400 Subject: Renamed the controls* and containers* files to basicctrls* and containerctrls*, respectively, in preparation for the widget hierarchy redo. --- redo/containers_darwin.m | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 redo/containers_darwin.m (limited to 'redo/containers_darwin.m') diff --git a/redo/containers_darwin.m b/redo/containers_darwin.m deleted file mode 100644 index c99e275..0000000 --- a/redo/containers_darwin.m +++ /dev/null @@ -1,46 +0,0 @@ -// 25 july 2014 - -#import "objc_darwin.h" -#import "_cgo_export.h" -#import - -#define toNSTabView(x) ((NSTabView *) (x)) - -@interface goTabView : NSTabView { -@public - void *gotab; -} -@end - -@implementation goTabView - -- (void)setFrame:(NSRect)r -{ - NSRect content; - - [super setFrame:r]; - content = [self contentRect]; - tabResized(self->gotab, (intptr_t) content.size.width, (intptr_t) content.size.height); -} - -@end - -id newTab(void *gotab) -{ - goTabView *t; - - t = [[goTabView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)]; - setStandardControlFont((id) t); // safe; same selector provided by NSTabView - t->gotab = gotab; - return (id) t; -} - -id tabAppend(id t, char *name) -{ - NSTabViewItem *i; - - i = [[NSTabViewItem alloc] initWithIdentifier:nil]; - [i setLabel:[NSString stringWithUTF8String:name]]; - [toNSTabView(t) addTabViewItem:i]; - return (id) [i view]; -} -- cgit v1.2.3