gtk.print_job
Module for [PrintJob] class
Types 3
A gtk.print_job.PrintJob 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 gtk.print_unix_dialog.PrintUnixDialog API.
Use gtk.print_job.PrintJob.getSurface to obtain the cairo surface onto which the pages must be drawn. Use gtk.print_job.PrintJob.send to send the finished job to the printer. If you don’t use cairo gtk.print_job.PrintJob also supports printing of manually generated PostScript, via gtk.print_job.PrintJob.setSourceFile.
Methods
PrintJobGidBuilder builder() static nothrowGet builder for [gtk.print_job.PrintJob] Returns: New builder objectgtk.page_setup.PageSetup pageSetup() @property nothrowGet `pageSetup` property. Returns: Page setup.gtk.printer.Printer printer() @property nothrowGet `printer` property. Returns: The printer to send the job to.gtk.print_settings.PrintSettings settings() @property nothrowGet `settings` property. Returns: Printer settings.bool trackPrintStatus() @property nothrowGet `trackPrintStatus` property. Returns: true if the print job will continue to emit status-changed signals after the print data has been setn to the printer.void trackPrintStatus(bool propval) @property nothrowSet `trackPrintStatus` property. Params: propval = true if the print job will continue to emit status-changed signals after the print data has been setn to the printer.bool getCollate() nothrowGets whether this job is printed collated. Returns: whether the job is printed collatedgtk.types.NumberUpLayout getNUpLayout() nothrowGets the n-up layout setting for this job. Returns: the n-up layoutgtk.types.PageRange[] getPageRanges() nothrowGets the page ranges for this job. Returns: a pointer to an array of [gtk.types.PageRange] structsgtk.types.PageSet getPageSet() nothrowGets the [gtk.types.PageSet] setting for this job. Returns: the [gtk.types.PageSet] settinggtk.types.PrintPages getPages() nothrowGets the [gtk.types.PrintPages] setting for this job. Returns: the [gtk.types.PrintPages] settinggtk.printer.Printer getPrinter() nothrowGets the [gtk.printer.Printer] of the print job. Returns: the printer of jobbool getReverse() nothrowGets whether this job is printed reversed. Returns: whether the job is printed reversed.bool getRotate() nothrowGets whether the job is printed rotated. Returns: whether the job is printed rotatedgtk.print_settings.PrintSettings getSettings() nothrowGets the [gtk.print_settings.PrintSettings] of the print job. Returns: the settings of jobgtk.types.PrintStatus getStatus() nothrowGets the status of the print job. Returns: the status of jobcairo.surface.Surface getSurface()Gets a cairo surface onto which the pages of the print job should be rendered. Returns: the cairo surface of job Throws: [ErrorWrap]void setNUpLayout(gtk.types.NumberUpLayout layout) nothrowSets the n-up layout setting for this job.void setPageSet(gtk.types.PageSet pageSet) nothrowSets the [gtk.types.PageSet] setting for this job.void setPages(gtk.types.PrintPages pages) nothrowSets the [gtk.types.PrintPages] setting for this job.bool setSourceFd(int fd)Make the [gtk.print_job.PrintJob] send an existing document to the printing system.bool setSourceFile(string filename)Make the [gtk.print_job.PrintJob] send an existing document to the printing system.void setTrackPrintStatus(bool trackStatus) nothrowIf 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.gulong connectStatusChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.print_job.PrintJob)))
&& Parameters!T.length < 2) nothrowConnect to `StatusChanged` signal.Constructors
this(string title, gtk.printer.Printer printer, gtk.print_settings.PrintSettings settings, gtk.page_setup.PageSetup pageSetup)Creates a new [gtk.print_job.PrintJob].Fluent builder implementation template for gtk.print_job.PrintJob
Methods
T pageSetup(gtk.page_setup.PageSetup propval) nothrowSet `pageSetup` property. Params: propval = Page setup. Returns: Builder instance for fluent chainingT printer(gtk.printer.Printer propval) nothrowSet `printer` property. Params: propval = The printer to send the job to. Returns: Builder instance for fluent chainingT settings(gtk.print_settings.PrintSettings propval) nothrowSet `settings` property. Params: propval = Printer settings. Returns: Builder instance for fluent chainingT title(string propval) nothrowSet `title` property. Params: propval = The title of the print job. Returns: Builder instance for fluent chainingT trackPrintStatus(bool propval) nothrowSet `trackPrintStatus` property. Params: propval = true if the print job will continue to emit status-changed signals after the print data has been setn to the printer. Returns: Builder instance fo...Fluent builder for gtk.print_job.PrintJob