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
PrintOperationGidBuilder builder() static nothrowGet builder for [webkit.print_operation.PrintOperation] Returns: New builder objectgtk.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.print_settings.PrintSettings getPrintSettings() nothrowReturn the current print settings of print_operation.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(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 chainingT printSettings(gtk.print_settings.PrintSettings propval) nothrowSet `printSettings` property. Params: propval = The initial #GtkPrintSettings for the print operation. Returns: Builder instance for fluent chainingT webView(webkit.web_view.WebView propval) nothrowSet `webView` property. Params: propval = The #WebKitWebView that will be printed. Returns: Builder instance for fluent chainingFluent builder for webkit.print_operation.PrintOperation
Methods