Class

GtkPrinter

Description [src]

final class Gtk.Printer : GObject.Object {
  /* No available fields */
}

A GtkPrinter object represents a printer.

You only need to deal directly with printers if you use the non-portable GtkPrintUnixDialog API.

A GtkPrinter allows to get status information about the printer, such as its description, its location, the number of queued jobs, etc. Most importantly, a GtkPrinter object can be used to create a GtkPrintJob object, which lets you print to the printer.

Hierarchy

hierarchy this GtkPrinter ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

gtk_printer_new

Creates a new GtkPrinter.

Instance methods

gtk_printer_accepts_pdf

Returns whether the printer accepts input in PDF format.

gtk_printer_accepts_ps

Returns whether the printer accepts input in PostScript format.

gtk_printer_compare

Compares two printers.

gtk_printer_get_backend

Returns the backend of the printer.

gtk_printer_get_capabilities

Returns the printer’s capabilities.

gtk_printer_get_default_page_size

Returns default page size of printer.

gtk_printer_get_description

Gets the description of the printer.

gtk_printer_get_hard_margins

Retrieve the hard margins of printer.

gtk_printer_get_hard_margins_for_paper_size

Retrieve the hard margins of printer for paper_size.

gtk_printer_get_icon_name

Gets the name of the icon to use for the printer.

gtk_printer_get_job_count

Gets the number of jobs currently queued on the printer.

gtk_printer_get_location

Returns a description of the location of the printer.

gtk_printer_get_name

Returns the name of the printer.

gtk_printer_get_state_message

Returns the state message describing the current state of the printer.

gtk_printer_has_details

Returns whether the printer details are available.

gtk_printer_is_accepting_jobs

Returns whether the printer is accepting jobs.

gtk_printer_is_active

Returns whether the printer is currently active (i.e. accepts new jobs).

gtk_printer_is_default

Returns whether the printer is the default printer.

gtk_printer_is_paused

Returns whether the printer is currently paused.

gtk_printer_is_virtual

Returns whether the printer is virtual (i.e. does not represent actual printer hardware, but something like a CUPS class).

gtk_printer_list_papers

Lists all the paper sizes printer supports.

gtk_printer_request_details

Requests the printer details.

Methods inherited from GObject (42)

Properties

Gtk.Printer:accepting-jobs

TRUE if the printer is accepting jobs.

Gtk.Printer:accepts-pdf

TRUE if this printer can accept PDF.

Gtk.Printer:accepts-ps

TRUE if this printer can accept PostScript.

Gtk.Printer:backend

The backend for the printer.

Gtk.Printer:icon-name

Icon name to use for the printer.

Gtk.Printer:is-virtual

FALSE if this represents a real hardware device.

Gtk.Printer:job-count

Number of jobs queued in the printer.

Gtk.Printer:location

Information about the location of the printer.

Gtk.Printer:name

The name of the printer.

Gtk.Printer:paused

TRUE if this printer is paused.

Gtk.Printer:state-message

String giving the current status of the printer.

Signals

Gtk.Printer::details-acquired

Emitted in response to a request for detailed information about a printer from the print backend.

Signals inherited from GObject (1)