PrintOperationPreviewT

GtkPrintOperationPreview is the interface that is used to implement print preview.

A GtkPrintOperationPreview object is passed to the [signal@Gtk.PrintOperation::preview] signal by [class@Gtk.PrintOperation].

Members

Functions

addOnGotPageSize
gulong addOnGotPageSize(void delegate(PrintContext, PageSetup, PrintOperationPreviewIF) dlg, ConnectFlags connectFlags)

Emitted once for each page that gets rendered to the preview.

addOnReady
gulong addOnReady(void delegate(PrintContext, PrintOperationPreviewIF) dlg, ConnectFlags connectFlags)

The ::ready signal gets emitted once per preview operation, before the first page is rendered.

endPreview
void endPreview()

Ends a preview.

getPrintOperationPreviewStruct
GtkPrintOperationPreview* getPrintOperationPreviewStruct(bool transferOwnership)

Get the main Gtk struct

isSelected
bool isSelected(int pageNr)

Returns whether the given page is included in the set of pages that have been selected for printing.

renderPage
void renderPage(int pageNr)

Renders a page to the preview.

Meta