GtkPrinter {RGtk2}R Documentation

GtkPrinter

Description

Represents a printer

Hierarchy

  GObject
   +----GtkPrinter
  GObject
   +----GtkPrintBackend

Detailed Description

A GtkPrinter object represents a printer. You only need to deal directly with printers if you use the non-portable GtkPrintUnixDialog API. GtkPrinter GtkPrinter GtkPrintUnixDialog GtkPrintUnixDialog 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. GtkPrinter GtkPrinter GtkPrinter GtkPrinter GtkPrintJob GtkPrintJob Printing support was added in GTK+ 2.10.

User Functions

GtkPrinterFunc(printer, data)
The type of function passed to gtk\Enumerate\Printers(). Note that you need to ref printer, if you want to keep a reference to it after the function has returned.

printer
[GtkPrinter] a GtkPrinter
data
[R object] user data passed to gtk\Enumerate\Printers()

Signals

details-acquired(printer, success, user.data)
Gets emitted in response to a request for detailed information about a printer from the print backend. The success parameter indicates if the information was actually obtained.

Since 2.10

printer
[GtkPrinter] the GtkPrinter on which the signal is emitted
success
[logical] TRUE if the details were successfully acquired
user.data
[R object] user data set when the signal handler was connected.

Properties

accepts-pdf [logical : Read / Write / Construct Only]

TRUE if this printer can accept PDF. Default value: TRUE

accepts-ps [logical : Read / Write / Construct Only]

TRUE if this printer can accept PostScript. Default value: TRUE

backend [GtkPrintBackend : Read / Write / Construct Only]

Backend for the printer.

icon-name [character : Read]

The icon name to use for the printer. Default value: NULL

is-virtual [logical : Read / Write / Construct Only]

FALSE if this represents a real hardware printer. Default value: FALSE

job-count [integer : Read]

Number of jobs queued in the printer. Allowed values: >= 0 Default value: 0

location [character : Read]

The location of the printer. Default value: NULL

name [character : Read / Write / Construct Only]

Name of the printer. Default value: NULL

state-message [character : Read]

String giving the current state of the printer. Default value: NULL

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://developer.gnome.org/doc/API/2.0/gtk/GtkPrinter.html


[Package RGtk2 version 2.12.5-3 Index]