libui/darwin/bin.m

34 lines
857 B
Mathematica
Raw Normal View History

2015-04-28 15:38:33 -05:00
// 28 april 2015
#import "uipriv_darwin.h"
int binHasOSParent(uiBin *b)
2015-04-28 15:38:33 -05:00
{
NSView *v;
2015-04-28 15:38:33 -05:00
// note that:
// - the superview of a NSWindow content view is the window frame
// - the superview of *the active NSTabView page* is the NSTabView itself (we don't have to worry about other pages because if there are pages, then at least one page will be active, so we will eventually get here)
v = (NSView *) uiControlHandle(uiControl(b));
return [v superview] != nil;
2015-04-28 15:38:33 -05:00
}
void binSetOSParent(uiBin *b, uintptr_t osParent)
2015-04-28 15:38:33 -05:00
{
complain("TODO");
2015-04-28 15:38:33 -05:00
}
void binRemoveOSParent(uiBin *b)
2015-04-28 15:38:33 -05:00
{
complain("TODO");
2015-04-28 15:38:33 -05:00
}
void binResizeRootAndUpdate(uiBin *b, intmax_t x, intmax_t y, intmax_t width, intmax_t height)
2015-04-28 15:38:33 -05:00
{
// not used on OS X
2015-04-28 15:38:33 -05:00
}
void binTranslateMargins(uiBin *b, intmax_t *left, intmax_t *top, intmax_t *right, intmax_t *bottom, uiSizing *d)
2015-04-28 15:38:33 -05:00
{
// not used on OS X
2015-04-28 15:38:33 -05:00
}