protected static extern void uiWindowOnClosing(IntPtr b, uiWindowOnClosingDelegate f, IntPtr data);
public static extern void uiWindowOnClosing(IntPtr w, uiWindowOnClosingDelegate f, IntPtr data);