// 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 PageSetupUnixDialog : Gtk.Dialog {

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

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

		public PageSetupUnixDialog (string title, Gtk.Window parent) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (PageSetupUnixDialog)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("title");
				vals.Add (new GLib.Value (title));
				if (parent != null) {
					names.Add ("parent");
					vals.Add (new GLib.Value (parent));
				}
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			IntPtr native_title = GLib.Marshaller.StringToPtrGStrdup (title);
			Raw = gtk_page_setup_unix_dialog_new(native_title, parent == null ? IntPtr.Zero : parent.Handle);
			GLib.Marshaller.Free (native_title);
		}

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

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

		public Gtk.PageSetup PageSetup { 
			get {
				IntPtr raw_ret = gtk_page_setup_unix_dialog_get_page_setup(Handle);
				Gtk.PageSetup ret = GLib.Object.GetObject(raw_ret) as Gtk.PageSetup;
				return ret;
			}
			set {
				gtk_page_setup_unix_dialog_set_page_setup(Handle, value == null ? IntPtr.Zero : value.Handle);
			}
		}

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

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

		public Gtk.PrintSettings PrintSettings { 
			get {
				IntPtr raw_ret = gtk_page_setup_unix_dialog_get_print_settings(Handle);
				Gtk.PrintSettings ret = GLib.Object.GetObject(raw_ret) as Gtk.PrintSettings;
				return ret;
			}
			set {
				gtk_page_setup_unix_dialog_set_print_settings(Handle, value == null ? IntPtr.Zero : value.Handle);
			}
		}

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

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

#endregion
	}
}
