GtkPrintJob {RGtk2}R Documentation

GtkPrintJob

Description

Represents a print job

Hierarchy

  GObject
   +----GtkPrintJob

Detailed Description

A GtkPrintJob object represents a job that is sent to a printer. You only need to deal directly with print jobs if you use the non-portable GtkPrintUnixDialog API.

Use gtk\Print\Job\Get\Surface() to obtain the cairo surface onto which the pages must be drawn. Use gtk\Print\Job\Send() to send the finished job to the printer. If you don't use cairo GtkPrintJob also supports printing of manually generated postscript, via gtk\Print\Job\Set\Source\File().

Printing support was added in GTK+ 2.10.

User Functions

GtkPrintJobCompleteFunc(print.job, user.data, error)
The type of callback that is passed to gtk\Print\Job\Send(). It is called when the print job has been completely sent.

print.job
[GtkPrintJob] the GtkPrintJob
user.data
[R object] user data that has been passed to gtk\Print\Job\Send()
error
[GError] a GError that contains error information if the sending of the print job failed, otherwise NULL

Signals

status-changed(job, user.data)
Gets emitted when the status of a job changes. The signal handler can use gtk\Print\Job\Get\Status() to obtain the new status.

Since 2.10

job
[GtkPrintJob] the GtkPrintJob object on which the signal was emitted
user.data
[R object] user data set when the signal handler was connected.

Properties

page-setup [GtkPageSetup : Read / Write / Construct Only]

Page Setup.

printer [GtkPrinter : Read / Write / Construct Only]

Printer to print the job to.

settings [GtkPrintSettings : Read / Write / Construct Only]

Printer settings.

title [character : Read / Write / Construct Only]

Title of the print job. Default value: NULL

track-print-status [logical : Read / Write]

TRUE if the print job will continue to emit status-changed signals after the print data has been sent to the printer or print server. Default value: FALSE

Author(s)

Derived by RGtkGen from GTK+ documentation

References

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


[Package RGtk2 version 2.12.5-3 Index]