print


Description:

public async OutputStream? print (Window? parent, PrintSetup? setup, Cancellable? cancellable) throws Error

This function prints content from a stream.

If you pass `NULL` as setup, then this method will present a print dialog. Otherwise, it will attempt to print directly, without user interaction.

The callback will be called when the printing is done. It should call [method@Gtk.PrintDialog.print_finish] to obtain the results.

Parameters:

this

a `GtkPrintDialog`

parent

the parent `GtkWindow`

setup

the `GtkPrintSetup` to use

cancellable

a `GCancellable` to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback