2003-02-08 17:33:17 +00:00
|
|
|
// GLib.MainContext.cs - mainContext class implementation
|
|
|
|
//
|
|
|
|
// Author: Radek Doulik <rodo@matfyz.cz>
|
|
|
|
//
|
|
|
|
// (C) 2003 Radek Doulik
|
|
|
|
|
|
|
|
namespace GLib {
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
public class MainContext {
|
|
|
|
|
2003-02-22 04:34:56 +00:00
|
|
|
[DllImport("libglib-2.0-0.dll")]
|
2003-02-08 17:33:17 +00:00
|
|
|
static extern bool g_main_context_iteration (IntPtr Raw, bool MayBlock);
|
|
|
|
|
|
|
|
public static bool Iteration ()
|
|
|
|
{
|
|
|
|
return g_main_context_iteration (IntPtr.Zero, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static bool Iteration (bool MayBlock)
|
|
|
|
{
|
|
|
|
return g_main_context_iteration (IntPtr.Zero, MayBlock);
|
|
|
|
}
|
|
|
|
|
2003-02-22 04:34:56 +00:00
|
|
|
[DllImport("libglib-2.0-0.dll")]
|
2003-02-08 17:33:17 +00:00
|
|
|
static extern bool g_main_context_pending (IntPtr Raw);
|
|
|
|
|
|
|
|
public static bool Pending ()
|
|
|
|
{
|
|
|
|
return g_main_context_pending (IntPtr.Zero);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|