webkit.print_operation

Module for [PrintOperation] class

Types 3

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.PrintOperation.setPrintSettings] or display the print dialog with [webkit.print_operation.PrintOperation.runDialog].

Methods
GType _gType() @property
PrintOperation self()Returns `this`, for use in `with` statements.
PrintOperationGidBuilder builder()Get builder for [webkit.print_operation.PrintOperation] Returns: New builder object
gtk.page_setup.PageSetup pageSetup() @propertyGet `pageSetup` property. Returns: The initial #GtkPageSetup for the print operation.
void pageSetup(gtk.page_setup.PageSetup propval) @propertySet `pageSetup` property. Params: propval = The initial #GtkPageSetup for the print operation.
gtk.print_settings.PrintSettings printSettings() @propertyGet `printSettings` property. Returns: The initial #GtkPrintSettings for the print operation.
void printSettings(gtk.print_settings.PrintSettings propval) @propertySet `printSettings` property. Params: propval = The initial #GtkPrintSettings for the print operation.
webkit.web_view.WebView webView() @propertyGet `webView` property. Returns: The #WebKitWebView that will be printed.
gtk.page_setup.PageSetup getPageSetup()Return the current page setup of print_operation.
gtk.print_settings.PrintSettings getPrintSettings()Return the current print settings of print_operation.
void print()Start a print operation using current print settings and page setup.
webkit.types.PrintOperationResponse runDialog(gtk.window.Window parent = null)Run the print dialog and start printing.
void setPageSetup(gtk.page_setup.PageSetup pageSetup)Set the current page setup of print_operation.
void setPrintSettings(gtk.print_settings.PrintSettings printSettings)Set the current print settings of print_operation.
gulong connectFailed(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] == glib.error.ErrorWrap))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.print_operation.PrintOperation))) && Parameters!T.length < 3)Connect to `Failed` signal.
gulong connectFinished(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] : webkit.print_operation.PrintOperation))) && Parameters!T.length < 2)Connect to `Finished` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(webkit.web_view.WebView webView)Create a new #WebKitPrintOperation to print web_view contents.
Methods
T pageSetup(gtk.page_setup.PageSetup propval)Set `pageSetup` property. Params: propval = The initial #GtkPageSetup for the print operation. Returns: Builder instance for fluent chaining
T printSettings(gtk.print_settings.PrintSettings propval)Set `printSettings` property. Params: propval = The initial #GtkPrintSettings for the print operation. Returns: Builder instance for fluent chaining
T webView(webkit.web_view.WebView propval)Set `webView` property. Params: propval = The #WebKitWebView that will be printed. Returns: Builder instance for fluent chaining

Fluent builder for [webkit.print_operation.PrintOperation]