internal static IntPtr CreateNewWindow(WindowClass @class, WindowAttributes attributes, Rect r) { IntPtr window; OSStatus newWindow = API._CreateNewWindow(@class, attributes, ref r, out window); if (newWindow != OSStatus.NoError) throw new MacOSException(newWindow); else return window; }
private static OSStatus _CreateNewWindow(WindowClass @class, WindowAttributes attributes, ref Rect r, out IntPtr window);
private static OSStatus GetWindowBounds(IntPtr window, WindowRegionCode regionCode, out Rect globalBounds);
private static IntPtr GetControlBounds(IntPtr control, out Rect bounds);
static extern IntPtr GetControlBounds(IntPtr control, out Rect bounds);
internal static IntPtr CreateNewWindow(WindowClass @class, WindowAttributes attributes, Rect r) { IntPtr retval; OSStatus stat = _CreateNewWindow(@class, attributes, ref r, out retval); Debug.Print("Created Window: {0}", retval); if (stat != OSStatus.NoError) { throw new MacOSException(stat); } return retval; }