2009-09-03 Christian Hoff <christian_hoff@gmx.net>
* glib/Global.cs: Kill the calling convention field again. It breaks GLib 2.x compatibility in the generator and there is probably no need to make the calling convention configurable. * .cs, *.custom: Hardcode Cdecl calling convention instead of using GLib's field. svn path=/trunk/gtk-sharp/; revision=141283
This commit is contained in:
parent
58e97c087a
commit
7b752d233c
166 changed files with 599 additions and 593 deletions
|
@ -1,3 +1,11 @@
|
|||
2009-09-03 Christian Hoff <christian_hoff@gmx.net>
|
||||
|
||||
* glib/Global.cs: Kill the calling convention field again.
|
||||
It breaks GLib 2.x compatibility in the generator and there is
|
||||
probably no need to make the calling convention configurable.
|
||||
* .cs, *.custom: Hardcode Cdecl calling convention instead of
|
||||
using GLib's field.
|
||||
|
||||
2009-09-02 Christian Hoff <christian_hoff@gmx.net>
|
||||
|
||||
* glib/Global.cs: Add a public constant field specifying the
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libatk-1.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libatk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint atk_add_global_event_listener (GLib.Signal.EmissionHookNative hook, IntPtr event_type);
|
||||
|
||||
public static uint AddGlobalEventListener (GLib.Signal.EmissionHook hook, string event_type)
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint AddGlobalEventListenerNativeDelegate (GLib.Signal.EmissionHookNative hook, IntPtr event_type);
|
||||
|
||||
static AddGlobalEventListenerDelegate add_global_event_listener_handler;
|
||||
|
@ -51,7 +51,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void RemoveListenerNativeDelegate (uint listener_id);
|
||||
|
||||
static RemoveListenerDelegate remove_global_event_listener_handler;
|
||||
|
|
|
@ -35,7 +35,7 @@ public Color (byte r, byte g, byte b)
|
|||
Pixel = 0;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint gdk_color_hash(ref Gdk.Color raw);
|
||||
|
||||
public override int GetHashCode() {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
[DllImport("gdksharpglue-3")]
|
||||
static extern DeviceKey gtksharp_gdk_device_get_device_key (IntPtr device, uint axis);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_device_get_state(IntPtr device, IntPtr window, double [] axes, out int maskAsInt);
|
||||
|
||||
|
||||
|
@ -44,10 +44,10 @@
|
|||
return gtksharp_gdk_device_get_device_key (Handle, axis);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_device_free_history(IntPtr events, int n_events);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gdk_device_get_history(IntPtr device, IntPtr window, uint start, uint stop, out IntPtr events, out int n_events);
|
||||
|
||||
public TimeCoord[] GetHistory (Gdk.Window window, uint start, uint stop)
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_display_get_pointer(IntPtr raw, IntPtr screen, out int x, out int y, out int mask);
|
||||
|
||||
[Obsolete]
|
||||
|
@ -28,7 +28,7 @@
|
|||
mask = (Gdk.ModifierType) mask_as_int;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_display_get_pointer(IntPtr raw, out IntPtr screen, out int x, out int y, out int mask);
|
||||
|
||||
public void GetPointer(out Gdk.Screen screen, out int x, out int y, out Gdk.ModifierType mask) {
|
||||
|
@ -58,7 +58,7 @@
|
|||
GetPointer (out screen, out x, out y, out mod);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_display_list_devices (IntPtr raw);
|
||||
|
||||
public Device[] ListDevices ()
|
||||
|
@ -73,7 +73,7 @@
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_display_add_client_message_filter (IntPtr raw, IntPtr message_type, GdkSharp.FilterFuncNative func, IntPtr data);
|
||||
|
||||
public void AddClientMessageFilter (Gdk.Atom message_type, Gdk.FilterFunc func)
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_display_manager_list_displays (IntPtr raw);
|
||||
|
||||
public Display[] ListDisplays ()
|
||||
|
|
|
@ -24,7 +24,7 @@ public void DrawRectangle(Gdk.GC gc, bool filled, Gdk.Rectangle area)
|
|||
gdk_draw_rectangle(Handle, gc.Handle, filled, area.X, area.Y, area.Width, area.Height);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_draw_polygon(IntPtr raw, IntPtr gc, int filled, Gdk.Point[] points, int npoints);
|
||||
|
||||
[Obsolete]
|
||||
|
@ -38,7 +38,7 @@ public void DrawPolygon(Gdk.GC gc, bool filled, Gdk.Point[] points)
|
|||
gdk_draw_polygon(Handle, gc.Handle, filled ? 1 : 0, points, points.Length);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_draw_lines(IntPtr raw, IntPtr gc, Gdk.Point[] points, int npoints);
|
||||
|
||||
public void DrawLines(Gdk.GC gc, Gdk.Point[] points)
|
||||
|
@ -46,10 +46,10 @@ public void DrawLines(Gdk.GC gc, Gdk.Point[] points)
|
|||
gdk_draw_lines(Handle, gc.Handle, points, points.Length);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
internal static extern IntPtr gdk_x11_drawable_get_xdisplay (IntPtr raw);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
internal static extern IntPtr gdk_x11_drawable_get_xid (IntPtr raw);
|
||||
|
||||
#if MANLY_ENOUGH_TO_INCLUDE
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Gdk {
|
|||
get { return raw; }
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_event_get_type ();
|
||||
|
||||
public static GLib.GType GType {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_devices_list ();
|
||||
|
||||
public static Device[] DevicesList ()
|
||||
|
@ -34,7 +34,7 @@
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_list_visuals ();
|
||||
|
||||
public static Visual[] ListVisuals ()
|
||||
|
@ -109,7 +109,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gdk_init_check(ref int argc, ref IntPtr argv);
|
||||
|
||||
public static bool InitCheck (ref string[] argv)
|
||||
|
@ -123,7 +123,7 @@
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_parse_args(ref int argc, ref IntPtr argv);
|
||||
|
||||
public static void ParseArgs (ref string[] argv)
|
||||
|
@ -136,7 +136,7 @@
|
|||
argv = a.GetArgs (argc);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_query_depths (out IntPtr depths, out int n_depths);
|
||||
|
||||
public static int[] QueryDepths ()
|
||||
|
@ -148,7 +148,7 @@
|
|||
Marshal.Copy (ptr, result, 0, count);
|
||||
return result;
|
||||
}
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_query_visual_types (out IntPtr types, out int n_types);
|
||||
|
||||
public static VisualType[] QueryVisualTypes ()
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int gdk_input_add_full (int source, int condition, GdkSharp.InputFunctionNative function, IntPtr data, GLib.DestroyNotify destroy);
|
||||
|
||||
[Obsolete]
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_free(IntPtr ptr);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gdk_keymap_get_entries_for_keycode(IntPtr raw, uint hardware_keycode, out IntPtr keys, out IntPtr keyvals, out int n_entries);
|
||||
|
||||
public void GetEntriesForKeycode(uint hardware_keycode, out Gdk.KeymapKey[] keys, out uint[] keyvals)
|
||||
|
@ -47,7 +47,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gdk_keymap_get_entries_for_keyval(IntPtr raw, uint keyval, out IntPtr keys, out int n_keys);
|
||||
|
||||
public KeymapKey[] GetEntriesForKeyval (uint keyval)
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixbuf_get_from_drawable(IntPtr raw, IntPtr src, IntPtr cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
|
||||
|
||||
public Gdk.Pixbuf GetFromDrawable(Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) {
|
||||
|
@ -45,7 +45,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixbuf_get_from_image(IntPtr raw, IntPtr src, IntPtr cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
|
||||
|
||||
public Gdk.Pixbuf GetFromImage(Gdk.Image src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) {
|
||||
|
@ -58,7 +58,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_pixbuf_render_pixmap_and_mask (IntPtr raw, out IntPtr pixmap_return, out IntPtr mask_return, int alpha_threshold);
|
||||
|
||||
public void RenderPixmapAndMask (out Pixmap pixmap_return, out Pixmap mask_return, int alpha_threshold)
|
||||
|
@ -69,7 +69,7 @@
|
|||
mask_return = GLib.Object.GetObject (mask_handle) as Pixmap;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_pixbuf_render_pixmap_and_mask_for_colormap (IntPtr raw, IntPtr colormap, out IntPtr pixmap_return, out IntPtr mask_return, int alpha_threshold);
|
||||
|
||||
public void RenderPixmapAndMaskForColormap (Colormap colormap, out Pixmap pixmap_return, out Pixmap mask_return, int alpha_threshold)
|
||||
|
@ -80,21 +80,21 @@
|
|||
mask_return = GLib.Object.GetObject (mask_handle) as Pixmap;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_pixbuf_render_threshold_alpha(IntPtr raw, IntPtr bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold);
|
||||
|
||||
public void RenderThresholdAlpha(Gdk.Pixmap bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold) {
|
||||
gdk_pixbuf_render_threshold_alpha(Handle, bitmap.Handle, src_x, src_y, dest_x, dest_y, width, height, alpha_threshold);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_pixbuf_render_to_drawable(IntPtr raw, IntPtr drawable, IntPtr gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int dither, int x_dither, int y_dither);
|
||||
|
||||
public void RenderToDrawable(Gdk.Drawable drawable, Gdk.GC gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, Gdk.RgbDither dither, int x_dither, int y_dither) {
|
||||
gdk_pixbuf_render_to_drawable(Handle, drawable.Handle, gc.Handle, src_x, src_y, dest_x, dest_y, width, height, (int) dither, x_dither, y_dither);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_pixbuf_render_to_drawable_alpha(IntPtr raw, IntPtr drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_mode, int alpha_threshold, int dither, int x_dither, int y_dither);
|
||||
|
||||
public void RenderToDrawableAlpha(Gdk.Drawable drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height, Gdk.PixbufAlphaMode alpha_mode, int alpha_threshold, Gdk.RgbDither dither, int x_dither, int y_dither) {
|
||||
|
@ -148,7 +148,7 @@
|
|||
return new Pixbuf (System.Reflection.Assembly.GetCallingAssembly (), resource);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixbuf_scale_simple(IntPtr raw, int dest_width, int dest_height, int interp_type);
|
||||
|
||||
public Gdk.Pixbuf ScaleSimple(int dest_width, int dest_height, Gdk.InterpType interp_type) {
|
||||
|
@ -157,7 +157,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixbuf_composite_color_simple(IntPtr raw, int dest_width, int dest_height, int interp_type, int overall_alpha, int check_size, uint color1, uint color2);
|
||||
|
||||
public Gdk.Pixbuf CompositeColorSimple(int dest_width, int dest_height, Gdk.InterpType interp_type, int overall_alpha, int check_size, uint color1, uint color2) {
|
||||
|
@ -166,7 +166,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixbuf_add_alpha(IntPtr raw, bool substitute_color, byte r, byte g, byte b);
|
||||
|
||||
public Gdk.Pixbuf AddAlpha(bool substitute_color, byte r, byte g, byte b) {
|
||||
|
@ -188,7 +188,7 @@
|
|||
this.notify = notify;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
public delegate void NativeDelegate (IntPtr buf, IntPtr data);
|
||||
|
||||
void ReleaseHandles (IntPtr buf, IntPtr data)
|
||||
|
@ -208,7 +208,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixbuf_new_from_data(byte[] data, int colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, DestroyHelper.NativeDelegate destroy_fn, IntPtr destroy_fn_data);
|
||||
|
||||
public Pixbuf (byte[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify destroy_fn) : base (IntPtr.Zero)
|
||||
|
@ -234,7 +234,7 @@
|
|||
if (error != IntPtr.Zero) throw new GLib.GException (error);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern unsafe IntPtr gdk_pixbuf_new_from_inline(int len, IntPtr data, bool copy_pixels, out IntPtr error);
|
||||
|
||||
public unsafe Pixbuf(int data_length, void *data, bool copy_pixels) : base (IntPtr.Zero)
|
||||
|
@ -274,7 +274,7 @@
|
|||
//
|
||||
// the 'Pixels' property
|
||||
//
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixbuf_get_pixels(IntPtr raw);
|
||||
|
||||
public IntPtr Pixels {
|
||||
|
@ -284,7 +284,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixbuf_get_formats();
|
||||
|
||||
public static PixbufFormat[] Formats {
|
||||
|
@ -300,7 +300,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern unsafe bool gdk_pixbuf_save(IntPtr raw, IntPtr filename, IntPtr type, out IntPtr error, IntPtr dummy);
|
||||
|
||||
public unsafe bool Save(string filename, string type) {
|
||||
|
@ -314,10 +314,10 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern unsafe bool gdk_pixbuf_save_to_bufferv (IntPtr raw, out IntPtr buffer, out IntPtr buffer_size, IntPtr type, IntPtr[] option_keys, IntPtr[] option_values, out IntPtr error);
|
||||
|
||||
IntPtr[] NullTerm (string[] src)
|
||||
|
@ -365,7 +365,7 @@
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern unsafe bool gdk_pixbuf_save_to_callbackv (IntPtr raw, GdkSharp.PixbufSaveFuncNative save_func, IntPtr user_data, IntPtr type, IntPtr[] option_keys, IntPtr[] option_values, out IntPtr error);
|
||||
|
||||
public unsafe void SaveToCallback (PixbufSaveFunc save_func, string type)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_object_ref (IntPtr handle);
|
||||
|
||||
internal IntPtr PixbufHandle {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixdata_serialize (ref Gdk.Pixdata raw, out uint len);
|
||||
|
||||
public byte [] Serialize () {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
public Pixmap (Gdk.Drawable drawable, int width, int height) : this (drawable, width, height, -1) {}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixmap_colormap_create_from_xpm (IntPtr drawable, IntPtr colormap, IntPtr mask, IntPtr transparent_color, IntPtr filename);
|
||||
|
||||
public static Gdk.Pixmap ColormapCreateFromXpm(Gdk.Drawable drawable, Gdk.Colormap colormap, string filename)
|
||||
|
@ -31,7 +31,7 @@
|
|||
return GLib.Object.GetObject (raw_ret) as Gdk.Pixmap;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixmap_colormap_create_from_xpm_d (IntPtr drawable, IntPtr colormap, IntPtr mask, IntPtr transparent_color, IntPtr data);
|
||||
|
||||
public static Gdk.Pixmap ColormapCreateFromXpmD(Gdk.Drawable drawable, Gdk.Colormap colormap, string data)
|
||||
|
@ -42,7 +42,7 @@
|
|||
return GLib.Object.GetObject (raw_ret) as Gdk.Pixmap;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixmap_create_from_xpm (IntPtr drawable, IntPtr mask, IntPtr transparent_color, IntPtr filename);
|
||||
|
||||
public static Gdk.Pixmap CreateFromXpm(Gdk.Drawable drawable, string filename)
|
||||
|
@ -53,7 +53,7 @@
|
|||
return GLib.Object.GetObject (raw_ret) as Gdk.Pixmap;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_pixmap_create_from_xpm_d (IntPtr drawable, IntPtr mask, IntPtr transparent_color, IntPtr data);
|
||||
|
||||
public static Gdk.Pixmap CreateFromXpmD(Gdk.Drawable drawable, string data)
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_property_change(IntPtr window, IntPtr property, IntPtr type, int format, int mode, out byte data, int nelements);
|
||||
|
||||
[Obsolete ("Replaced by corrected overload with data parameter")]
|
||||
|
@ -30,7 +30,7 @@
|
|||
return data;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gdk_property_get(IntPtr window, IntPtr property, IntPtr type, UIntPtr offset, UIntPtr length, bool pdelete, out IntPtr actual_property_type, out int actual_format, out int actual_length, out IntPtr data);
|
||||
|
||||
public static bool Get(Gdk.Window window, Gdk.Atom property, Gdk.Atom type, ulong offset, ulong length, int pdelete, out Gdk.Atom actual_property_type, out int actual_format, out int actual_length, out byte[] data) {
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_free (IntPtr mem);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_region_get_rectangles(IntPtr raw, out IntPtr rectangles, out int n_rectangles);
|
||||
|
||||
public Rectangle[] GetRectangles ()
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_screen_get_toplevel_windows (IntPtr raw);
|
||||
|
||||
public Window[] ToplevelWindows
|
||||
|
@ -35,7 +35,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_screen_list_visuals (IntPtr raw);
|
||||
|
||||
public Visual[] ListVisuals ()
|
||||
|
@ -50,10 +50,10 @@
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_screen_get_font_options(IntPtr raw);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_screen_set_font_options(IntPtr raw, IntPtr options);
|
||||
|
||||
[GLib.Property ("font-options")]
|
||||
|
|
|
@ -26,10 +26,10 @@ namespace Gdk {
|
|||
|
||||
public class TextProperty {
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_free_text_list(IntPtr ptr);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int gdk_text_property_to_utf8_list(IntPtr encoding, int format, byte[] text, int length, out IntPtr list);
|
||||
|
||||
public static string[] ToStringList (Gdk.Atom encoding, int format, byte[] text, int length)
|
||||
|
@ -49,7 +49,7 @@ namespace Gdk {
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int gdk_text_property_to_utf8_list_for_display(IntPtr display, IntPtr encoding, int format, byte[] text, int length, out IntPtr list);
|
||||
|
||||
public static string[] ToStringListForDisplay (Gdk.Display display, Gdk.Atom encoding, int format, byte[] text, int length)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
public Window (Gdk.Window parent, Gdk.WindowAttr attributes, Gdk.WindowAttributesType attributes_mask) : this (parent, attributes, (int)attributes_mask) {}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_window_get_children(IntPtr raw);
|
||||
|
||||
public Window[] Children {
|
||||
|
@ -40,7 +40,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_window_set_icon_list(IntPtr raw, IntPtr pixbufs);
|
||||
|
||||
public Pixbuf[] IconList {
|
||||
|
@ -52,7 +52,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gdk_window_get_toplevels();
|
||||
|
||||
public static Window[] Toplevels {
|
||||
|
@ -68,10 +68,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_object_ref (IntPtr raw);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_window_destroy(IntPtr raw);
|
||||
|
||||
public void Destroy ()
|
||||
|
@ -95,10 +95,10 @@
|
|||
gdk_window_clear_area (Handle, rect.X, rect.Y, rect.Width, rect.Height);
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_window_get_user_data (IntPtr raw, out IntPtr data);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_window_set_user_data(IntPtr raw, IntPtr user_data);
|
||||
public IntPtr UserData {
|
||||
get {
|
||||
|
@ -111,10 +111,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_window_add_filter (IntPtr handle, GdkSharp.FilterFuncNative wrapper, IntPtr data);
|
||||
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgdk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_window_remove_filter (IntPtr handle, GdkSharp.FilterFuncNative wrapper, IntPtr data);
|
||||
|
||||
static Hashtable filter_all_hash;
|
||||
|
|
|
@ -201,7 +201,7 @@ namespace GtkSharp.Generation {
|
|||
sw.WriteLine ("\tusing System.Runtime.InteropServices;");
|
||||
sw.WriteLine ();
|
||||
sw.WriteLine ("#region Autogenerated code");
|
||||
sw.WriteLine ("\t[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]");
|
||||
sw.WriteLine ("\t[UnmanagedFunctionPointer (CallingConvention.Cdecl)]");
|
||||
sw.WriteLine ("\tinternal delegate " + retval.MarshalType + " " + wrapper + "(" + parms.ImportSignature + ");");
|
||||
sw.WriteLine ();
|
||||
GenInvoker (gen_info, sw);
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace GtkSharp.Generation {
|
|||
|
||||
void GenerateImport (StreamWriter sw)
|
||||
{
|
||||
sw.WriteLine("\t\t[DllImport(\"" + LibraryName + "\", CallingConvention = GLib.Global.CallingConvention)]");
|
||||
sw.WriteLine("\t\t[DllImport(\"" + LibraryName + "\", CallingConvention = CallingConvention.Cdecl)]");
|
||||
sw.WriteLine("\t\tstatic extern " + Safety + "IntPtr " + CName + "(" + Parameters.ImportSignature + ");");
|
||||
sw.WriteLine();
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ namespace GtkSharp.Generation {
|
|||
if (Elem.HasAttribute ("gtype")) {
|
||||
sw.WriteLine ();
|
||||
sw.WriteLine ("\tinternal class " + Name + "GType {");
|
||||
sw.WriteLine ("\t\t[DllImport (\"" + LibraryName + "\", CallingConvention = GLib.Global.CallingConvention)]");
|
||||
sw.WriteLine ("\t\t[DllImport (\"" + LibraryName + "\", CallingConvention = CallingConvention.Cdecl)]");
|
||||
sw.WriteLine ("\t\tstatic extern IntPtr " + Elem.GetAttribute ("gtype") + " ();");
|
||||
sw.WriteLine ();
|
||||
sw.WriteLine ("\t\tpublic static GLib.GType GType {");
|
||||
|
|
|
@ -185,7 +185,7 @@ namespace GtkSharp.Generation {
|
|||
string import_sig = IsStatic ? "" : container_type.MarshalType + " raw";
|
||||
import_sig += !IsStatic && Parameters.Count > 0 ? ", " : "";
|
||||
import_sig += Parameters.ImportSignature.ToString();
|
||||
sw.WriteLine("\t\t[DllImport(\"" + LibraryName + "\", CallingConvention = GLib.Global.CallingConvention)]");
|
||||
sw.WriteLine("\t\t[DllImport(\"" + LibraryName + "\", CallingConvention = CallingConvention.Cdecl)]");
|
||||
if (retval.MarshalType.StartsWith ("[return:"))
|
||||
sw.WriteLine("\t\t" + retval.MarshalType + " static extern " + Safety + retval.CSType + " " + CName + "(" + import_sig + ");");
|
||||
else
|
||||
|
|
|
@ -221,7 +221,7 @@ namespace GtkSharp.Generation {
|
|||
native_signature += ", " + CallbackSig;
|
||||
native_signature += ", IntPtr gch";
|
||||
|
||||
sw.WriteLine ("\t\t[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]");
|
||||
sw.WriteLine ("\t\t[UnmanagedFunctionPointer (CallingConvention.Cdecl)]");
|
||||
sw.WriteLine ("\t\tdelegate {0} {1} ({2});", retval.ToNativeType, DelegateName, native_signature);
|
||||
sw.WriteLine ();
|
||||
sw.WriteLine ("\t\tstatic {0} {1} ({2})", retval.ToNativeType, CallbackName, native_signature);
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace GtkSharp.Generation {
|
|||
if (parms.Count > 0)
|
||||
native_signature += parms.ImportSignature;
|
||||
|
||||
sw.WriteLine ("\t\t[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]");
|
||||
sw.WriteLine ("\t\t[UnmanagedFunctionPointer (CallingConvention.Cdecl)]");
|
||||
sw.WriteLine ("\t\tdelegate {0} {1}NativeDelegate ({2});", retval.ToNativeType, this.Name, native_signature);
|
||||
sw.WriteLine ();
|
||||
sw.WriteLine ("\t\tstatic {0} {1}_cb ({2})", retval.ToNativeType, this.Name, native_signature);
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_app_info_get_all();
|
||||
|
||||
public static GLib.AppInfo[] GetAll() {
|
||||
|
|
|
@ -32,7 +32,7 @@ public bool Delete ()
|
|||
return Delete (null);
|
||||
}
|
||||
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_file_get_uri(IntPtr raw);
|
||||
|
||||
public System.Uri Uri {
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace GLib
|
|||
{
|
||||
public class FileFactory
|
||||
{
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern IntPtr g_file_new_for_uri (string uri);
|
||||
|
||||
public static File NewForUri (string uri)
|
||||
|
@ -40,7 +40,7 @@ namespace GLib
|
|||
return GLib.FileAdapter.GetObject (g_file_new_for_uri (uri.ToString ()), false) as File;
|
||||
}
|
||||
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern IntPtr g_file_new_for_path (string path);
|
||||
|
||||
public static File NewForPath (string path)
|
||||
|
@ -48,7 +48,7 @@ namespace GLib
|
|||
return GLib.FileAdapter.GetObject (g_file_new_for_path (path), false) as File;
|
||||
}
|
||||
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern IntPtr g_file_new_for_commandline_arg (string arg);
|
||||
|
||||
public static File NewFromCommandlineArg (string arg)
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
// keep this around so it doesn't get GC'd
|
||||
static GladeSharp.XMLCustomWidgetHandlerWrapper callback_wrapper = null;
|
||||
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void glade_set_custom_handler (GladeSharp.XMLCustomWidgetHandlerNative handler, IntPtr user_data);
|
||||
|
||||
public static Glade.XMLCustomWidgetHandler CustomHandler {
|
||||
|
@ -69,7 +69,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr glade_get_widget_name (IntPtr widget);
|
||||
|
||||
static public string GetWidgetName (Gtk.Widget w) {
|
||||
|
@ -82,7 +82,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr glade_get_widget_tree (IntPtr widget);
|
||||
|
||||
static public Glade.XML GetWidgetTree (Gtk.Widget w) {
|
||||
|
@ -93,7 +93,7 @@
|
|||
|
||||
/* a constructor that reads the XML from a Stream */
|
||||
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr glade_xml_new_from_buffer(byte[] buffer, int size, IntPtr root, IntPtr domain);
|
||||
|
||||
public XML (System.IO.Stream s, string root, string domain) : base (IntPtr.Zero)
|
||||
|
@ -182,12 +182,12 @@
|
|||
this.handler_type = type;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void RawXMLConnectFunc (IntPtr handler_name, IntPtr objekt,
|
||||
IntPtr signal_name, IntPtr signal_data,
|
||||
IntPtr connect_object, int after, IntPtr user_data);
|
||||
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void glade_xml_signal_autoconnect_full (IntPtr raw, RawXMLConnectFunc func,
|
||||
IntPtr user_data);
|
||||
|
||||
|
@ -417,7 +417,7 @@
|
|||
System.Reflection.Assembly.GetCallingAssembly (), resource_name, root, domain);
|
||||
}
|
||||
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglade-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr glade_xml_get_widget_prefix(IntPtr raw, IntPtr name);
|
||||
|
||||
public Gtk.Widget[] GetWidgetPrefix(string name)
|
||||
|
|
|
@ -30,10 +30,10 @@ namespace GLib {
|
|||
IntPtr handle;
|
||||
bool add_progname = false;
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_malloc(IntPtr size);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_free (IntPtr mem);
|
||||
|
||||
~Argv ()
|
||||
|
|
|
@ -69,10 +69,10 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
private delegate void DestroyNotify (IntPtr data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern void g_object_set_data_full (IntPtr obj, IntPtr name, IntPtr data, DestroyNotify destroy);
|
||||
|
||||
private void AddDestroyNotify (GLib.Object o) {
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace GLib {
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
public delegate void DestroyNotify (IntPtr data);
|
||||
|
||||
public class DestroyHelper {
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace GLib {
|
|||
|
||||
public class FileUtils
|
||||
{
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
extern static bool g_file_get_contents (IntPtr filename, out IntPtr contents, out int length, out IntPtr error);
|
||||
|
||||
public static string GetFileContents (string filename)
|
||||
|
|
|
@ -26,7 +26,7 @@ using System.Runtime.InteropServices;
|
|||
namespace GLib {
|
||||
#if GTK_SHARP_2_14
|
||||
public class Format {
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_format_size_for_display (long size);
|
||||
|
||||
static public string SizeForDisplay (long size)
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_clear_error (ref IntPtr errptr);
|
||||
~GException ()
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace GLib {
|
|||
|
||||
IntPtr handle;
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_string_free (IntPtr mem, bool free_segments);
|
||||
|
||||
~GString ()
|
||||
|
@ -35,7 +35,7 @@ namespace GLib {
|
|||
g_string_free (handle, true);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_string_new (IntPtr text);
|
||||
|
||||
public GString (string text)
|
||||
|
|
|
@ -396,31 +396,31 @@ namespace GLib {
|
|||
return GType.Is (ValFromInstancePtr (raw), this);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_type_class_peek (IntPtr gtype);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_type_class_ref (IntPtr gtype);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_type_from_name (string name);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_type_init ();
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_type_name (IntPtr raw);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_type_parent (IntPtr type);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_type_query (IntPtr type, out GTypeQuery query);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_type_register_static (IntPtr parent, IntPtr name, ref GTypeInfo info, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_type_is_a (IntPtr type, IntPtr is_a_type);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,8 +31,6 @@ namespace GLib {
|
|||
//this is a static class
|
||||
private Global () {}
|
||||
|
||||
public const System.Runtime.InteropServices.CallingConvention CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl;
|
||||
|
||||
public static string ProgramName {
|
||||
get {
|
||||
return GLib.Marshaller.PtrToStringGFree(g_get_prgname());
|
||||
|
@ -44,10 +42,10 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_set_prgname (IntPtr name);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_get_prgname ();
|
||||
|
||||
public static string ApplicationName {
|
||||
|
@ -61,10 +59,10 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_set_application_name (IntPtr name);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_get_application_name ();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace GLibSharp {
|
|||
using System.Runtime.InteropServices;
|
||||
using GLib;
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
internal delegate bool IOFuncNative(IntPtr source, int condition, IntPtr data);
|
||||
|
||||
internal class IOFuncWrapper {
|
||||
|
@ -319,100 +319,100 @@ namespace GLib {
|
|||
return (IOChannelError) g_io_channel_error_from_errno (en);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_io_channel_unix_new (int fd);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_io_channel_new_file (IntPtr filename, IntPtr mode, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_error_quark ();
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_error_from_errno (int en);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_flush (IntPtr raw, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_io_channel_init (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_read_chars (IntPtr raw, byte[] buf, UIntPtr count, out UIntPtr bytes_read, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_read_line (IntPtr raw, out IntPtr str_return, IntPtr length, out UIntPtr terminator_pos, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_read_to_end (IntPtr raw, out IntPtr str_return, out UIntPtr length, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_read_unichar (IntPtr raw, out uint thechar, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_seek_position (IntPtr raw, long offset, int type, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_shutdown (IntPtr raw, bool flush, out IntPtr err);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_write_chars (IntPtr raw, byte[] buf, IntPtr count, out UIntPtr bytes_written, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_write_unichar (IntPtr raw, uint thechar, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_get_buffer_condition (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_io_channel_get_buffered (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_io_channel_set_buffered (IntPtr raw, bool buffered);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern UIntPtr g_io_channel_get_buffer_size (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_io_channel_set_buffer_size (IntPtr raw, UIntPtr size);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_io_channel_get_close_on_unref (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_io_channel_set_close_on_unref (IntPtr raw, bool do_close);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_io_channel_get_encoding (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_set_encoding (IntPtr raw, IntPtr encoding, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_get_flags (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_set_flags (IntPtr raw, int flags, out IntPtr error);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_io_channel_get_line_term (IntPtr raw, out int length);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_io_channel_set_line_term (IntPtr raw, byte[] term, int length);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_io_channel_unix_get_fd (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_io_channel_ref (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_io_channel_unref (IntPtr raw);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_io_add_watch_full (IntPtr raw, int priority, int condition, IOFuncNative func, IntPtr user_data, DestroyNotify notify);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_io_create_watch (IntPtr raw, int condition);
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace GLib {
|
|||
|
||||
public class Idle {
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool IdleHandlerInternal ();
|
||||
|
||||
|
||||
|
@ -65,7 +65,7 @@ namespace GLib {
|
|||
{
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_idle_add (IdleHandlerInternal d, IntPtr data);
|
||||
|
||||
public static uint Add (IdleHandler hndlr)
|
||||
|
@ -78,7 +78,7 @@ namespace GLib {
|
|||
return p.ID;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_idle_add_full (int priority, IdleHandlerInternal d, IntPtr data, DestroyNotify notify);
|
||||
|
||||
public static uint Add (IdleHandler hndlr, Priority priority)
|
||||
|
@ -91,7 +91,7 @@ namespace GLib {
|
|||
return p.ID;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_source_remove_by_funcs_user_data (Delegate d, IntPtr data);
|
||||
|
||||
public static void Remove (uint id)
|
||||
|
|
12
glib/List.cs
12
glib/List.cs
|
@ -26,7 +26,7 @@ namespace GLib {
|
|||
|
||||
public class List : ListBase {
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_list_copy (IntPtr l);
|
||||
|
||||
public override object Clone ()
|
||||
|
@ -34,7 +34,7 @@ namespace GLib {
|
|||
return new List (g_list_copy (Handle));
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_list_length (IntPtr l);
|
||||
|
||||
internal override int Length (IntPtr list)
|
||||
|
@ -42,7 +42,7 @@ namespace GLib {
|
|||
return g_list_length (list);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_list_free(IntPtr l);
|
||||
|
||||
internal override void Free (IntPtr list)
|
||||
|
@ -51,7 +51,7 @@ namespace GLib {
|
|||
g_list_free (list);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_list_append (IntPtr l, IntPtr raw);
|
||||
|
||||
internal override IntPtr Append (IntPtr list, IntPtr raw)
|
||||
|
@ -59,7 +59,7 @@ namespace GLib {
|
|||
return g_list_append (list, raw);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_list_prepend (IntPtr l, IntPtr raw);
|
||||
|
||||
internal override IntPtr Prepend (IntPtr list, IntPtr raw)
|
||||
|
@ -67,7 +67,7 @@ namespace GLib {
|
|||
return g_list_prepend (list, raw);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_list_nth_data (IntPtr l, uint n);
|
||||
|
||||
internal override IntPtr NthData (uint n)
|
||||
|
|
|
@ -180,10 +180,10 @@ namespace GLib {
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_free (IntPtr item);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_unref (IntPtr item);
|
||||
|
||||
public void Empty ()
|
||||
|
|
22
glib/Log.cs
22
glib/Log.cs
|
@ -58,7 +58,7 @@ namespace GLib {
|
|||
|
||||
public class Log {
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void LogFuncNative (IntPtr log_domain, LogLevelFlags flags, IntPtr message, IntPtr user_data);
|
||||
|
||||
static LogFuncNative native_handler;
|
||||
|
@ -75,7 +75,7 @@ namespace GLib {
|
|||
func (log_domain, flags, message);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void PrintFuncNative (IntPtr message);
|
||||
|
||||
class PrintHelper {
|
||||
|
@ -124,7 +124,7 @@ namespace GLib {
|
|||
handlers = new System.Collections.Generic.Dictionary<uint, GCHandle> ();
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_logv (IntPtr log_domain, LogLevelFlags flags, IntPtr message);
|
||||
|
||||
public void WriteLog (string logDomain, LogLevelFlags flags, string format, params object [] args)
|
||||
|
@ -136,7 +136,7 @@ namespace GLib {
|
|||
Marshaller.Free (nmessage);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_log_set_handler (IntPtr log_domain, LogLevelFlags flags, LogFuncNative log_func, IntPtr user_data);
|
||||
|
||||
public static uint SetLogHandler (string logDomain, LogLevelFlags flags, LogFunc logFunc)
|
||||
|
@ -153,7 +153,7 @@ namespace GLib {
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_log_remove_handler (IntPtr log_domain, uint handler_id);
|
||||
|
||||
public static void RemoveLogHandler (string logDomain, uint handlerID)
|
||||
|
@ -168,7 +168,7 @@ namespace GLib {
|
|||
Marshaller.Free (ndom);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern PrintFuncNative g_set_print_handler (PrintFuncNative handler);
|
||||
|
||||
public static PrintFunc SetPrintHandler (PrintFunc handler)
|
||||
|
@ -179,7 +179,7 @@ namespace GLib {
|
|||
return helper.Invoker;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern PrintFuncNative g_set_printerr_handler (PrintFuncNative handler);
|
||||
|
||||
public static PrintFunc SetPrintErrorHandler (PrintFunc handler)
|
||||
|
@ -190,7 +190,7 @@ namespace GLib {
|
|||
return helper.Invoker;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_log_default_handler (IntPtr log_domain, LogLevelFlags log_level, IntPtr message, IntPtr unused_data);
|
||||
|
||||
public static void DefaultHandler (string logDomain, LogLevelFlags logLevel, string message)
|
||||
|
@ -203,7 +203,7 @@ namespace GLib {
|
|||
Marshaller.Free (nmess);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
extern static LogLevelFlags g_log_set_always_fatal (LogLevelFlags fatal_mask);
|
||||
|
||||
public static LogLevelFlags SetAlwaysFatal (LogLevelFlags fatalMask)
|
||||
|
@ -211,7 +211,7 @@ namespace GLib {
|
|||
return g_log_set_always_fatal (fatalMask);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
extern static LogLevelFlags g_log_set_fatal_mask (IntPtr log_domain, LogLevelFlags fatal_mask);
|
||||
|
||||
public static LogLevelFlags SetAlwaysFatal (string logDomain, LogLevelFlags fatalMask)
|
||||
|
@ -245,7 +245,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
extern static LogFuncNative g_log_set_default_handler (LogFuncNative log_func, IntPtr user_data);
|
||||
|
||||
public static LogFunc SetDefaultHandler (LogFunc log_func)
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace GLib {
|
|||
public class MainContext {
|
||||
IntPtr handle;
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_main_context_new ();
|
||||
|
||||
public MainContext ()
|
||||
|
@ -35,7 +35,7 @@ namespace GLib {
|
|||
handle = g_main_context_new ();
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_main_context_ref (IntPtr raw);
|
||||
|
||||
internal MainContext (IntPtr raw)
|
||||
|
@ -50,7 +50,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_main_context_unref (IntPtr raw);
|
||||
|
||||
~MainContext ()
|
||||
|
@ -59,7 +59,7 @@ namespace GLib {
|
|||
handle = IntPtr.Zero;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_main_context_default ();
|
||||
|
||||
public static MainContext Default {
|
||||
|
@ -68,7 +68,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_main_context_thread_default ();
|
||||
|
||||
public MainContext ThreadDefault {
|
||||
|
@ -79,7 +79,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_main_context_push_thread_default (IntPtr raw);
|
||||
|
||||
public void PushThreadDefault ()
|
||||
|
@ -87,7 +87,7 @@ namespace GLib {
|
|||
g_main_context_push_thread_default (handle);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_main_context_pop_thread_default (IntPtr raw);
|
||||
|
||||
public void PopThreadDefault ()
|
||||
|
@ -96,7 +96,7 @@ namespace GLib {
|
|||
}
|
||||
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_main_context_iteration (IntPtr raw, bool may_block);
|
||||
|
||||
public bool RunIteration (bool may_block)
|
||||
|
@ -109,7 +109,7 @@ namespace GLib {
|
|||
return RunIteration (false);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_main_context_pending (IntPtr raw);
|
||||
|
||||
public bool HasPendingEvents
|
||||
|
@ -119,7 +119,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_main_context_wakeup (IntPtr raw);
|
||||
|
||||
public void Wakeup ()
|
||||
|
@ -142,7 +142,7 @@ namespace GLib {
|
|||
}
|
||||
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_main_depth ();
|
||||
public static int Depth {
|
||||
get { return g_main_depth (); }
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace GLib {
|
|||
public class MainLoop {
|
||||
private IntPtr handle;
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_main_loop_new (IntPtr context, bool isRunning);
|
||||
|
||||
public MainLoop () : this (MainContext.Default) { }
|
||||
|
@ -37,7 +37,7 @@ namespace GLib {
|
|||
handle = g_main_loop_new (context.Handle, is_running);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_main_loop_unref (IntPtr loop);
|
||||
|
||||
~MainLoop ()
|
||||
|
@ -46,7 +46,7 @@ namespace GLib {
|
|||
handle = IntPtr.Zero;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_main_loop_is_running (IntPtr loop);
|
||||
|
||||
public bool IsRunning {
|
||||
|
@ -55,7 +55,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_main_loop_run (IntPtr loop);
|
||||
|
||||
public void Run ()
|
||||
|
@ -63,7 +63,7 @@ namespace GLib {
|
|||
g_main_loop_run (handle);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_main_loop_quit (IntPtr loop);
|
||||
|
||||
public void Quit ()
|
||||
|
@ -71,7 +71,7 @@ namespace GLib {
|
|||
g_main_loop_quit (handle);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_main_loop_get_context (IntPtr loop);
|
||||
|
||||
public MainContext Context {
|
||||
|
|
|
@ -58,16 +58,16 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr CopyFunc (IntPtr gch);
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void FreeFunc (IntPtr gch);
|
||||
|
||||
static CopyFunc copy;
|
||||
static FreeFunc free;
|
||||
static GType boxed_type = GType.Invalid;
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_boxed_type_register_static (IntPtr typename, CopyFunc copy_func, FreeFunc free_func);
|
||||
|
||||
public static GType GType {
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace GLib {
|
|||
public class Markup {
|
||||
private Markup () {}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_markup_escape_text (IntPtr text, int len);
|
||||
|
||||
static public string EscapeText (string s)
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace GLib {
|
|||
|
||||
private Marshaller () {}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_free (IntPtr mem);
|
||||
|
||||
public static void Free (IntPtr ptr)
|
||||
|
@ -46,7 +46,7 @@ namespace GLib {
|
|||
g_free (ptrs [i]);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_filename_to_utf8 (IntPtr mem, int len, IntPtr read, out IntPtr written, out IntPtr error);
|
||||
|
||||
public static string FilenamePtrToString (IntPtr ptr)
|
||||
|
@ -114,7 +114,7 @@ namespace GLib {
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_filename_from_utf8 (IntPtr mem, int len, IntPtr read, out IntPtr written, out IntPtr error);
|
||||
|
||||
public static IntPtr StringToFilenamePtr (string str)
|
||||
|
@ -161,7 +161,7 @@ namespace GLib {
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_strfreev (IntPtr mem);
|
||||
|
||||
public static void StrFreeV (IntPtr null_term_array)
|
||||
|
@ -215,7 +215,7 @@ namespace GLib {
|
|||
// transparently, since we need to alloc buffers of
|
||||
// [native pointer size] * [count] bytes.
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_malloc(UIntPtr size);
|
||||
|
||||
public static IntPtr Malloc (ulong size)
|
||||
|
@ -328,10 +328,10 @@ namespace GLib {
|
|||
return local_epoch.AddSeconds (time_t.ToInt64 () + utc_offset);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_malloc0 (UIntPtr size);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_unichar_to_utf8 (uint c, IntPtr buf);
|
||||
|
||||
public static char GUnicharToChar (uint ucs4_char)
|
||||
|
@ -356,7 +356,7 @@ namespace GLib {
|
|||
return PtrToStringGFree (buf);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_utf16_to_ucs4 (ref ushort c, IntPtr len, IntPtr d1, IntPtr d2, IntPtr d3);
|
||||
|
||||
public static uint CharToGUnichar (char c)
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace GLib {
|
|||
public delegate void NotifyHandler (object o, NotifyArgs args);
|
||||
|
||||
public class NotifyArgs : GLib.SignalArgs {
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_get_name (IntPtr pspec);
|
||||
|
||||
public string Property {
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_unref (IntPtr raw);
|
||||
|
||||
static bool PerformQueuedUnrefs ()
|
||||
|
@ -93,7 +93,7 @@ namespace GLib {
|
|||
GC.SuppressFinalize (this);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_object_ref (IntPtr raw);
|
||||
|
||||
public static Object GetObject(IntPtr o, bool owned_ref)
|
||||
|
@ -218,7 +218,7 @@ namespace GLib {
|
|||
Marshal.StructureToPtr (klass, class_ptr, false);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_class_install_property (IntPtr klass, uint prop_id, IntPtr param_spec);
|
||||
|
||||
static IntPtr RegisterProperty (GType type, string name, string nick, string blurb, uint property_id, GType property_type, bool can_read, bool can_write)
|
||||
|
@ -257,7 +257,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void GetPropertyDelegate (IntPtr GObject, uint property_id, ref GLib.Value value, IntPtr pspec);
|
||||
|
||||
static void GetPropertyCallback (IntPtr handle, uint property_id, ref GLib.Value value, IntPtr param_spec)
|
||||
|
@ -275,7 +275,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void SetPropertyDelegate (IntPtr GObject, uint property_id, ref GLib.Value value, IntPtr pspec);
|
||||
|
||||
static void SetPropertyCallback(IntPtr handle, uint property_id, ref GLib.Value value, IntPtr param_spec)
|
||||
|
@ -293,7 +293,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_type_add_interface_static (IntPtr gtype, IntPtr iface_type, ref GInterfaceInfo info);
|
||||
|
||||
static void AddInterfaces (GType gtype, Type t)
|
||||
|
@ -347,7 +347,7 @@ namespace GLib {
|
|||
CreateNativeObject (new string [0], new GLib.Value [0]);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_object_new (IntPtr gtype, IntPtr dummy);
|
||||
|
||||
struct GParameter {
|
||||
|
@ -355,7 +355,7 @@ namespace GLib {
|
|||
public GLib.Value val;
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_object_newv (IntPtr gtype, int n_params, GParameter[] parms);
|
||||
|
||||
protected virtual void CreateNativeObject (string[] names, GLib.Value[] vals)
|
||||
|
@ -469,7 +469,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void NotifyDelegate (IntPtr handle, IntPtr pspec, IntPtr gch);
|
||||
|
||||
void NotifyCallback (IntPtr handle, IntPtr pspec, IntPtr gch)
|
||||
|
@ -545,7 +545,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_get_property (IntPtr obj, IntPtr name, ref GLib.Value val);
|
||||
|
||||
protected GLib.Value GetProperty (string name)
|
||||
|
@ -557,7 +557,7 @@ namespace GLib {
|
|||
return val;
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_set_property (IntPtr obj, IntPtr name, ref GLib.Value val);
|
||||
|
||||
protected void SetProperty (string name, GLib.Value val)
|
||||
|
@ -567,7 +567,7 @@ namespace GLib {
|
|||
GLib.Marshaller.Free (native_name);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_notify (IntPtr obj, IntPtr property_name);
|
||||
|
||||
protected void Notify (string property_name)
|
||||
|
@ -582,10 +582,10 @@ namespace GLib {
|
|||
Signal.OverrideDefaultHandler (gtype, name, cb);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
protected static extern void g_signal_chain_from_overridden (IntPtr args, ref GLib.Value retval);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_type_check_instance_is_a (IntPtr obj, IntPtr gtype);
|
||||
|
||||
internal static bool IsObject (IntPtr obj)
|
||||
|
|
|
@ -83,7 +83,7 @@ namespace GLib {
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_type_parent (IntPtr typ);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -126,58 +126,58 @@ namespace GLib {
|
|||
uint param_id;
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_char (IntPtr name, IntPtr nick, IntPtr blurb, sbyte min, sbyte max, sbyte dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_uchar (IntPtr name, IntPtr nick, IntPtr blurb, byte min, byte max, byte dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_boolean (IntPtr name, IntPtr nick, IntPtr blurb, bool dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_int (IntPtr name, IntPtr nick, IntPtr blurb, int min, int max, int dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_uint (IntPtr name, IntPtr nick, IntPtr blurb, uint min, uint max, uint dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_long (IntPtr name, IntPtr nick, IntPtr blurb, IntPtr min, IntPtr max, IntPtr dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_ulong (IntPtr name, IntPtr nick, IntPtr blurb, UIntPtr min, UIntPtr max, UIntPtr dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_int64 (IntPtr name, IntPtr nick, IntPtr blurb, long min, long max, long dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_uint64 (IntPtr name, IntPtr nick, IntPtr blurb, ulong min, ulong max, ulong dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_float (IntPtr name, IntPtr nick, IntPtr blurb, float min, float max, float dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_double (IntPtr name, IntPtr nick, IntPtr blurb, double min, double max, double dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_string (IntPtr name, IntPtr nick, IntPtr blurb, IntPtr dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_pointer (IntPtr name, IntPtr nick, IntPtr blurb, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_gtype (IntPtr name, IntPtr nick, IntPtr blurb, IntPtr dval, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_boxed (IntPtr name, IntPtr nick, IntPtr blurb, IntPtr return_type, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_param_spec_object (IntPtr name, IntPtr nick, IntPtr blurb, IntPtr return_type, int flags);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_gtype_get_type ();
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_type_is_a (IntPtr a, IntPtr b);
|
||||
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace GLib {
|
|||
internal bool elements_owned = false;
|
||||
protected System.Type element_type = null;
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_ptr_array_sized_new (uint n_preallocs);
|
||||
|
||||
public PtrArray (uint n_preallocs, System.Type element_type, bool owned, bool elements_owned)
|
||||
|
@ -43,7 +43,7 @@ namespace GLib {
|
|||
this.elements_owned = elements_owned;
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_ptr_array_new ();
|
||||
|
||||
public PtrArray (System.Type element_type, bool owned, bool elements_owned)
|
||||
|
@ -77,13 +77,13 @@ namespace GLib {
|
|||
GC.SuppressFinalize (this);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_ptr_array_free (IntPtr raw, bool free_seg);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_unref (IntPtr item);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_free (IntPtr item);
|
||||
|
||||
void Dispose (bool disposing)
|
||||
|
@ -120,7 +120,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_ptr_array_add (IntPtr raw, IntPtr val);
|
||||
|
||||
public void Add (IntPtr val)
|
||||
|
@ -128,7 +128,7 @@ namespace GLib {
|
|||
g_ptr_array_add (Handle, val);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_ptr_array_remove (IntPtr raw, IntPtr data);
|
||||
|
||||
public void Remove (IntPtr data)
|
||||
|
@ -136,7 +136,7 @@ namespace GLib {
|
|||
g_ptr_array_remove (Handle, data);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_ptr_array_remove_range (IntPtr raw, uint index, uint length);
|
||||
|
||||
public void RemoveRange (IntPtr data, uint index, uint length)
|
||||
|
@ -260,7 +260,7 @@ namespace GLib {
|
|||
return new ListEnumerator (this);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_ptr_array_copy (IntPtr raw);
|
||||
|
||||
// ICloneable
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace GLib {
|
|||
|
||||
public class SList : ListBase {
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_slist_copy (IntPtr l);
|
||||
|
||||
public override object Clone ()
|
||||
|
@ -34,7 +34,7 @@ namespace GLib {
|
|||
return new SList (g_slist_copy (Handle));
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_slist_length (IntPtr l);
|
||||
|
||||
internal override int Length (IntPtr list)
|
||||
|
@ -42,7 +42,7 @@ namespace GLib {
|
|||
return g_slist_length (list);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_slist_free(IntPtr l);
|
||||
|
||||
internal override void Free (IntPtr list)
|
||||
|
@ -51,7 +51,7 @@ namespace GLib {
|
|||
g_slist_free (list);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_slist_append (IntPtr l, IntPtr raw);
|
||||
|
||||
internal override IntPtr Append (IntPtr list, IntPtr raw)
|
||||
|
@ -59,7 +59,7 @@ namespace GLib {
|
|||
return g_slist_append (list, raw);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_slist_prepend (IntPtr l, IntPtr raw);
|
||||
|
||||
internal override IntPtr Prepend (IntPtr list, IntPtr raw)
|
||||
|
@ -68,7 +68,7 @@ namespace GLib {
|
|||
}
|
||||
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_slist_nth_data (IntPtr l, uint n);
|
||||
|
||||
internal override IntPtr NthData (uint n)
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace GLib {
|
|||
public IntPtr param_types;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
public delegate bool EmissionHookNative (ref InvocationHint hint, uint n_pvals, IntPtr pvals, IntPtr data);
|
||||
|
||||
public delegate bool EmissionHook (InvocationHint ihint, object[] inst_and_param_values);
|
||||
|
@ -388,32 +388,32 @@ namespace GLib {
|
|||
g_signal_override_class_closure (id, gtype.Val, closure);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_cclosure_new (Delegate cb, IntPtr data, IntPtr notify);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_signal_get_invocation_hint (IntPtr instance);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_signal_emitv (IntPtr instance_and_params, uint signal_id, uint gquark_detail, ref GLib.Value return_value);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_signal_emitv (IntPtr instance_and_params, uint signal_id, uint gquark_detail, IntPtr return_value);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_signal_lookup (IntPtr name, IntPtr itype);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_signal_override_class_closure (uint id, IntPtr gtype, IntPtr closure);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_signal_query (uint signal_id, out Query query);
|
||||
|
||||
//better not to expose g_quark_from_static_string () due to memory allocation issues
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_quark_from_string (IntPtr str);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern ulong g_signal_add_emission_hook (uint signal_id, uint gquark_detail, EmissionHookNative hook_func, IntPtr hook_data, IntPtr data_destroy);
|
||||
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace GLib {
|
|||
_handler = Delegate.Remove (_handler, d);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_signal_connect_data(IntPtr obj, IntPtr name, Delegate cb, int key, IntPtr p, int flags);
|
||||
|
||||
protected void Connect (string name, Delegate cb, int flags)
|
||||
|
@ -70,10 +70,10 @@ namespace GLib {
|
|||
Marshaller.Free (native_name);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_signal_handler_disconnect (IntPtr instance, uint handler);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_signal_handler_is_connected (IntPtr instance, uint handler);
|
||||
|
||||
protected void Disconnect ()
|
||||
|
|
|
@ -136,7 +136,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ClosureMarshal (IntPtr closure, IntPtr return_val, uint n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data);
|
||||
|
||||
static void MarshalCallback (IntPtr raw_closure, IntPtr return_val, uint n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
|
||||
|
@ -183,7 +183,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ClosureNotify (IntPtr data, IntPtr closure);
|
||||
|
||||
static void NotifyCallback (IntPtr data, IntPtr raw_closure)
|
||||
|
@ -202,25 +202,25 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_cclosure_new (Delegate cb, IntPtr user_data, ClosureNotify notify);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_closure_new_simple (int closure_size, IntPtr dummy);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_closure_set_marshal (IntPtr closure, ClosureMarshal marshaler);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_closure_add_finalize_notifier (IntPtr closure, IntPtr dummy, ClosureNotify notify);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_signal_connect_closure (IntPtr obj, IntPtr name, IntPtr closure, bool is_after);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_signal_handler_disconnect (IntPtr instance, uint handler);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_signal_handler_is_connected (IntPtr instance, uint handler);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace GLib {
|
|||
|
||||
internal static Hashtable source_handlers = new Hashtable ();
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_source_remove (uint tag);
|
||||
|
||||
public static bool Remove (uint tag)
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace GLib {
|
|||
|
||||
public delegate void SpawnChildSetupFunc ();
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
internal delegate void SpawnChildSetupFuncNative (IntPtr gch);
|
||||
|
||||
internal class SpawnChildSetupWrapper {
|
||||
|
@ -102,7 +102,7 @@ namespace GLib {
|
|||
this.pid = pid;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_spawn_close_pid (int pid);
|
||||
|
||||
public void Close ()
|
||||
|
@ -110,7 +110,7 @@ namespace GLib {
|
|||
g_spawn_close_pid ((int) pid);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_spawn_async (IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out int pid, out IntPtr error);
|
||||
|
||||
public static bool SpawnAsync (string working_directory, string[] argv, string[] envp, SpawnFlags flags, SpawnChildSetupFunc child_setup, out Process child_process)
|
||||
|
@ -130,7 +130,7 @@ namespace GLib {
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_spawn_async_with_pipes (IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out int pid, IntPtr stdin, IntPtr stdout, IntPtr stderr, out IntPtr error);
|
||||
|
||||
public static bool SpawnAsyncWithPipes (string working_directory, string[] argv, string[] envp, SpawnFlags flags, SpawnChildSetupFunc child_setup, out Process child_process, ref int stdin, ref int stdout, ref int stderr)
|
||||
|
@ -165,7 +165,7 @@ namespace GLib {
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_spawn_sync (IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out IntPtr stdout, out IntPtr stderr, out int exit_status, out IntPtr error);
|
||||
|
||||
public static bool SpawnSync (string working_directory, string[] argv, string[] envp, SpawnFlags flags, SpawnChildSetupFunc child_setup, out string stdout, out string stderr, out int exit_status)
|
||||
|
@ -185,7 +185,7 @@ namespace GLib {
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_spawn_command_line_async (IntPtr cmdline, out IntPtr error);
|
||||
|
||||
public static bool SpawnCommandLineAsync (string command_line)
|
||||
|
@ -198,7 +198,7 @@ namespace GLib {
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_spawn_command_line_sync (IntPtr cmdline, out IntPtr stdout, out IntPtr stderr, out int exit_status, out IntPtr error);
|
||||
|
||||
public static bool SpawnCommandLineSync (string command_line, out string stdout, out string stderr, out int exit_status)
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace GLib
|
|||
{
|
||||
private Thread () {}
|
||||
|
||||
[DllImport ("libgthread-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgthread-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_thread_init (IntPtr i);
|
||||
|
||||
public static void Init ()
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace GLib {
|
|||
|
||||
public class Timeout {
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool TimeoutHandlerInternal ();
|
||||
|
||||
internal class TimeoutProxy : SourceProxy {
|
||||
|
@ -59,7 +59,7 @@ namespace GLib {
|
|||
}
|
||||
|
||||
private Timeout () {}
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_timeout_add (uint interval, TimeoutHandlerInternal d, IntPtr data);
|
||||
|
||||
public static uint Add (uint interval, TimeoutHandler hndlr)
|
||||
|
@ -73,7 +73,7 @@ namespace GLib {
|
|||
return p.ID;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_timeout_add_full (int priority, uint interval, TimeoutHandlerInternal d, IntPtr data, DestroyNotify notify);
|
||||
|
||||
public static uint Add (uint interval, TimeoutHandler hndlr, Priority priority)
|
||||
|
@ -87,7 +87,7 @@ namespace GLib {
|
|||
return p.ID;
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_timeout_add_seconds (uint interval, TimeoutHandlerInternal d, IntPtr data);
|
||||
|
||||
public static uint AddSeconds (uint interval, TimeoutHandler hndlr)
|
||||
|
@ -106,7 +106,7 @@ namespace GLib {
|
|||
Source.Remove (id);
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_source_remove_by_funcs_user_data (Delegate d, IntPtr data);
|
||||
|
||||
public static bool Remove (TimeoutHandler hndlr)
|
||||
|
|
|
@ -120,7 +120,7 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ToggleNotifyHandler (IntPtr data, IntPtr handle, bool is_last_ref);
|
||||
|
||||
static void RefToggled (IntPtr data, IntPtr handle, bool is_last_ref)
|
||||
|
@ -143,16 +143,16 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_add_toggle_ref (IntPtr raw, ToggleNotifyHandler notify_cb, IntPtr data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_remove_toggle_ref (IntPtr raw, ToggleNotifyHandler notify_cb, IntPtr data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_object_ref (IntPtr raw);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_unref (IntPtr raw);
|
||||
|
||||
}
|
||||
|
|
|
@ -563,113 +563,113 @@ namespace GLib {
|
|||
g_value_init (ref this, spec.ValueType.Val);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_object_class_find_property (IntPtr klass, IntPtr name);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_type_check_value_holds (ref Value val, IntPtr gtype);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_init (ref GLib.Value val, IntPtr gtype);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_unset (ref GLib.Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_boolean (ref Value val, bool data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_uchar (ref Value val, byte data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_char (ref Value val, sbyte data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_boxed (ref Value val, IntPtr data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_double (ref Value val, double data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_float (ref Value val, float data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_int (ref Value val, int data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_int64 (ref Value val, long data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_uint64 (ref Value val, ulong data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_object (ref Value val, IntPtr data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_param (ref Value val, IntPtr data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_pointer (ref Value val, IntPtr data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_string (ref Value val, IntPtr data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_uint (ref Value val, uint data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_enum (ref Value val, int data);
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_set_flags (ref Value val, uint data);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_value_get_boolean (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern byte g_value_get_uchar (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern sbyte g_value_get_char (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_get_boxed (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern double g_value_get_double (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern float g_value_get_float (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_value_get_int (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern long g_value_get_int64 (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern ulong g_value_get_uint64 (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_get_object (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_get_param (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_get_pointer (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_get_string (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_value_get_uint (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int g_value_get_enum (ref Value val);
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint g_value_get_flags (ref Value val);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_strv_get_type ();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace GLib {
|
|||
static private ArrayList PendingFrees = new ArrayList ();
|
||||
static private bool idle_queued = false;
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_array_new (uint n_preallocs);
|
||||
|
||||
public ValueArray (uint n_preallocs)
|
||||
|
@ -57,7 +57,7 @@ namespace GLib {
|
|||
GC.SuppressFinalize (this);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_array_free (IntPtr raw);
|
||||
|
||||
void Dispose (bool disposing)
|
||||
|
@ -115,7 +115,7 @@ namespace GLib {
|
|||
get { return Native.values; }
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_array_append (IntPtr raw, ref GLib.Value val);
|
||||
|
||||
public void Append (GLib.Value val)
|
||||
|
@ -123,7 +123,7 @@ namespace GLib {
|
|||
g_value_array_append (Handle, ref val);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_array_insert (IntPtr raw, uint idx, ref GLib.Value val);
|
||||
|
||||
public void Insert (uint idx, GLib.Value val)
|
||||
|
@ -131,7 +131,7 @@ namespace GLib {
|
|||
g_value_array_insert (Handle, idx, ref val);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_array_prepend (IntPtr raw, ref GLib.Value val);
|
||||
|
||||
public void Prepend (GLib.Value val)
|
||||
|
@ -139,7 +139,7 @@ namespace GLib {
|
|||
g_value_array_prepend (Handle, ref val);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_value_array_remove (IntPtr raw, uint idx);
|
||||
|
||||
public void Remove (uint idx)
|
||||
|
@ -152,7 +152,7 @@ namespace GLib {
|
|||
get { return (int) Native.n_values; }
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_array_get_nth (IntPtr raw, uint idx);
|
||||
|
||||
public object this [int index] {
|
||||
|
@ -226,7 +226,7 @@ namespace GLib {
|
|||
return new ListEnumerator (this);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_array_copy (IntPtr raw);
|
||||
|
||||
// ICloneable
|
||||
|
@ -235,7 +235,7 @@ namespace GLib {
|
|||
return new ValueArray (g_value_array_copy (Handle));
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_value_array_get_type ();
|
||||
|
||||
public static GLib.GType GType {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_accel_map_save(IntPtr file_name);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.Save instead")]
|
||||
|
@ -28,7 +28,7 @@
|
|||
GLib.Marshaller.Free (native);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_accel_map_add_filter(IntPtr filter_pattern);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.AddFilter instead")]
|
||||
|
@ -38,7 +38,7 @@
|
|||
GLib.Marshaller.Free (native);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_accel_map_foreach_unfiltered(IntPtr data, GtkSharp.AccelMapForeachNative foreach_func);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.ForeachUnfiltered instead")]
|
||||
|
@ -47,7 +47,7 @@
|
|||
gtk_accel_map_foreach_unfiltered(data, foreach_func_wrapper.NativeDelegate);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_accel_map_save_fd(int fd);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.SaveFd instead")]
|
||||
|
@ -55,7 +55,7 @@
|
|||
gtk_accel_map_save_fd(fd);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_accel_map_add_entry(IntPtr accel_path, uint accel_key, int accel_mods);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.AddEntry instead")]
|
||||
|
@ -65,7 +65,7 @@
|
|||
GLib.Marshaller.Free (native);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_accel_map_load_fd(int fd);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.LoadFd instead")]
|
||||
|
@ -73,7 +73,7 @@
|
|||
gtk_accel_map_load_fd(fd);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_accel_map_lookup_entry(IntPtr accel_path, ref Gtk.AccelKey key);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.LookupEntry instead")]
|
||||
|
@ -84,7 +84,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_accel_map_change_entry(IntPtr accel_path, uint accel_key, int accel_mods, bool replace);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.ChangeEntry instead")]
|
||||
|
@ -95,7 +95,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_accel_map_load (IntPtr file_name);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.Load instead")]
|
||||
|
@ -105,7 +105,7 @@
|
|||
GLib.Marshaller.Free (native);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_accel_map_foreach(IntPtr data, GtkSharp.AccelMapForeachNative foreach_func);
|
||||
|
||||
[Obsolete("Moved to AccelMap class. Use AccelMap.Foreach instead")]
|
||||
|
@ -114,7 +114,7 @@
|
|||
gtk_accel_map_foreach(data, foreach_func_wrapper.NativeDelegate);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_accel_groups_from_object (IntPtr obj);
|
||||
|
||||
public static AccelGroup[] GroupsFromObject (GLib.Object obj)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
{
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_action_get_proxies (IntPtr raw);
|
||||
|
||||
public Gtk.Widget[] Proxies {
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
actions[0].Changed += changed;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_action_group_list_actions (IntPtr raw);
|
||||
|
||||
public Gtk.Action[] ListActions() {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
//
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size);
|
||||
|
||||
public Adjustment (double value, double lower, double upper, double step_increment, double page_increment, double page_size) : base (IntPtr.Zero)
|
||||
|
@ -37,10 +37,10 @@ public Adjustment (double value, double lower, double upper, double step_increme
|
|||
Raw = gtk_adjustment_new(value, lower, upper, step_increment, page_increment, page_size);
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_freeze_notify (IntPtr inst);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_thaw_notify (IntPtr inst);
|
||||
|
||||
public void SetBounds (double lower, double upper, double step_increment, double page_increment, double page_size)
|
||||
|
|
|
@ -54,10 +54,10 @@ namespace Gtk {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_init (ref int argc, ref IntPtr argv);
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_init_check (ref int argc, ref IntPtr argv);
|
||||
|
||||
static void SetPrgname ()
|
||||
|
@ -119,7 +119,7 @@ namespace Gtk {
|
|||
return do_init (progname, ref args, true);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_main ();
|
||||
|
||||
public static void Run ()
|
||||
|
@ -127,7 +127,7 @@ namespace Gtk {
|
|||
gtk_main ();
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_events_pending ();
|
||||
|
||||
|
||||
|
@ -136,10 +136,10 @@ namespace Gtk {
|
|||
return gtk_events_pending ();
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_main_iteration ();
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_main_iteration_do (bool blocking);
|
||||
|
||||
public static void RunIteration ()
|
||||
|
@ -152,7 +152,7 @@ namespace Gtk {
|
|||
return gtk_main_iteration_do (blocking);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_main_quit ();
|
||||
|
||||
public static void Quit ()
|
||||
|
@ -161,7 +161,7 @@ namespace Gtk {
|
|||
}
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_get_current_event ();
|
||||
|
||||
public static Gdk.Event CurrentEvent {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_bin_get_child(IntPtr raw);
|
||||
|
||||
public new Gtk.Widget Child {
|
||||
|
|
|
@ -226,7 +226,7 @@ class SignalConnector
|
|||
this.handler_type = handler_type;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_builder_connect_signals_full(IntPtr raw, GtkSharp.BuilderConnectFuncNative func, IntPtr user_data);
|
||||
|
||||
public void ConnectSignals() {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_button_new_from_stock(IntPtr stock_id);
|
||||
|
||||
public Button (string stock_id) : base (IntPtr.Zero)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_cell_renderer_start_editing (IntPtr handle, IntPtr evnt, IntPtr widget, IntPtr path, ref Gdk.Rectangle bg_area, ref Gdk.Rectangle cell_area, int flags);
|
||||
|
||||
public CellEditable StartEditing (Widget widget, Gdk.Event evnt, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, CellRendererState flags)
|
||||
|
@ -36,7 +36,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_cell_renderer_render (IntPtr handle, IntPtr drawable, IntPtr widget, ref Gdk.Rectangle bg_area, ref Gdk.Rectangle cell_area, ref Gdk.Rectangle expose_area, int flags);
|
||||
|
||||
public void Render (Widget widget, Gdk.Drawable window, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, CellRendererState flags)
|
||||
|
@ -46,7 +46,7 @@
|
|||
|
||||
// We have to implement this VM manually because x_offset, y_offset, width and height params may be NULL and therefore cannot be treated as "out int"
|
||||
// TODO: Implement "nullable" attribute for value type parameters in GAPI
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void OnGetSizeDelegate (IntPtr item, IntPtr widget, IntPtr cell_area_ptr, IntPtr x_offset, IntPtr y_offset, IntPtr width, IntPtr height);
|
||||
|
||||
static void OnGetSize_cb (IntPtr item, IntPtr widget, IntPtr cell_area_ptr, IntPtr x_offset, IntPtr y_offset, IntPtr width, IntPtr height)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_check_menu_item_new_with_mnemonic (IntPtr label);
|
||||
|
||||
public CheckMenuItem (string label) : base (IntPtr.Zero)
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_clipboard_set_with_data(IntPtr raw, TargetEntry[] targets, int n_targets, GtkSharp.ClipboardGetFuncNative get_func, GtkSharp.ClipboardClearFuncNative clear_func, IntPtr data);
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_clipboard_set_with_owner(IntPtr raw, TargetEntry[] targets, int n_targets, GtkSharp.ClipboardGetFuncNative get_func, GtkSharp.ClipboardClearFuncNative clear_func, IntPtr owner);
|
||||
|
||||
void ClearProxy (Clipboard clipboard)
|
||||
|
@ -67,7 +67,7 @@
|
|||
Text = text;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_clipboard_wait_for_rich_text (IntPtr raw, IntPtr buffer, out IntPtr format, out UIntPtr length);
|
||||
|
||||
public byte[] WaitForRichText(Gtk.TextBuffer buffer, out Gdk.Atom format)
|
||||
|
@ -88,7 +88,7 @@
|
|||
|
||||
static RichTextReceivedFuncNative rt_rcvd_marshaler;
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void RichTextReceivedFuncNative (IntPtr clipboard, IntPtr format, IntPtr text, UIntPtr length, IntPtr data);
|
||||
|
||||
|
||||
|
@ -109,7 +109,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_clipboard_request_rich_text(IntPtr raw, IntPtr buffer, RichTextReceivedFuncNative cb, IntPtr user_data);
|
||||
|
||||
public void RequestRichText (Gtk.TextBuffer buffer, RichTextReceivedFunc cb)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_color_selection_palette_to_string(Gdk.Color[] colors, int n_colors);
|
||||
|
||||
/// <summary> PaletteToString Method </summary>
|
||||
|
@ -28,7 +28,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_color_selection_palette_from_string(IntPtr str, out IntPtr colors, out int n_colors);
|
||||
|
||||
public static Gdk.Color[] PaletteFromString(string str) {
|
||||
|
@ -53,10 +53,10 @@
|
|||
return colors;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_color_selection_set_previous_color(IntPtr raw, ref Gdk.Color color);
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_color_selection_get_previous_color(IntPtr raw, out Gdk.Color color);
|
||||
|
||||
// Create Gtk# property to replace two Gtk+ functions
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_combo_set_popdown_strings(IntPtr raw, IntPtr strings);
|
||||
|
||||
public string[] PopdownStrings {
|
||||
|
|
|
@ -53,10 +53,10 @@ public IEnumerable AllChildren {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_container_get_focus_chain (IntPtr raw, out IntPtr list_ptr);
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_container_set_focus_chain (IntPtr raw, IntPtr list_ptr);
|
||||
|
||||
public Widget[] FocusChain {
|
||||
|
@ -90,7 +90,7 @@ static extern void gtksharp_container_override_forall (IntPtr gtype, ForallDeleg
|
|||
[DllImport("gtksharpglue-3")]
|
||||
static extern void gtksharp_container_invoke_gtk_callback (IntPtr cb, IntPtr handle, IntPtr data);
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ForallDelegate (IntPtr container, bool include_internals, IntPtr cb, IntPtr data);
|
||||
|
||||
static ForallDelegate ForallOldCallback;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_dialog_new_with_buttons (IntPtr title, IntPtr i, int flags, IntPtr dummy);
|
||||
public Dialog (string title, Gtk.Window parent, Gtk.DialogFlags flags, params object[] button_data) : base(IntPtr.Zero)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_drag_set_icon_default(IntPtr context);
|
||||
|
||||
public static void SetIconDefault(Gdk.DragContext context)
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_file_chooser_dialog_new(IntPtr title, IntPtr parent, int action, IntPtr nil);
|
||||
|
||||
public FileChooserDialog (string title, Window parent, FileChooserAction action, params object[] button_data) : base (IntPtr.Zero)
|
||||
|
@ -43,7 +43,7 @@
|
|||
AddButton ((string) button_data [i], (int) button_data [i + 1]);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_file_chooser_dialog_new_with_backend(IntPtr title, IntPtr parent, int action, IntPtr backend, IntPtr nil);
|
||||
|
||||
public FileChooserDialog (string backend, string title, Window parent, FileChooserAction action, params object[] button_data) : base (IntPtr.Zero)
|
||||
|
|
|
@ -36,10 +36,10 @@ public class FSButton : Gtk.Button {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_file_selection_get_selections (IntPtr handle);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_strfreev (IntPtr handle);
|
||||
|
||||
public string[] Selections {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_hscale_new_with_range (double min, double max, double step);
|
||||
|
||||
public HScale (double min, double max, double step) : base (IntPtr.Zero)
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
extern static void gtk_icon_size_lookup (IconSize size, out int width, out int height);
|
||||
|
||||
/// <summary> Query icon dimensions </summary>
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
unsafe static extern void gtk_icon_set_get_sizes (
|
||||
IntPtr raw, out int *pointer_to_enum, out int n_sizes);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
unsafe static extern void g_free (int *mem);
|
||||
|
||||
/// <summary> Sizes Property </summary>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_icon_theme_list_icons (IntPtr raw, IntPtr context);
|
||||
|
||||
public string[] ListIcons (string context)
|
||||
|
@ -40,13 +40,13 @@
|
|||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_icon_theme_get_search_path(IntPtr raw, out IntPtr path, out int n_elements);
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_icon_theme_set_search_path(IntPtr raw, IntPtr[] path, int n_elements);
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_strfreev (IntPtr mem);
|
||||
|
||||
public string[] SearchPath {
|
||||
|
@ -87,7 +87,7 @@
|
|||
}
|
||||
|
||||
#if GTK_SHARP_2_6
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_icon_theme_get_icon_sizes (IntPtr raw, IntPtr icon_name);
|
||||
|
||||
public int[] GetIconSizes (string icon_name)
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_icon_view_scroll_to_path(IntPtr raw, IntPtr path, bool use_align, float row_align, float col_align);
|
||||
|
||||
public void ScrollToPath (Gtk.TreePath path)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_image_new_from_icon_set(IntPtr icon_set, int size);
|
||||
|
||||
public Image (Gtk.IconSet icon_set, Gtk.IconSize size) : base (IntPtr.Zero)
|
||||
|
@ -37,7 +37,7 @@
|
|||
Raw = gtk_image_new_from_icon_set(icon_set.Handle, (int) size);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_image_new_from_stock(IntPtr stock_id, int size);
|
||||
|
||||
public Image (string stock_id, Gtk.IconSize size) : base (IntPtr.Zero)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_image_menu_item_new_with_mnemonic (IntPtr label);
|
||||
|
||||
public ImageMenuItem (string label) : base (IntPtr.Zero)
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint gtk_input_add_full(int source, int condition, InputFunctionNative function, GtkSharp.CallbackMarshalNative marshal, IntPtr data, GLib.DestroyNotify destroy);
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void InputFunctionNative(IntPtr data, int source, int condition);
|
||||
|
||||
class InputFunctionWrapper {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_item_factory_new(IntPtr container_type, IntPtr path, IntPtr accel_group);
|
||||
|
||||
public ItemFactory (GLib.GType container_type, string path, Gtk.AccelGroup accel_group) : base (IntPtr.Zero)
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace Gtk {
|
|||
|
||||
static Hashtable wrappers = new Hashtable ();
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern uint gtk_key_snooper_install (GtkSharp.KeySnoopFuncNative snooper, IntPtr func_data);
|
||||
|
||||
public static uint SnooperInstall (Gtk.KeySnoopFunc snooper)
|
||||
|
@ -39,7 +39,7 @@ namespace Gtk {
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_key_snooper_remove (uint snooper_handler_id);
|
||||
|
||||
public static void SnooperRemove (uint snooper_handler_id)
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
return -1;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_tree_model_iter_children (IntPtr raw, out Gtk.TreeIter iter, IntPtr parent);
|
||||
public bool IterChildren (out Gtk.TreeIter iter)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool gtk_tree_model_iter_nth_child (IntPtr raw, out Gtk.TreeIter iter, IntPtr parent, int n);
|
||||
public bool IterNthChild (out Gtk.TreeIter iter, int n)
|
||||
{
|
||||
|
@ -123,7 +123,7 @@
|
|||
return AppendValues ((Array) values);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_list_store_insert_with_valuesv(IntPtr raw, out TreeIter iter, int position, int[] columns, GLib.Value[] values, int n_values);
|
||||
|
||||
public TreeIter InsertWithValues (int position, params object[] values)
|
||||
|
@ -149,7 +149,7 @@
|
|||
return iter;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_list_store_set_valuesv(IntPtr raw, ref TreeIter iter, int[] columns, GLib.Value[] values, int n_values);
|
||||
|
||||
public void SetValues (TreeIter iter, params object[] values)
|
||||
|
@ -223,7 +223,7 @@
|
|||
return new TreeEnumerator(this);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void RowsReorderedSignalDelegate (IntPtr arg0, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr gch);
|
||||
|
||||
static void RowsReorderedSignalCallback (IntPtr arg0, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr gch)
|
||||
|
@ -249,7 +249,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (GLib.Global.CallingConvention)]
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void RowsReorderedVMDelegate (IntPtr tree_model, IntPtr path, IntPtr iter, IntPtr new_order);
|
||||
|
||||
static RowsReorderedVMDelegate RowsReorderedVMCallback;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
Popup (null, null, null, 3, Global.CurrentEventTime);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_menu_set_screen (IntPtr raw, IntPtr screen);
|
||||
|
||||
public new Gdk.Screen Screen {
|
||||
|
@ -42,7 +42,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gtk_menu_set_active (IntPtr raw, uint index_);
|
||||
|
||||
public void SetActive (uint index_)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_menu_item_new_with_mnemonic (IntPtr label);
|
||||
|
||||
public MenuItem (string label) : base (IntPtr.Zero)
|
||||
|
|
|
@ -13,10 +13,10 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_message_dialog_new (IntPtr parent_window, DialogFlags flags, MessageType type, ButtonsType bt, IntPtr msg, IntPtr args);
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_message_dialog_new_with_markup (IntPtr parent_window, DialogFlags flags, MessageType type, ButtonsType bt, IntPtr msg, IntPtr args);
|
||||
|
||||
public MessageDialog (Gtk.Window parent_window, DialogFlags flags, MessageType type, ButtonsType bt, bool use_markup, string format, params object[] args)
|
||||
|
|
|
@ -26,7 +26,7 @@ public Widget CurrentPageWidget {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int gtk_notebook_page_num (IntPtr handle, IntPtr child);
|
||||
|
||||
public int PageNum (Widget child)
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
base.Dispose ();
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern void g_object_ref_sink (IntPtr raw);
|
||||
|
||||
protected override IntPtr Raw {
|
||||
|
@ -121,7 +121,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern void gtk_object_destroy (IntPtr raw);
|
||||
|
||||
public virtual void Destroy ()
|
||||
|
@ -132,13 +132,13 @@
|
|||
InternalDestroyed -= NativeDestroyHandler;
|
||||
}
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern bool g_object_is_floating (IntPtr raw);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_force_floating (IntPtr raw);
|
||||
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = GLib.Global.CallingConvention)]
|
||||
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_object_unref (IntPtr raw);
|
||||
|
||||
public bool IsFloating {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue