// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gtk {

	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.Runtime.InteropServices;
	using static GLib.AbiStructExtension;

#region Autogenerated code
	public partial class IconFactory : GLib.Object {

		public IconFactory (IntPtr raw) : base(raw) {}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_icon_factory_new();
		static d_gtk_icon_factory_new gtk_icon_factory_new = FuncLoader.LoadFunction<d_gtk_icon_factory_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_icon_factory_new"));

		[Obsolete]
		public IconFactory () : base (IntPtr.Zero)
		{
			if (GetType () != typeof (IconFactory)) {
				CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
				return;
			}
			Raw = gtk_icon_factory_new();
		}


		// Internal representation of the wrapped structure ABI.
		static GLib.AbiStruct _class_abi = null;
		static public unsafe new GLib.AbiStruct class_abi {
			get {
				if (_class_abi == null)
					_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{ 
						new GLib.AbiField("_gtk_reserved1"
							, GLib.Object.class_abi.Fields
							, (uint) sizeof( IntPtr ) // _gtk_reserved1
							, null
							, "_gtk_reserved2"
							, (uint) sizeof(IntPtr)
							, 0
							),
						new GLib.AbiField("_gtk_reserved2"
							, -1
							, (uint) sizeof( IntPtr ) // _gtk_reserved2
							, "_gtk_reserved1"
							, "_gtk_reserved3"
							, (uint) sizeof(IntPtr)
							, 0
							),
						new GLib.AbiField("_gtk_reserved3"
							, -1
							, (uint) sizeof( IntPtr ) // _gtk_reserved3
							, "_gtk_reserved2"
							, "_gtk_reserved4"
							, (uint) sizeof(IntPtr)
							, 0
							),
						new GLib.AbiField("_gtk_reserved4"
							, -1
							, (uint) sizeof( IntPtr ) // _gtk_reserved4
							, "_gtk_reserved3"
							, null
							, (uint) sizeof(IntPtr)
							, 0
							),
					});

				return _class_abi;
			}
		}


		// End of the ABI representation.

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_icon_factory_add(IntPtr raw, IntPtr stock_id, IntPtr icon_set);
		static d_gtk_icon_factory_add gtk_icon_factory_add = FuncLoader.LoadFunction<d_gtk_icon_factory_add>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_icon_factory_add"));

		[Obsolete]
		public void Add(string stock_id, Gtk.IconSet icon_set) {
			IntPtr native_stock_id = GLib.Marshaller.StringToPtrGStrdup (stock_id);
			gtk_icon_factory_add(Handle, native_stock_id, icon_set == null ? IntPtr.Zero : icon_set.Handle);
			GLib.Marshaller.Free (native_stock_id);
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_icon_factory_add_default(IntPtr raw);
		static d_gtk_icon_factory_add_default gtk_icon_factory_add_default = FuncLoader.LoadFunction<d_gtk_icon_factory_add_default>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_icon_factory_add_default"));

		[Obsolete]
		public void AddDefault() {
			gtk_icon_factory_add_default(Handle);
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_icon_factory_get_type();
		static d_gtk_icon_factory_get_type gtk_icon_factory_get_type = FuncLoader.LoadFunction<d_gtk_icon_factory_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_icon_factory_get_type"));

		[Obsolete]
		public static new GLib.GType GType { 
			get {
				IntPtr raw_ret = gtk_icon_factory_get_type();
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_icon_factory_lookup(IntPtr raw, IntPtr stock_id);
		static d_gtk_icon_factory_lookup gtk_icon_factory_lookup = FuncLoader.LoadFunction<d_gtk_icon_factory_lookup>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_icon_factory_lookup"));

		[Obsolete]
		public Gtk.IconSet Lookup(string stock_id) {
			IntPtr native_stock_id = GLib.Marshaller.StringToPtrGStrdup (stock_id);
			IntPtr raw_ret = gtk_icon_factory_lookup(Handle, native_stock_id);
			Gtk.IconSet ret = raw_ret == IntPtr.Zero ? null : (Gtk.IconSet) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.IconSet), false);
			GLib.Marshaller.Free (native_stock_id);
			return ret;
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_icon_factory_lookup_default(IntPtr stock_id);
		static d_gtk_icon_factory_lookup_default gtk_icon_factory_lookup_default = FuncLoader.LoadFunction<d_gtk_icon_factory_lookup_default>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_icon_factory_lookup_default"));

		[Obsolete]
		public static Gtk.IconSet LookupDefault(string stock_id) {
			IntPtr native_stock_id = GLib.Marshaller.StringToPtrGStrdup (stock_id);
			IntPtr raw_ret = gtk_icon_factory_lookup_default(native_stock_id);
			Gtk.IconSet ret = raw_ret == IntPtr.Zero ? null : (Gtk.IconSet) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.IconSet), false);
			GLib.Marshaller.Free (native_stock_id);
			return ret;
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_icon_factory_remove_default(IntPtr raw);
		static d_gtk_icon_factory_remove_default gtk_icon_factory_remove_default = FuncLoader.LoadFunction<d_gtk_icon_factory_remove_default>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_icon_factory_remove_default"));

		[Obsolete]
		public void RemoveDefault() {
			gtk_icon_factory_remove_default(Handle);
		}


		// Internal representation of the wrapped structure ABI.
		static GLib.AbiStruct _abi_info = null;
		static public unsafe new GLib.AbiStruct abi_info {
			get {
				if (_abi_info == null)
					_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
						new GLib.AbiField("priv"
							, GLib.Object.abi_info.Fields
							, (uint) sizeof( IntPtr ) // priv
							, null
							, null
							, (uint) sizeof(IntPtr)
							, 0
							),
					});

				return _abi_info;
			}
		}


		// End of the ABI representation.

#endregion
	}
}
