1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
// 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 PageSetupUnixDialog : Gtk.Dialog {
public PageSetupUnixDialog (IntPtr raw) : base(raw) {}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_page_setup_unix_dialog_new(IntPtr title, IntPtr parent);
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);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_page_setup_unix_dialog_get_page_setup(IntPtr raw);
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_page_setup_unix_dialog_set_page_setup(IntPtr raw, IntPtr 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);
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_page_setup_unix_dialog_get_print_settings(IntPtr raw);
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_page_setup_unix_dialog_set_print_settings(IntPtr raw, IntPtr 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);
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr 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
}
}
|