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

namespace GtkSource {

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

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

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

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

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

		[GLib.Property ("id")]
		public string Id {
			get  {
				IntPtr raw_ret = gtk_source_style_scheme_get_id(Handle);
				string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
				return ret;
			}
		}

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

		[GLib.Property ("name")]
		public string Name {
			get  {
				IntPtr raw_ret = gtk_source_style_scheme_get_name(Handle);
				string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
				return ret;
			}
		}

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

		[GLib.Property ("description")]
		public string Description {
			get  {
				IntPtr raw_ret = gtk_source_style_scheme_get_description(Handle);
				string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
				return ret;
			}
		}

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

		[GLib.Property ("filename")]
		public string Filename {
			get  {
				IntPtr raw_ret = gtk_source_style_scheme_get_filename(Handle);
				string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
				return ret;
			}
		}


		// 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("padding"
							, GLib.Object.class_abi.Fields
							, (uint) sizeof( IntPtr ) * 10 // padding
							, null
							, null
							, (uint) sizeof(IntPtr)
							, 0
							),
					});

				return _class_abi;
			}
		}


		// End of the ABI representation.

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

		public string Authors { 
			get {
				IntPtr raw_ret = gtk_source_style_scheme_get_authors(Handle);
				string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
				return ret;
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_source_style_scheme_get_style(IntPtr raw, IntPtr style_id);
		static d_gtk_source_style_scheme_get_style gtk_source_style_scheme_get_style = FuncLoader.LoadFunction<d_gtk_source_style_scheme_get_style>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_get_style"));

		public GtkSource.Style GetStyle(string style_id) {
			IntPtr native_style_id = GLib.Marshaller.StringToPtrGStrdup (style_id);
			IntPtr raw_ret = gtk_source_style_scheme_get_style(Handle, native_style_id);
			GtkSource.Style ret = GLib.Object.GetObject(raw_ret) as GtkSource.Style;
			GLib.Marshaller.Free (native_style_id);
			return ret;
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_source_style_scheme_get_type();
		static d_gtk_source_style_scheme_get_type gtk_source_style_scheme_get_type = FuncLoader.LoadFunction<d_gtk_source_style_scheme_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_get_type"));

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


		static StyleScheme ()
		{
			GtkSharp.GtkSourceSharp.ObjectManager.Initialize ();
		}

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