PrintOperationPreview

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.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val gtkPrintOperationPreviewPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun connectGotPageSize(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (context: PrintContext, pageSetup: PageSetup) -> Unit): <Error class: unknown class>

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

Link copied to clipboard
open fun connectReady(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (context: PrintContext) -> Unit): <Error class: unknown class>

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

Link copied to clipboard
open fun endPreview()

Ends a preview.

Link copied to clipboard
open fun isSelected(pageNr: <Error class: unknown class>): Boolean

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

Link copied to clipboard
open fun renderPage(pageNr: <Error class: unknown class>)

Renders a page to the preview.