setup

open fun setup(parent: Window? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)

This function presents a print dialog to let the user select a printer, and set up print settings and page setup.

The @callback will be called when the dialog is dismissed. The obtained struct@Gtk.PrintSetup can then be passed to method@Gtk.PrintDialog.print or method@Gtk.PrintDialog.print_file.

One possible use for this method is to have the user select a printer, then show a page setup UI in the application (e.g. to arrange images on a page), then call method@Gtk.PrintDialog.print on @self to do the printing without further user interaction.

Since

4.14

Parameters

parent

the parent GtkWindow

cancellable

a GCancellable to cancel the operation

callback

a callback to call when the operation is complete