no more submodule

This commit is contained in:
2024-09-15 22:40:48 +02:00
parent df3b8a3135
commit 0234b33671
5804 changed files with 943618 additions and 1 deletions

View File

@@ -0,0 +1,119 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GLib {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class IconAdapter : GLib.GInterfaceAdapter, GLib.IIcon {
GLib.Object implementor;
public IconAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_icon_get_type();
static d_g_icon_get_type g_icon_get_type = FuncLoader.LoadFunction<d_g_icon_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_icon_get_type"));
private static GLib.GType _gtype = new GLib.GType (g_icon_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IIcon GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IIcon GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj as IIcon == null)
return new IconAdapter (obj.Handle);
else
return obj as IIcon;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_icon_deserialize(IntPtr value);
static d_g_icon_deserialize g_icon_deserialize = FuncLoader.LoadFunction<d_g_icon_deserialize>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_icon_deserialize"));
public static GLib.IIcon Deserialize(GLib.Variant value) {
IntPtr raw_ret = g_icon_deserialize(value == null ? IntPtr.Zero : value.Handle);
GLib.IIcon ret = GLib.IconAdapter.GetObject (raw_ret, false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_icon_equal(IntPtr raw, IntPtr icon2);
static d_g_icon_equal g_icon_equal = FuncLoader.LoadFunction<d_g_icon_equal>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_icon_equal"));
public bool Equal(GLib.IIcon icon2) {
bool raw_ret = g_icon_equal(Handle, icon2 == null ? IntPtr.Zero : ((icon2 is GLib.Object) ? (icon2 as GLib.Object).Handle : (icon2 as GLib.IconAdapter).Handle));
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_g_icon_hash(IntPtr icon);
static d_g_icon_hash g_icon_hash = FuncLoader.LoadFunction<d_g_icon_hash>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_icon_hash"));
public static uint Hash(IntPtr icon) {
uint raw_ret = g_icon_hash(icon);
uint ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_icon_serialize(IntPtr raw);
static d_g_icon_serialize g_icon_serialize = FuncLoader.LoadFunction<d_g_icon_serialize>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_icon_serialize"));
public GLib.Variant Serialize() {
IntPtr raw_ret = g_icon_serialize(Handle);
GLib.Variant ret = new GLib.Variant(raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_icon_to_string(IntPtr raw);
static d_g_icon_to_string g_icon_to_string = FuncLoader.LoadFunction<d_g_icon_to_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_icon_to_string"));
public override string ToString() {
IntPtr raw_ret = g_icon_to_string(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
#endregion
}
}