summaryrefslogtreecommitdiff
path: root/prev/tab_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2016-05-30 00:14:46 -0400
committerPietro Gagliardi <[email protected]>2016-05-30 00:14:46 -0400
commit52f7d276a6bb04b8827ac019ad1e135b43819cea (patch)
tree5f0ebbfdf5885ef832e77e243b5916e59f46ba18 /prev/tab_darwin.m
parentc9b32c1333e4009b342eedc5f5b39127a724fb42 (diff)
Removed prev/.
Diffstat (limited to 'prev/tab_darwin.m')
-rw-r--r--prev/tab_darwin.m40
1 files changed, 0 insertions, 40 deletions
diff --git a/prev/tab_darwin.m b/prev/tab_darwin.m
deleted file mode 100644
index 1c2920a..0000000
--- a/prev/tab_darwin.m
+++ /dev/null
@@ -1,40 +0,0 @@
-// 25 july 2014
-
-#import "objc_darwin.h"
-#import "_cgo_export.h"
-#import <Cocoa/Cocoa.h>
-
-#define toNSTabView(x) ((NSTabView *) (x))
-#define toNSView(x) ((NSView *) (x))
-
-id newTab(void)
-{
- NSTabView *t;
-
- t = [[NSTabView alloc] initWithFrame:NSZeroRect];
- setStandardControlFont((id) t); // safe; same selector provided by NSTabView
- return (id) t;
-}
-
-void tabAppend(id t, char *name, id view)
-{
- NSTabViewItem *i;
-
- i = [[NSTabViewItem alloc] initWithIdentifier:nil];
- [i setLabel:[NSString stringWithUTF8String:name]];
- [i setView:toNSView(view)];
- [toNSTabView(t) addTabViewItem:i];
-}
-
-struct xsize tabPreferredSize(id control)
-{
- NSTabView *tv;
- NSSize s;
- struct xsize t;
-
- tv = toNSTabView(control);
- s = [tv minimumSize];
- t.width = (intptr_t) s.width;
- t.height = (intptr_t) s.height;
- return t;
-}