Release 0.41.92
[vala-gnome.git] / vapi / gtk+-unix-print-2.0.vapi
blobad4da0d0918ccd34ccca7468da3479fdfb770a83
1 /* gtk+-unix-print-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "2.0", lower_case_cprefix = "gtk_")]
4 [Version (replacement = "gtk+-unix-print-3.0")]
5 namespace Gtk {
6         [CCode (cheader_filename = "gtk/gtkunixprint.h")]
7         public class PageSetupUnixDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
8                 [CCode (has_construct_function = false, type = "GtkWidget*")]
9                 public PageSetupUnixDialog (string title, Gtk.Window parent);
10                 public unowned Gtk.PageSetup get_page_setup ();
11                 public unowned Gtk.PrintSettings get_print_settings ();
12                 public void set_page_setup (Gtk.PageSetup page_setup);
13                 public void set_print_settings (Gtk.PrintSettings print_settings);
14         }
15         [CCode (cheader_filename = "gtk/gtkunixprint.h")]
16         public abstract class PrintBackend : GLib.Object {
17         }
18         [CCode (cheader_filename = "gtk/gtkunixprint.h")]
19         public class PrintJob : GLib.Object {
20                 [CCode (has_construct_function = false)]
21                 public PrintJob (string title, Gtk.Printer printer, Gtk.PrintSettings settings, Gtk.PageSetup page_setup);
22                 public unowned Gtk.Printer get_printer ();
23                 public unowned Gtk.PrintSettings get_settings ();
24                 public Gtk.PrintStatus get_status ();
25                 public unowned Cairo.Surface get_surface () throws GLib.Error;
26                 public unowned string get_title ();
27                 public bool get_track_print_status ();
28                 public void send (owned Gtk.PrintJobCompleteFunc callback);
29                 public bool set_source_file (string filename) throws GLib.Error;
30                 public void set_track_print_status (bool track_status);
31                 [NoAccessorMethod]
32                 public Gtk.PageSetup page_setup { owned get; construct; }
33                 public Gtk.Printer printer { get; construct; }
34                 public Gtk.PrintSettings settings { get; construct; }
35                 public string title { get; construct; }
36                 public bool track_print_status { get; set; }
37                 public virtual signal void status_changed ();
38         }
39         [CCode (cheader_filename = "gtk/gtkunixprint.h")]
40         public class PrintUnixDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
41                 [CCode (has_construct_function = false, type = "GtkWidget*")]
42                 public PrintUnixDialog (string title, Gtk.Window parent);
43                 public void add_custom_tab (Gtk.Widget child, Gtk.Widget tab_label);
44                 public int get_current_page ();
45                 public bool get_embed_page_setup ();
46                 public bool get_has_selection ();
47                 public Gtk.PrintCapabilities get_manual_capabilities ();
48                 public unowned Gtk.PageSetup get_page_setup ();
49                 public bool get_page_setup_set ();
50                 public unowned Gtk.Printer get_selected_printer ();
51                 public Gtk.PrintSettings get_settings ();
52                 public bool get_support_selection ();
53                 public void set_current_page (int current_page);
54                 public void set_embed_page_setup (bool embed);
55                 public void set_has_selection (bool has_selection);
56                 public void set_manual_capabilities (Gtk.PrintCapabilities capabilities);
57                 public void set_page_setup (Gtk.PageSetup page_setup);
58                 public void set_settings (Gtk.PrintSettings settings);
59                 public void set_support_selection (bool support_selection);
60                 public int current_page { get; set; }
61                 public bool embed_page_setup { get; set; }
62                 public bool has_selection { get; set; }
63                 public Gtk.PrintCapabilities manual_capabilities { get; set; }
64                 public Gtk.PageSetup page_setup { get; set; }
65                 [NoAccessorMethod]
66                 public Gtk.PrintSettings print_settings { owned get; set; }
67                 public Gtk.Printer selected_printer { get; }
68                 public bool support_selection { get; set; }
69         }
70         [CCode (cheader_filename = "gtk/gtkunixprint.h")]
71         public class Printer : GLib.Object {
72                 [CCode (has_construct_function = false)]
73                 public Printer (string name, Gtk.PrintBackend backend, bool virtual_);
74                 public int compare (Gtk.Printer b);
75                 [CCode (cname = "gtk_printer_accepts_pdf")]
76                 public bool get_accepts_pdf ();
77                 [CCode (cname = "gtk_printer_accepts_ps")]
78                 public bool get_accepts_ps ();
79                 public unowned Gtk.PrintBackend get_backend ();
80                 public Gtk.PrintCapabilities get_capabilities ();
81                 public Gtk.PageSetup get_default_page_size ();
82                 public unowned string get_description ();
83                 public bool get_hard_margins (double top, double bottom, double left, double right);
84                 public unowned string get_icon_name ();
85                 [CCode (cname = "gtk_printer_is_virtual")]
86                 public bool get_is_virtual ();
87                 public int get_job_count ();
88                 public unowned string get_location ();
89                 public unowned string get_name ();
90                 public unowned string get_state_message ();
91                 public bool has_details ();
92                 public bool is_accepting_jobs ();
93                 public bool is_active ();
94                 public bool is_default ();
95                 public bool is_paused ();
96                 public GLib.List<Gtk.PageSetup> list_papers ();
97                 public void request_details ();
98                 [NoAccessorMethod]
99                 public bool accepting_jobs { get; }
100                 [NoAccessorMethod]
101                 public bool accepts_pdf { get; construct; }
102                 [NoAccessorMethod]
103                 public bool accepts_ps { get; construct; }
104                 public Gtk.PrintBackend backend { get; construct; }
105                 public string icon_name { get; }
106                 [NoAccessorMethod]
107                 public bool is_virtual { get; construct; }
108                 public int job_count { get; }
109                 public string location { get; }
110                 public string name { get; construct; }
111                 [NoAccessorMethod]
112                 public bool paused { get; }
113                 public string state_message { get; }
114                 public virtual signal void details_acquired (bool success);
115         }
116         [CCode (cheader_filename = "gtk/gtkunixprint.h", cprefix = "GTK_PRINT_CAPABILITY_")]
117         [Flags]
118         public enum PrintCapabilities {
119                 PAGE_SET,
120                 COPIES,
121                 COLLATE,
122                 REVERSE,
123                 SCALE,
124                 GENERATE_PDF,
125                 GENERATE_PS,
126                 PREVIEW,
127                 NUMBER_UP,
128                 NUMBER_UP_LAYOUT
129         }
130         [CCode (cheader_filename = "gtk/gtkunixprint.h", instance_pos = 1.9)]
131         public delegate void PrintJobCompleteFunc (Gtk.PrintJob print_job) throws GLib.Error;
132         [CCode (cheader_filename = "gtk/gtkunixprint.h")]
133         public delegate bool PrinterFunc (Gtk.Printer printer);
134         [CCode (cheader_filename = "gtk/gtkunixprint.h")]
135         public static void enumerate_printers (owned Gtk.PrinterFunc func, bool wait);