diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-01-03 14:55:51 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-01-03 15:58:22 +0100 |
commit | a4bd698856a262df6540488077f0cd270a10788a (patch) | |
tree | 6fe362abc72d723ae3ced9440165c05d19b55c14 /vapi/gtk+-unix-print-2.0.vapi | |
parent | e4e169b9f5e85a4c734202d88b3183a2eb092903 (diff) | |
download | vala-a4bd698856a262df6540488077f0cd270a10788a.tar.gz |
vapi: Add gtk+-unix-print-2.0 bindings
Diffstat (limited to 'vapi/gtk+-unix-print-2.0.vapi')
-rw-r--r-- | vapi/gtk+-unix-print-2.0.vapi | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/vapi/gtk+-unix-print-2.0.vapi b/vapi/gtk+-unix-print-2.0.vapi new file mode 100644 index 000000000..ad4da0d09 --- /dev/null +++ b/vapi/gtk+-unix-print-2.0.vapi @@ -0,0 +1,136 @@ +/* gtk+-unix-print-2.0.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "2.0", lower_case_cprefix = "gtk_")] +[Version (replacement = "gtk+-unix-print-3.0")] +namespace Gtk { + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public class PageSetupUnixDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable { + [CCode (has_construct_function = false, type = "GtkWidget*")] + public PageSetupUnixDialog (string title, Gtk.Window parent); + public unowned Gtk.PageSetup get_page_setup (); + public unowned Gtk.PrintSettings get_print_settings (); + public void set_page_setup (Gtk.PageSetup page_setup); + public void set_print_settings (Gtk.PrintSettings print_settings); + } + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public abstract class PrintBackend : GLib.Object { + } + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public class PrintJob : GLib.Object { + [CCode (has_construct_function = false)] + public PrintJob (string title, Gtk.Printer printer, Gtk.PrintSettings settings, Gtk.PageSetup page_setup); + public unowned Gtk.Printer get_printer (); + public unowned Gtk.PrintSettings get_settings (); + public Gtk.PrintStatus get_status (); + public unowned Cairo.Surface get_surface () throws GLib.Error; + public unowned string get_title (); + public bool get_track_print_status (); + public void send (owned Gtk.PrintJobCompleteFunc callback); + public bool set_source_file (string filename) throws GLib.Error; + public void set_track_print_status (bool track_status); + [NoAccessorMethod] + public Gtk.PageSetup page_setup { owned get; construct; } + public Gtk.Printer printer { get; construct; } + public Gtk.PrintSettings settings { get; construct; } + public string title { get; construct; } + public bool track_print_status { get; set; } + public virtual signal void status_changed (); + } + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public class PrintUnixDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable { + [CCode (has_construct_function = false, type = "GtkWidget*")] + public PrintUnixDialog (string title, Gtk.Window parent); + public void add_custom_tab (Gtk.Widget child, Gtk.Widget tab_label); + public int get_current_page (); + public bool get_embed_page_setup (); + public bool get_has_selection (); + public Gtk.PrintCapabilities get_manual_capabilities (); + public unowned Gtk.PageSetup get_page_setup (); + public bool get_page_setup_set (); + public unowned Gtk.Printer get_selected_printer (); + public Gtk.PrintSettings get_settings (); + public bool get_support_selection (); + public void set_current_page (int current_page); + public void set_embed_page_setup (bool embed); + public void set_has_selection (bool has_selection); + public void set_manual_capabilities (Gtk.PrintCapabilities capabilities); + public void set_page_setup (Gtk.PageSetup page_setup); + public void set_settings (Gtk.PrintSettings settings); + public void set_support_selection (bool support_selection); + public int current_page { get; set; } + public bool embed_page_setup { get; set; } + public bool has_selection { get; set; } + public Gtk.PrintCapabilities manual_capabilities { get; set; } + public Gtk.PageSetup page_setup { get; set; } + [NoAccessorMethod] + public Gtk.PrintSettings print_settings { owned get; set; } + public Gtk.Printer selected_printer { get; } + public bool support_selection { get; set; } + } + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public class Printer : GLib.Object { + [CCode (has_construct_function = false)] + public Printer (string name, Gtk.PrintBackend backend, bool virtual_); + public int compare (Gtk.Printer b); + [CCode (cname = "gtk_printer_accepts_pdf")] + public bool get_accepts_pdf (); + [CCode (cname = "gtk_printer_accepts_ps")] + public bool get_accepts_ps (); + public unowned Gtk.PrintBackend get_backend (); + public Gtk.PrintCapabilities get_capabilities (); + public Gtk.PageSetup get_default_page_size (); + public unowned string get_description (); + public bool get_hard_margins (double top, double bottom, double left, double right); + public unowned string get_icon_name (); + [CCode (cname = "gtk_printer_is_virtual")] + public bool get_is_virtual (); + public int get_job_count (); + public unowned string get_location (); + public unowned string get_name (); + public unowned string get_state_message (); + public bool has_details (); + public bool is_accepting_jobs (); + public bool is_active (); + public bool is_default (); + public bool is_paused (); + public GLib.List<Gtk.PageSetup> list_papers (); + public void request_details (); + [NoAccessorMethod] + public bool accepting_jobs { get; } + [NoAccessorMethod] + public bool accepts_pdf { get; construct; } + [NoAccessorMethod] + public bool accepts_ps { get; construct; } + public Gtk.PrintBackend backend { get; construct; } + public string icon_name { get; } + [NoAccessorMethod] + public bool is_virtual { get; construct; } + public int job_count { get; } + public string location { get; } + public string name { get; construct; } + [NoAccessorMethod] + public bool paused { get; } + public string state_message { get; } + public virtual signal void details_acquired (bool success); + } + [CCode (cheader_filename = "gtk/gtkunixprint.h", cprefix = "GTK_PRINT_CAPABILITY_")] + [Flags] + public enum PrintCapabilities { + PAGE_SET, + COPIES, + COLLATE, + REVERSE, + SCALE, + GENERATE_PDF, + GENERATE_PS, + PREVIEW, + NUMBER_UP, + NUMBER_UP_LAYOUT + } + [CCode (cheader_filename = "gtk/gtkunixprint.h", instance_pos = 1.9)] + public delegate void PrintJobCompleteFunc (Gtk.PrintJob print_job) throws GLib.Error; + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public delegate bool PrinterFunc (Gtk.Printer printer); + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public static void enumerate_printers (owned Gtk.PrinterFunc func, bool wait); +} |