PrintOperation

class PrintOperation(pointer: <Error class: unknown class><<Error class: unknown class>>)

Controls a print operation.

A #WebKitPrintOperation controls a print operation in WebKit. With a similar API to #GtkPrintOperation, it lets you set the print settings with webkit_print_operation_set_print_settings() or display the print dialog with webkit_print_operation_run_dialog().

Skipped during bindings generation

  • method web-view: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(webView: WebView)

Create a new #WebKitPrintOperation to print @web_view contents.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var pageSetup: <Error class: unknown class>

The initial #GtkPageSetup for the print operation.

Link copied to clipboard
var printSettings: <Error class: unknown class>

The initial #GtkPrintSettings for the print operation.

Link copied to clipboard
val webkitPrintOperationPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun connectFailed(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>) -> Unit): <Error class: unknown class>

Emitted when an error occurs while printing. The given @error, of the domain %WEBKIT_PRINT_ERROR, contains further details of the failure. The #WebKitPrintOperation::finished signal is emitted after this one.

Link copied to clipboard
fun connectFinished(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the print operation has finished doing everything required for printing.

Link copied to clipboard
fun print()

Start a print operation using current print settings and page setup.

Link copied to clipboard
fun runDialog(parent: <Error class: unknown class>? = null): PrintOperationResponse

Run the print dialog and start printing.