gi-gtk-3.0.34: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Interfaces.PrintOperationPreview

Description

No description available in the introspection data.

Synopsis

Exported types

newtype PrintOperationPreview Source #

Memory-managed wrapper type.

Constructors

PrintOperationPreview (ManagedPtr PrintOperationPreview) 

Instances

Instances details
Eq PrintOperationPreview Source # 
Instance details

Defined in GI.Gtk.Interfaces.PrintOperationPreview

GObject PrintOperationPreview Source # 
Instance details

Defined in GI.Gtk.Interfaces.PrintOperationPreview

ManagedPtrNewtype PrintOperationPreview Source # 
Instance details

Defined in GI.Gtk.Interfaces.PrintOperationPreview

TypedObject PrintOperationPreview Source # 
Instance details

Defined in GI.Gtk.Interfaces.PrintOperationPreview

Methods

glibType :: IO GType

IsGValue PrintOperationPreview Source #

Convert PrintOperationPreview to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Interfaces.PrintOperationPreview

Methods

toGValue :: PrintOperationPreview -> IO GValue

fromGValue :: GValue -> IO PrintOperationPreview

HasParentTypes PrintOperationPreview Source # 
Instance details

Defined in GI.Gtk.Interfaces.PrintOperationPreview

type ParentTypes PrintOperationPreview Source # 
Instance details

Defined in GI.Gtk.Interfaces.PrintOperationPreview

type ParentTypes PrintOperationPreview = '[Object]

class (GObject o, IsDescendantOf PrintOperationPreview o) => IsPrintOperationPreview o Source #

Type class for types which can be safely cast to PrintOperationPreview, for instance with toPrintOperationPreview.

Instances

Instances details
(GObject o, IsDescendantOf PrintOperationPreview o) => IsPrintOperationPreview o Source # 
Instance details

Defined in GI.Gtk.Interfaces.PrintOperationPreview

toPrintOperationPreview :: (MonadIO m, IsPrintOperationPreview o) => o -> m PrintOperationPreview Source #

Cast to PrintOperationPreview, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded 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 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

type C_PrintOperationPreviewGotPageSizeCallback = Ptr () -> Ptr PrintContext -> Ptr PageSetup -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PrintOperationPreviewGotPageSizeCallback Source #

Arguments

 = PrintContext

context: the current PrintContext

-> PageSetup

pageSetup: the PageSetup for the current page

-> IO () 

The gotPageSize signal is emitted once for each page that gets rendered to the preview.

A handler for this signal should update the context according to pageSetup and set up a suitable cairo context, using printContextSetCairoContext.

afterPrintOperationPreviewGotPageSize :: (IsPrintOperationPreview a, MonadIO m) => a -> PrintOperationPreviewGotPageSizeCallback -> m SignalHandlerId Source #

Connect a signal handler for the gotPageSize signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after printOperationPreview #gotPageSize callback

onPrintOperationPreviewGotPageSize :: (IsPrintOperationPreview a, MonadIO m) => a -> PrintOperationPreviewGotPageSizeCallback -> m SignalHandlerId Source #

Connect a signal handler for the gotPageSize signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on printOperationPreview #gotPageSize callback

ready

type C_PrintOperationPreviewReadyCallback = Ptr () -> Ptr PrintContext -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PrintOperationPreviewReadyCallback Source #

Arguments

 = PrintContext

context: the current PrintContext

-> IO () 

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

A handler for this signal can be used for setup tasks.

afterPrintOperationPreviewReady :: (IsPrintOperationPreview a, MonadIO m) => a -> PrintOperationPreviewReadyCallback -> m SignalHandlerId Source #

Connect a signal handler for the ready signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after printOperationPreview #ready callback

onPrintOperationPreviewReady :: (IsPrintOperationPreview a, MonadIO m) => a -> PrintOperationPreviewReadyCallback -> m SignalHandlerId Source #

Connect a signal handler for the ready signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on printOperationPreview #ready callback