gtk_main() private method

private gtk_main ( ) : void
return void
Beispiel #1
0
        public static void RunMsgLoop()
        {
#if WINDOWS
            PInvokeWindows.MSG msg;
            while (PInvokeWindows.GetMessage(out msg, IntPtr.Zero, 0, 0) != 0)
            {
                PInvokeWindows.TranslateMessage(ref msg);
                PInvokeWindows.DispatchMessage(ref msg);
            }
#elif GTKMONO
            PInvokeGTK.gtk_main();
#endif
        }
Beispiel #2
0
        public static void RunMsgLoop()
        {
#if WINDOWS
            PInvokeWindows.MSG msg;
            while (PInvokeWindows.GetMessage(out msg, IntPtr.Zero, 0, 0) != 0)
            {
                PInvokeWindows.TranslateMessage(ref msg);
                PInvokeWindows.DispatchMessage(ref msg);
            }
#elif GTKMONO
            PInvokeGTK.gtk_main();
#elif OSX
            throw new Exception("Do not call PInvokeUtils.RunMsgLoop() on OSX.");
#endif
        }