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 _getGType() static nothrow
GType _gType() @property nothrow
PrintOperation self() nothrowReturns `this`, for use in `with` statements.
PrintOperationGidBuilder builder() static nothrowGet builder for [webkit.print_operation.PrintOperation] Returns: New builder object
gtk.page_setup.PageSetup pageSetup() @property nothrowGet `pageSetup` property. Returns: The initial #GtkPageSetup for the print operation.
void pageSetup(gtk.page_setup.PageSetup propval) @property nothrowSet `pageSetup` property. Params: propval = The initial #GtkPageSetup for the print operation.
gtk.print_settings.PrintSettings printSettings() @property nothrowGet `printSettings` property. Returns: The initial #GtkPrintSettings for the print operation.
void printSettings(gtk.print_settings.PrintSettings propval) @property nothrowSet `printSettings` property. Params: propval = The initial #GtkPrintSettings for the print operation.
webkit.web_view.WebView webView() @property nothrowGet `webView` property. Returns: The #WebKitWebView that will be printed.
gtk.page_setup.PageSetup getPageSetup() nothrowReturn the current page setup of print_operation.
gtk.print_settings.PrintSettings getPrintSettings() nothrowReturn the current print settings of print_operation.
void print() nothrowStart a print operation using current print settings and page setup.
webkit.types.PrintOperationResponse runDialog(gtk.window.Window parent = null) nothrowRun the print dialog and start printing.
void setPageSetup(gtk.page_setup.PageSetup pageSetup) nothrowSet the current page setup of print_operation.
void setPrintSettings(gtk.print_settings.PrintSettings printSettings) nothrowSet 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) nothrowConnect 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) nothrowConnect 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.

Fluent builder implementation template for webkit.print_operation.PrintOperation

Methods
T pageSetup(gtk.page_setup.PageSetup propval) nothrowSet `pageSetup` property. Params: propval = The initial #GtkPageSetup for the print operation. Returns: Builder instance for fluent chaining
T printSettings(gtk.print_settings.PrintSettings propval) nothrowSet `printSettings` property. Params: propval = The initial #GtkPrintSettings for the print operation. Returns: Builder instance for fluent chaining
T webView(webkit.web_view.WebView propval) nothrowSet `webView` property. Params: propval = The #WebKitWebView that will be printed. Returns: Builder instance for fluent chaining
Methods
PrintOperation build() nothrowCreate object from builder. Returns: New object