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

namespace Pango {

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

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

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

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

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

		public void Changed() {
			pango_font_map_changed(Handle);
		}

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

		public Pango.Context CreateContext() {
			IntPtr raw_ret = pango_font_map_create_context(Handle);
			Pango.Context ret = GLib.Object.GetObject(raw_ret) as Pango.Context;
			return ret;
		}

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

		public uint Serial { 
			get {
				uint raw_ret = pango_font_map_get_serial(Handle);
				uint ret = raw_ret;
				return ret;
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_pango_font_map_get_type();
		static d_pango_font_map_get_type pango_font_map_get_type = FuncLoader.LoadFunction<d_pango_font_map_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_get_type"));

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

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_pango_font_map_load_font(IntPtr raw, IntPtr context, IntPtr desc);
		static d_pango_font_map_load_font pango_font_map_load_font = FuncLoader.LoadFunction<d_pango_font_map_load_font>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_load_font"));

		public Pango.Font LoadFont(Pango.Context context, Pango.FontDescription desc) {
			IntPtr raw_ret = pango_font_map_load_font(Handle, context == null ? IntPtr.Zero : context.Handle, desc == null ? IntPtr.Zero : desc.Handle);
			Pango.Font ret = GLib.Object.GetObject(raw_ret) as Pango.Font;
			return ret;
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_pango_font_map_load_fontset(IntPtr raw, IntPtr context, IntPtr desc, IntPtr language);
		static d_pango_font_map_load_fontset pango_font_map_load_fontset = FuncLoader.LoadFunction<d_pango_font_map_load_fontset>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_load_fontset"));

		public Pango.Fontset LoadFontset(Pango.Context context, Pango.FontDescription desc, Pango.Language language) {
			IntPtr raw_ret = pango_font_map_load_fontset(Handle, context == null ? IntPtr.Zero : context.Handle, desc == null ? IntPtr.Zero : desc.Handle, language == null ? IntPtr.Zero : language.Handle);
			Pango.Fontset ret = GLib.Object.GetObject(raw_ret) as Pango.Fontset;
			return ret;
		}

#endregion
	}
}
