// 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;

#region Autogenerated code
	public partial class CssSection : GLib.Opaque {

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

		public uint EndLine { 
			get {
				uint raw_ret = gtk_css_section_get_end_line(Handle);
				uint ret = raw_ret;
				return ret;
			}
		}

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

		public uint EndPosition { 
			get {
				uint raw_ret = gtk_css_section_get_end_position(Handle);
				uint ret = raw_ret;
				return ret;
			}
		}

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

		public GLib.IFile File { 
			get {
				IntPtr raw_ret = gtk_css_section_get_file(Handle);
				GLib.IFile ret = GLib.FileAdapter.GetObject (raw_ret, false);
				return ret;
			}
		}

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

		public Gtk.CssSection Parent { 
			get {
				IntPtr raw_ret = gtk_css_section_get_parent(Handle);
				Gtk.CssSection ret = raw_ret == IntPtr.Zero ? null : (Gtk.CssSection) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.CssSection), false);
				return ret;
			}
		}

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

		public Gtk.CssSectionType SectionType { 
			get {
				int raw_ret = gtk_css_section_get_section_type(Handle);
				Gtk.CssSectionType ret = (Gtk.CssSectionType) raw_ret;
				return ret;
			}
		}

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

		public uint StartLine { 
			get {
				uint raw_ret = gtk_css_section_get_start_line(Handle);
				uint ret = raw_ret;
				return ret;
			}
		}

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

		public uint StartPosition { 
			get {
				uint raw_ret = gtk_css_section_get_start_position(Handle);
				uint ret = raw_ret;
				return ret;
			}
		}

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

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

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

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

		protected override void Ref (IntPtr raw)
		{
			if (!Owned) {
				gtk_css_section_ref (raw);
				Owned = true;
			}
		}

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

		protected override void Unref (IntPtr raw)
		{
			if (Owned) {
				gtk_css_section_unref (raw);
				Owned = false;
			}
		}

		class FinalizerInfo {
			IntPtr handle;
			public uint timeoutHandlerId;

			public FinalizerInfo (IntPtr handle)
			{
				this.handle = handle;
			}

			public bool Handler ()
			{
				gtk_css_section_unref (handle);
				GLib.Timeout.Remove(timeoutHandlerId);
				return false;
			}
		}

		~CssSection ()
		{
			if (!Owned)
				return;
			FinalizerInfo info = new FinalizerInfo (Handle);
			info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
		}


		// Internal representation of the wrapped structure ABI.
		static GLib.AbiStruct _abi_info = null;
		static public unsafe GLib.AbiStruct abi_info {
			get {
				if (_abi_info == null)
					_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
					});

				return _abi_info;
			}
		}


		// End of the ABI representation.

#endregion
	}
}
