// 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 Tooltip : GLib.Object {

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

		protected Tooltip() : base(IntPtr.Zero)
		{
			CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
		}


		// 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 (GLib.Object.class_abi.Fields);

				return _class_abi;
			}
		}


		// End of the ABI representation.

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

		public static new GLib.GType GType { 
			get {
				IntPtr raw_ret = gtk_tooltip_get_type();
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

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

		public Gtk.Widget Custom { 
			set {
				gtk_tooltip_set_custom(Handle, value == null ? IntPtr.Zero : value.Handle);
			}
		}

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

		public Gdk.Pixbuf Icon { 
			set {
				gtk_tooltip_set_icon(Handle, value == null ? IntPtr.Zero : value.Handle);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_tooltip_set_icon_from_gicon(IntPtr raw, IntPtr gicon, int size);
		static d_gtk_tooltip_set_icon_from_gicon gtk_tooltip_set_icon_from_gicon = FuncLoader.LoadFunction<d_gtk_tooltip_set_icon_from_gicon>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_tooltip_set_icon_from_gicon"));

		public void SetIconFromGicon(GLib.IIcon gicon, Gtk.IconSize size) {
			gtk_tooltip_set_icon_from_gicon(Handle, gicon == null ? IntPtr.Zero : ((gicon is GLib.Object) ? (gicon as GLib.Object).Handle : (gicon as GLib.IconAdapter).Handle), (int) size);
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_tooltip_set_icon_from_icon_name(IntPtr raw, IntPtr icon_name, int size);
		static d_gtk_tooltip_set_icon_from_icon_name gtk_tooltip_set_icon_from_icon_name = FuncLoader.LoadFunction<d_gtk_tooltip_set_icon_from_icon_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_tooltip_set_icon_from_icon_name"));

		public void SetIconFromIconName(string icon_name, Gtk.IconSize size) {
			IntPtr native_icon_name = GLib.Marshaller.StringToPtrGStrdup (icon_name);
			gtk_tooltip_set_icon_from_icon_name(Handle, native_icon_name, (int) size);
			GLib.Marshaller.Free (native_icon_name);
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_tooltip_set_icon_from_stock(IntPtr raw, IntPtr stock_id, int size);
		static d_gtk_tooltip_set_icon_from_stock gtk_tooltip_set_icon_from_stock = FuncLoader.LoadFunction<d_gtk_tooltip_set_icon_from_stock>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_tooltip_set_icon_from_stock"));

		[Obsolete]
		public void SetIconFromStock(string stock_id, Gtk.IconSize size) {
			IntPtr native_stock_id = GLib.Marshaller.StringToPtrGStrdup (stock_id);
			gtk_tooltip_set_icon_from_stock(Handle, native_stock_id, (int) size);
			GLib.Marshaller.Free (native_stock_id);
		}

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

		public string Markup { 
			set {
				IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
				gtk_tooltip_set_markup(Handle, native_value);
				GLib.Marshaller.Free (native_value);
			}
		}

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

		public string Text { 
			set {
				IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
				gtk_tooltip_set_text(Handle, native_value);
				GLib.Marshaller.Free (native_value);
			}
		}

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

		public Gdk.Rectangle TipArea { 
			set {
				IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
				gtk_tooltip_set_tip_area(Handle, native_value);
				Marshal.FreeHGlobal (native_value);
			}
		}

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

		public static void TriggerTooltipQuery(Gdk.Display display) {
			gtk_tooltip_trigger_tooltip_query(display == null ? IntPtr.Zero : display.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 (GLib.Object.abi_info.Fields);

				return _abi_info;
			}
		}


		// End of the ABI representation.

#endregion
	}
}
