Exemple #1
0
 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;
 }
Exemple #2
0
 private static OSStatus _CreateNewWindow(WindowClass @class, WindowAttributes attributes, ref Rect r, out IntPtr window);
Exemple #3
0
 private static OSStatus GetWindowBounds(IntPtr window, WindowRegionCode regionCode, out Rect globalBounds);
Exemple #4
0
 private static IntPtr GetControlBounds(IntPtr control, out Rect bounds);
Exemple #5
0
 static extern IntPtr GetControlBounds(IntPtr control, out Rect bounds);
Exemple #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;
        }