PrintOperationPreviewImpl

data class PrintOperationPreviewImpl(val gtkPrintOperationPreviewPointer: <Error class: unknown class><<Error class: unknown class>>) : PrintOperationPreview

The PrintOperationPreviewImpl type represents a native instance of the PrintOperationPreview interface.

Constructors

Link copied to clipboard
constructor(gtkPrintOperationPreviewPointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of PrintOperationPreview for the provided CPointer.

Properties

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

Functions

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 onGotPageSize(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 onReady(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 renderPage(pageNr: <Error class: unknown class>)

Renders a page to the preview.