diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-09 21:34:56 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-09 21:34:56 -0400 |
| commit | 62938635a2a6c5d614a890131483c57e1482d1fd (patch) | |
| tree | 01fd66f1ff5e3506b7300663fb80690cc71b0c59 /redo/tab_darwin.m | |
| parent | ea3dd093f7941cfc74af085fffc8e3f24b2ce0d5 (diff) | |
Started splitting apart xsizing_darwin.m and rearranging objc_darwin.h.
Diffstat (limited to 'redo/tab_darwin.m')
| -rw-r--r-- | redo/tab_darwin.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/redo/tab_darwin.m b/redo/tab_darwin.m index 7fef7a0..1c2920a 100644 --- a/redo/tab_darwin.m +++ b/redo/tab_darwin.m @@ -25,3 +25,16 @@ void tabAppend(id t, char *name, id view) [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; +} |
