c0b574a686
* mapdllnames.pl : a little whitespace action * api/*-api.xml : move to win32 dllnames * */makefile.win32 : remove the mapdllnames step * */*.cs : move to win32 dllnames * */*.custom : move to win32 dllnames * sources/gtk-sharp.sources : move to win32 dllnames svn path=/trunk/gtk-sharp/; revision=11823
35 lines
758 B
C#
35 lines
758 B
C#
// 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 {
|
|
|
|
[DllImport("libglib-2.0-0.dll")]
|
|
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);
|
|
}
|
|
|
|
[DllImport("libglib-2.0-0.dll")]
|
|
static extern bool g_main_context_pending (IntPtr Raw);
|
|
|
|
public static bool Pending ()
|
|
{
|
|
return g_main_context_pending (IntPtr.Zero);
|
|
}
|
|
}
|
|
}
|