mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 17:35:28 +00:00
395c0cdf6f
* glib/MainContext.cs: beginning of MainContext class, just Iteration and Pending methods to be able to refresh Gtk in the middle of time consuming function where it's not worth while to use threads * glue/style.c (gtksharp_gtk_style_get_font_description): new function to access style's font_description field * gtk/Style.custom: added font description property svn path=/trunk/gtk-sharp/; revision=11358
36 lines
740 B
C#
36 lines
740 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("glib-2.0")]
|
|
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("glib-2.0")]
|
|
static extern bool g_main_context_pending (IntPtr Raw);
|
|
|
|
public static bool Pending ()
|
|
{
|
|
return g_main_context_pending (IntPtr.Zero);
|
|
}
|
|
}
|
|
}
|