Top |
void | (*GtkPrintJobCompleteFunc) () |
GtkPrintJob * | gtk_print_job_new () |
GtkPrintSettings * | gtk_print_job_get_settings () |
GtkPrinter * | gtk_print_job_get_printer () |
const gchar * | gtk_print_job_get_title () |
GtkPrintStatus | gtk_print_job_get_status () |
gboolean | gtk_print_job_set_source_file () |
cairo_surface_t * | gtk_print_job_get_surface () |
void | gtk_print_job_send () |
void | gtk_print_job_set_track_print_status () |
gboolean | gtk_print_job_get_track_print_status () |
GtkPageSetup * | page-setup | Read / Write / Construct Only |
GtkPrinter * | printer | Read / Write / Construct Only |
GtkPrintSettings * | settings | Read / Write / Construct Only |
char * | title | Read / Write / Construct Only |
gboolean | track-print-status | Read / Write |
void (*GtkPrintJobCompleteFunc) (GtkPrintJob *print_job
,gpointer user_data
,GError *error
);
GtkPrintJob * gtk_print_job_new (const gchar *title
,GtkPrinter *printer
,GtkPrintSettings *settings
,GtkPageSetup *page_setup
);
Creates a new GtkPrintJob.
Since: 2.10
GtkPrintSettings *
gtk_print_job_get_settings (GtkPrintJob *job
);
Gets the GtkPrintSettings of the print job.
Since: 2.10
GtkPrinter *
gtk_print_job_get_printer (GtkPrintJob *job
);
Gets the GtkPrinter of the print job.
Since: 2.10
const gchar *
gtk_print_job_get_title (GtkPrintJob *job
);
Gets the job title.
Since: 2.10
GtkPrintStatus
gtk_print_job_get_status (GtkPrintJob *job
);
Gets the status of the print job.
Since: 2.10
gboolean gtk_print_job_set_source_file (GtkPrintJob *job
,const gchar *filename
,GError **error
);
Make the GtkPrintJob send an existing document to the
printing system. The file can be in any format understood
by the platforms printing system (typically PostScript,
but on many platforms PDF may work too). See
gtk_printer_accepts_pdf()
and gtk_printer_accepts_ps()
.
Since: 2.10
cairo_surface_t * gtk_print_job_get_surface (GtkPrintJob *job
,GError **error
);
Gets a cairo surface onto which the pages of the print job should be rendered.
Since: 2.10
void gtk_print_job_send (GtkPrintJob *job
,GtkPrintJobCompleteFunc callback
,gpointer user_data
,GDestroyNotify dnotify
);
Sends the print job off to the printer.
job |
a GtkPrintJob |
|
callback |
function to call when the job completes or an error occurs |
|
user_data |
user data that gets passed to |
|
dnotify |
destroy notify for |
Since: 2.10
void gtk_print_job_set_track_print_status (GtkPrintJob *job
,gboolean track_status
);
If track_status is TRUE
, the print job will try to continue report
on the status of the print job in the printer queues and printer. This
can allow your application to show things like "out of paper" issues,
and when the print job actually reaches the printer.
This function is often implemented using some form of polling, so it should not be enabled unless needed.
Since: 2.10
gboolean
gtk_print_job_get_track_print_status (GtkPrintJob *job
);
Returns wheter jobs will be tracked after printing.
For details, see gtk_print_job_set_track_print_status()
.
Since: 2.10
“page-setup”
property“page-setup” GtkPageSetup *
Page Setup.
Owner: GtkPrintJob
Flags: Read / Write / Construct Only
“printer”
property“printer” GtkPrinter *
Printer to print the job to.
Owner: GtkPrintJob
Flags: Read / Write / Construct Only
“settings”
property“settings” GtkPrintSettings *
Printer settings.
Owner: GtkPrintJob
Flags: Read / Write / Construct Only
“title”
property “title” char *
Title of the print job.
Owner: GtkPrintJob
Flags: Read / Write / Construct Only
Default value: NULL
“status-changed”
signalvoid user_function (GtkPrintJob *job, gpointer 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.
job |
the GtkPrintJob object on which the signal was emitted |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.10