Functions
GtkPrintJobCompleteFunc ()
void
(*GtkPrintJobCompleteFunc) (GtkPrintJob *print_job,
gpointer user_data,
const GError *error);
The type of callback that is passed to gtk_print_job_send().
It is called when the print job has been completely sent.
gtk_print_job_get_printer ()
GtkPrinter *
gtk_print_job_get_printer (GtkPrintJob *job);
Gets the GtkPrinter of the print job.
Returns
the printer of job
.
[transfer none]
Since: 2.10
gtk_print_job_get_title ()
const gchar *
gtk_print_job_get_title (GtkPrintJob *job);
Gets the job title.
Since: 2.10
gtk_print_job_get_status ()
GtkPrintStatus
gtk_print_job_get_status (GtkPrintJob *job);
Gets the status of the print job.
Returns
the status of job
Since: 2.10
gtk_print_job_get_surface ()
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.
Returns
the cairo surface of job
.
[transfer none]
Since: 2.10
gtk_print_job_set_track_print_status ()
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
gtk_print_job_get_page_ranges ()
GtkPageRange *
gtk_print_job_get_page_ranges (GtkPrintJob *job,
gint *n_ranges);
Gets the page ranges for this job.
Returns
a pointer to an
array of GtkPageRange structs.
[array length=n_ranges][transfer none]
Since: 3.0
gtk_print_job_set_page_ranges ()
void
gtk_print_job_set_page_ranges (GtkPrintJob *job,
GtkPageRange *ranges,
gint n_ranges);
Sets the page ranges for this job.
Since: 3.0
gtk_print_job_get_num_copies ()
gint
gtk_print_job_get_num_copies (GtkPrintJob *job);
Gets the number of copies of this job.
Returns
the number of copies
Since: 3.0
gtk_print_job_set_num_copies ()
void
gtk_print_job_set_num_copies (GtkPrintJob *job,
gint num_copies);
Sets the number of copies for this job.
Since: 3.0
gtk_print_job_get_scale ()
gdouble
gtk_print_job_get_scale (GtkPrintJob *job);
Gets the scale for this job (where 1.0 means unscaled).
Since: 3.0
gtk_print_job_set_scale ()
void
gtk_print_job_set_scale (GtkPrintJob *job,
gdouble scale);
Sets the scale for this job (where 1.0 means unscaled).
Since: 3.0
gtk_print_job_get_n_up ()
guint
gtk_print_job_get_n_up (GtkPrintJob *job);
Gets the n-up setting for this job.
Since: 3.0
gtk_print_job_set_n_up ()
void
gtk_print_job_set_n_up (GtkPrintJob *job,
guint n_up);
Sets the n-up setting for this job.
Since: 3.0
gtk_print_job_set_n_up_layout ()
void
gtk_print_job_set_n_up_layout (GtkPrintJob *job,
GtkNumberUpLayout layout);
Sets the n-up layout setting for this job.
Since: 3.0
gtk_print_job_get_rotate ()
gboolean
gtk_print_job_get_rotate (GtkPrintJob *job);
Gets whether the job is printed rotated.
Returns
whether the job is printed rotated
Since: 3.0
gtk_print_job_set_rotate ()
void
gtk_print_job_set_rotate (GtkPrintJob *job,
gboolean rotate);
Sets whether this job is printed rotated.
Since: 3.0
gtk_print_job_get_collate ()
gboolean
gtk_print_job_get_collate (GtkPrintJob *job);
Gets whether this job is printed collated.
Returns
whether the job is printed collated
Since: 3.0
gtk_print_job_set_collate ()
void
gtk_print_job_set_collate (GtkPrintJob *job,
gboolean collate);
Sets whether this job is printed collated.
Since: 3.0
gtk_print_job_get_reverse ()
gboolean
gtk_print_job_get_reverse (GtkPrintJob *job);
Gets whether this job is printed reversed.
Returns
whether the job is printed reversed.
Since: 3.0
gtk_print_job_set_reverse ()
void
gtk_print_job_set_reverse (GtkPrintJob *job,
gboolean reverse);
Sets whether this job is printed reversed.
Since: 3.0