PrintCustomWidget

A WebKitPrintCustomWidget allows to embed a custom widget in the print dialog by connecting to the #WebKitPrintOperation::create-custom-widget signal, creating a new WebKitPrintCustomWidget with webkit_print_custom_widget_new() and returning it from there. You can later use webkit_print_operation_run_dialog() to display the dialog.

Constructors

this
this(WebKitPrintCustomWidget* webKitPrintCustomWidget, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Widget widget, string title)

Create a new #WebKitPrintCustomWidget with given @widget and @title. The @widget ownership is taken and it is destroyed together with the dialog even if this object could still be alive at that point. You typically want to pass a container widget with multiple widgets in it.

Members

Functions

addOnApply
gulong addOnApply(void delegate(PrintCustomWidget) dlg, ConnectFlags connectFlags)

Emitted right before the printing will start. You should read the information from the widget and update the content based on it if necessary. The widget is not guaranteed to be valid at a later time.

addOnUpdate
gulong addOnUpdate(void delegate(PageSetup, PrintSettings, PrintCustomWidget) dlg, ConnectFlags connectFlags)

Emitted after change of selected printer in the dialog. The actual page setup and print settings are available and the custom widget can actualize itself according to their values.

getPrintCustomWidgetStruct
WebKitPrintCustomWidget* getPrintCustomWidgetStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getTitle
string getTitle()

Return the value of #WebKitPrintCustomWidget:title property for the given @print_custom_widget object.

getWidget
Widget getWidget()

Return the value of #WebKitPrintCustomWidget:widget property for the given @print_custom_widget object. The returned value will always be valid if called from #WebKitPrintCustomWidget::apply or #WebKitPrintCustomWidget::update callbacks, but it will be %NULL if called after the #WebKitPrintCustomWidget::apply signal is emitted.

Static functions

getType
GType getType()

Variables

webKitPrintCustomWidget
WebKitPrintCustomWidget* webKitPrintCustomWidget;

the main Gtk struct

Meta

Since

2.16