private static CSWindow CreateWin32(Gdk.Window gdkWindow) { NativeGdkWin.Gdk_window_ensure_native(gdkWindow.Handle); IntPtr windowHandle = NativeGdkWin.GetWindowHandle(gdkWindow.Handle); int width; int height; gdkWindow.GetSize(out width, out height); return(new CSWindow(windowHandle.ToInt32(), width, height, WindowHelp.GetStartupPath())); }
private static CSWindow CreateMac(Gdk.Window window) { WindowHelp.gdkWindow = window; IntPtr windowHandle = NativeGdkMac.GetWindowHandle(WindowHelp.gdkWindow.Handle); IntPtr nsViewHandle = NativeGdkMac.GetNSViewHandle(WindowHelp.gdkWindow.Handle); int width; int height; WindowHelp.gdkWindow.GetSize(out width, out height); string startupPath = WindowHelp.GetStartupPath(); return(new CSWindow(windowHandle, nsViewHandle, width, height, startupPath)); }
public static CSWindow CreateCSWindow(IntPtr windowHandle, int width, int height) { return(new CSWindow(windowHandle.ToInt32(), width, height, WindowHelp.GetStartupPath())); }