diff options
| author | Pietro Gagliardi <[email protected]> | 2016-05-30 00:14:46 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2016-05-30 00:14:46 -0400 |
| commit | 52f7d276a6bb04b8827ac019ad1e135b43819cea (patch) | |
| tree | 5f0ebbfdf5885ef832e77e243b5916e59f46ba18 /prev/tab_darwin.go | |
| parent | c9b32c1333e4009b342eedc5f5b39127a724fb42 (diff) | |
Removed prev/.
Diffstat (limited to 'prev/tab_darwin.go')
| -rw-r--r-- | prev/tab_darwin.go | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/prev/tab_darwin.go b/prev/tab_darwin.go deleted file mode 100644 index 7a8aefe..0000000 --- a/prev/tab_darwin.go +++ /dev/null @@ -1,41 +0,0 @@ -// 25 july 2014 - -package ui - -import ( - "unsafe" -) - -// #include "objc_darwin.h" -import "C" - -type tab struct { - *controlSingleObject - tabs []*container - children []Control -} - -func newTab() Tab { - t := &tab{ - controlSingleObject: newControlSingleObject(C.newTab()), - } - t.fpreferredSize = t.xpreferredSize - return t -} - -func (t *tab) Append(name string, control Control) { - c := newContainer(control.resize) - t.tabs = append(t.tabs, c) - control.setParent(c.parent()) - t.children = append(t.children, control) - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - C.tabAppend(t.id, cname, c.id) -} - -func (t *tab) xpreferredSize(d *sizing) (width, height int) { - s := C.tabPreferredSize(t.id) - return int(s.width), int(s.height) -} - -// no need to handle resize; the children containers handle that for us |
