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