示例#1
0
文件: API.cs 项目: tanis2000/FEZ
 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;
 }
示例#2
0
文件: API.cs 项目: tanis2000/FEZ
 private static OSStatus _CreateNewWindow(WindowClass @class, WindowAttributes attributes, ref Rect r, out IntPtr window);
示例#3
0
文件: API.cs 项目: tanis2000/FEZ
 private static OSStatus GetWindowBounds(IntPtr window, WindowRegionCode regionCode, out Rect globalBounds);
示例#4
0
文件: API.cs 项目: tanis2000/FEZ
 private static IntPtr GetControlBounds(IntPtr control, out Rect bounds);
示例#5
0
 static extern IntPtr GetControlBounds(IntPtr control, out Rect bounds);
示例#6
0
        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;
        }