gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Interfaces.PrintOperationPreview

Contents

Description

 

Synopsis

Exported types

Methods

endPreview

printOperationPreviewEndPreview Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperationPreview a) 
=> a

preview: a PrintOperationPreview

-> m () 

Ends a preview.

This function must be called to finish a custom print preview.

Since: 2.10

isSelected

printOperationPreviewIsSelected Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperationPreview a) 
=> a

preview: a PrintOperationPreview

-> Int32

pageNr: a page number

-> m Bool

Returns: True if the page has been selected for printing

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

Since: 2.10

renderPage

printOperationPreviewRenderPage Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperationPreview a) 
=> a

preview: a PrintOperationPreview

-> Int32

pageNr: the page to render

-> m () 

Renders a page to the preview, using the print context that was passed to the PrintOperation::preview handler together with preview.

A custom iprint preview should use this function in its ::expose handler to render the currently selected page.

Note that this function requires a suitable cairo context to be associated with the print context.

Since: 2.10

Signals

gotPageSize

ready