// 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 ToolItemGroup : Gtk.Container, Gtk.IToolShell {

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

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

		public ToolItemGroup (string label) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (ToolItemGroup)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("label");
				vals.Add (new GLib.Value (label));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			IntPtr native_label = GLib.Marshaller.StringToPtrGStrdup (label);
			Raw = gtk_tool_item_group_new(native_label);
			GLib.Marshaller.Free (native_label);
		}

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

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

		[GLib.Property ("label")]
		public string Label {
			get  {
				IntPtr raw_ret = gtk_tool_item_group_get_label(Handle);
				string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
				return ret;
			}
			set  {
				IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
				gtk_tool_item_group_set_label(Handle, native_value);
				GLib.Marshaller.Free (native_value);
			}
		}

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

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

		[GLib.Property ("label-widget")]
		public Gtk.Widget LabelWidget {
			get  {
				IntPtr raw_ret = gtk_tool_item_group_get_label_widget(Handle);
				Gtk.Widget ret = GLib.Object.GetObject(raw_ret) as Gtk.Widget;
				return ret;
			}
			set  {
				gtk_tool_item_group_set_label_widget(Handle, value == null ? IntPtr.Zero : value.Handle);
			}
		}

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

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

		[GLib.Property ("collapsed")]
		public bool Collapsed {
			get  {
				bool raw_ret = gtk_tool_item_group_get_collapsed(Handle);
				bool ret = raw_ret;
				return ret;
			}
			set  {
				gtk_tool_item_group_set_collapsed(Handle, value);
			}
		}

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

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

		[GLib.Property ("ellipsize")]
		public Pango.EllipsizeMode Ellipsize {
			get  {
				int raw_ret = gtk_tool_item_group_get_ellipsize(Handle);
				Pango.EllipsizeMode ret = (Pango.EllipsizeMode) raw_ret;
				return ret;
			}
			set  {
				gtk_tool_item_group_set_ellipsize(Handle, (int) value);
			}
		}

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

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

		[GLib.Property ("header-relief")]
		public Gtk.ReliefStyle HeaderRelief {
			get  {
				int raw_ret = gtk_tool_item_group_get_header_relief(Handle);
				Gtk.ReliefStyle ret = (Gtk.ReliefStyle) raw_ret;
				return ret;
			}
			set  {
				gtk_tool_item_group_set_header_relief(Handle, (int) value);
			}
		}

		public int ExpanderSize {
			get {
				var val = (int)StyleGetProperty("expander-size");
				return val;
			}
		}

		public int HeaderSpacing {
			get {
				var val = (int)StyleGetProperty("header-spacing");
				return val;
			}
		}

		public class ToolItemGroupChild : Gtk.Container.ContainerChild {
			protected internal ToolItemGroupChild (Gtk.Container parent, Gtk.Widget child) : base (parent, child) {}

			[Gtk.ChildProperty ("homogeneous")]
			public bool Homogeneous {
				get {
					GLib.Value val = parent.ChildGetProperty (child, "homogeneous");
					bool ret = (bool) val;
					val.Dispose ();
					return ret;
				}
				set {
					GLib.Value val = new GLib.Value(value);
					parent.ChildSetProperty(child, "homogeneous", val);
					val.Dispose ();
				}
			}

			[Gtk.ChildProperty ("expand")]
			public new bool Expand {
				get {
					GLib.Value val = parent.ChildGetProperty (child, "expand");
					bool ret = (bool) val;
					val.Dispose ();
					return ret;
				}
				set {
					GLib.Value val = new GLib.Value(value);
					parent.ChildSetProperty(child, "expand", val);
					val.Dispose ();
				}
			}

			[Gtk.ChildProperty ("fill")]
			public bool Fill {
				get {
					GLib.Value val = parent.ChildGetProperty (child, "fill");
					bool ret = (bool) val;
					val.Dispose ();
					return ret;
				}
				set {
					GLib.Value val = new GLib.Value(value);
					parent.ChildSetProperty(child, "fill", val);
					val.Dispose ();
				}
			}

			[Gtk.ChildProperty ("new-row")]
			public bool NewRow {
				get {
					GLib.Value val = parent.ChildGetProperty (child, "new-row");
					bool ret = (bool) val;
					val.Dispose ();
					return ret;
				}
				set {
					GLib.Value val = new GLib.Value(value);
					parent.ChildSetProperty(child, "new-row", val);
					val.Dispose ();
				}
			}

			[Gtk.ChildProperty ("position")]
			public int Position {
				get {
					GLib.Value val = parent.ChildGetProperty (child, "position");
					int ret = (int) val;
					val.Dispose ();
					return ret;
				}
				set {
					GLib.Value val = new GLib.Value(value);
					parent.ChildSetProperty(child, "position", val);
					val.Dispose ();
				}
			}

		}

		public override Gtk.Container.ContainerChild this [Gtk.Widget child] {
			get {
				return new ToolItemGroupChild (this, child);
			}
		}


		// 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"
							, Gtk.Container.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 IntPtr d_gtk_tool_item_group_get_drop_item(IntPtr raw, int x, int y);
		static d_gtk_tool_item_group_get_drop_item gtk_tool_item_group_get_drop_item = FuncLoader.LoadFunction<d_gtk_tool_item_group_get_drop_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_tool_item_group_get_drop_item"));

		public Gtk.ToolItem GetDropItem(int x, int y) {
			IntPtr raw_ret = gtk_tool_item_group_get_drop_item(Handle, x, y);
			Gtk.ToolItem ret = GLib.Object.GetObject(raw_ret) as Gtk.ToolItem;
			return ret;
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate int d_gtk_tool_item_group_get_item_position(IntPtr raw, IntPtr item);
		static d_gtk_tool_item_group_get_item_position gtk_tool_item_group_get_item_position = FuncLoader.LoadFunction<d_gtk_tool_item_group_get_item_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_tool_item_group_get_item_position"));

		public int GetItemPosition(Gtk.ToolItem item) {
			int raw_ret = gtk_tool_item_group_get_item_position(Handle, item == null ? IntPtr.Zero : item.Handle);
			int ret = raw_ret;
			return ret;
		}

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

		public uint NItems { 
			get {
				uint raw_ret = gtk_tool_item_group_get_n_items(Handle);
				uint ret = raw_ret;
				return ret;
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_tool_item_group_get_nth_item(IntPtr raw, uint index);
		static d_gtk_tool_item_group_get_nth_item gtk_tool_item_group_get_nth_item = FuncLoader.LoadFunction<d_gtk_tool_item_group_get_nth_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_tool_item_group_get_nth_item"));

		public Gtk.ToolItem GetNthItem(uint index) {
			IntPtr raw_ret = gtk_tool_item_group_get_nth_item(Handle, index);
			Gtk.ToolItem ret = GLib.Object.GetObject(raw_ret) as Gtk.ToolItem;
			return ret;
		}

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

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

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_tool_item_group_insert(IntPtr raw, IntPtr item, int position);
		static d_gtk_tool_item_group_insert gtk_tool_item_group_insert = FuncLoader.LoadFunction<d_gtk_tool_item_group_insert>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_tool_item_group_insert"));

		public void Insert(Gtk.ToolItem item, int position) {
			gtk_tool_item_group_insert(Handle, item == null ? IntPtr.Zero : item.Handle, position);
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_tool_item_group_set_item_position(IntPtr raw, IntPtr item, int position);
		static d_gtk_tool_item_group_set_item_position gtk_tool_item_group_set_item_position = FuncLoader.LoadFunction<d_gtk_tool_item_group_set_item_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_tool_item_group_set_item_position"));

		public void SetItemPosition(Gtk.ToolItem item, int position) {
			gtk_tool_item_group_set_item_position(Handle, item == null ? IntPtr.Zero : item.Handle, position);
		}

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

		public Pango.EllipsizeMode EllipsizeMode { 
			get {
				int raw_ret = gtk_tool_shell_get_ellipsize_mode(Handle);
				Pango.EllipsizeMode ret = (Pango.EllipsizeMode) raw_ret;
				return ret;
			}
		}

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

		public Gtk.IconSize IconSize { 
			get {
				int raw_ret = gtk_tool_shell_get_icon_size(Handle);
				Gtk.IconSize ret = (Gtk.IconSize) raw_ret;
				return ret;
			}
		}

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

		public Gtk.Orientation Orientation { 
			get {
				int raw_ret = gtk_tool_shell_get_orientation(Handle);
				Gtk.Orientation ret = (Gtk.Orientation) raw_ret;
				return ret;
			}
		}

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

		public Gtk.ReliefStyle ReliefStyle { 
			get {
				int raw_ret = gtk_tool_shell_get_relief_style(Handle);
				Gtk.ReliefStyle ret = (Gtk.ReliefStyle) raw_ret;
				return ret;
			}
		}

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

		public new Gtk.ToolbarStyle Style { 
			get {
				int raw_ret = gtk_tool_shell_get_style(Handle);
				Gtk.ToolbarStyle ret = (Gtk.ToolbarStyle) raw_ret;
				return ret;
			}
		}

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

		public float TextAlignment { 
			get {
				float raw_ret = gtk_tool_shell_get_text_alignment(Handle);
				float ret = raw_ret;
				return ret;
			}
		}

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

		public Gtk.Orientation TextOrientation { 
			get {
				int raw_ret = gtk_tool_shell_get_text_orientation(Handle);
				Gtk.Orientation ret = (Gtk.Orientation) raw_ret;
				return ret;
			}
		}

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

		public Gtk.SizeGroup TextSizeGroup { 
			get {
				IntPtr raw_ret = gtk_tool_shell_get_text_size_group(Handle);
				Gtk.SizeGroup ret = GLib.Object.GetObject(raw_ret) as Gtk.SizeGroup;
				return ret;
			}
		}

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

		public void RebuildMenu() {
			gtk_tool_shell_rebuild_menu(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"
							, Gtk.Container.abi_info.Fields
							, (uint) sizeof( IntPtr ) // priv
							, null
							, null
							, (uint) sizeof(IntPtr)
							, 0
							),
					});

				return _abi_info;
			}
		}


		// End of the ABI representation.

#endregion
	}
}
