| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
GI.Gtk.Interfaces.PrintOperationPreview
Description
No description available in the introspection data.
Synopsis
- newtype PrintOperationPreview = PrintOperationPreview (ManagedPtr PrintOperationPreview)
 - class (GObject o, IsDescendantOf PrintOperationPreview o) => IsPrintOperationPreview o
 - toPrintOperationPreview :: (MonadIO m, IsPrintOperationPreview o) => o -> m PrintOperationPreview
 - printOperationPreviewEndPreview :: (HasCallStack, MonadIO m, IsPrintOperationPreview a) => a -> m ()
 - printOperationPreviewIsSelected :: (HasCallStack, MonadIO m, IsPrintOperationPreview a) => a -> Int32 -> m Bool
 - printOperationPreviewRenderPage :: (HasCallStack, MonadIO m, IsPrintOperationPreview a) => a -> Int32 -> m ()
 - type C_PrintOperationPreviewGotPageSizeCallback = Ptr () -> Ptr PrintContext -> Ptr PageSetup -> Ptr () -> IO ()
 - type PrintOperationPreviewGotPageSizeCallback = PrintContext -> PageSetup -> IO ()
 - afterPrintOperationPreviewGotPageSize :: (IsPrintOperationPreview a, MonadIO m) => a -> PrintOperationPreviewGotPageSizeCallback -> m SignalHandlerId
 - genClosure_PrintOperationPreviewGotPageSize :: MonadIO m => PrintOperationPreviewGotPageSizeCallback -> m (GClosure C_PrintOperationPreviewGotPageSizeCallback)
 - mk_PrintOperationPreviewGotPageSizeCallback :: C_PrintOperationPreviewGotPageSizeCallback -> IO (FunPtr C_PrintOperationPreviewGotPageSizeCallback)
 - noPrintOperationPreviewGotPageSizeCallback :: Maybe PrintOperationPreviewGotPageSizeCallback
 - onPrintOperationPreviewGotPageSize :: (IsPrintOperationPreview a, MonadIO m) => a -> PrintOperationPreviewGotPageSizeCallback -> m SignalHandlerId
 - wrap_PrintOperationPreviewGotPageSizeCallback :: PrintOperationPreviewGotPageSizeCallback -> C_PrintOperationPreviewGotPageSizeCallback
 - type C_PrintOperationPreviewReadyCallback = Ptr () -> Ptr PrintContext -> Ptr () -> IO ()
 - type PrintOperationPreviewReadyCallback = PrintContext -> IO ()
 - afterPrintOperationPreviewReady :: (IsPrintOperationPreview a, MonadIO m) => a -> PrintOperationPreviewReadyCallback -> m SignalHandlerId
 - genClosure_PrintOperationPreviewReady :: MonadIO m => PrintOperationPreviewReadyCallback -> m (GClosure C_PrintOperationPreviewReadyCallback)
 - mk_PrintOperationPreviewReadyCallback :: C_PrintOperationPreviewReadyCallback -> IO (FunPtr C_PrintOperationPreviewReadyCallback)
 - noPrintOperationPreviewReadyCallback :: Maybe PrintOperationPreviewReadyCallback
 - onPrintOperationPreviewReady :: (IsPrintOperationPreview a, MonadIO m) => a -> PrintOperationPreviewReadyCallback -> m SignalHandlerId
 - wrap_PrintOperationPreviewReadyCallback :: PrintOperationPreviewReadyCallback -> C_PrintOperationPreviewReadyCallback
 
Exported types
newtype PrintOperationPreview Source #
Memory-managed wrapper type.
Constructors
| PrintOperationPreview (ManagedPtr PrintOperationPreview) | 
Instances
| Eq PrintOperationPreview Source # | |
Defined in GI.Gtk.Interfaces.PrintOperationPreview Methods (==) :: PrintOperationPreview -> PrintOperationPreview -> Bool # (/=) :: PrintOperationPreview -> PrintOperationPreview -> Bool #  | |
| IsGValue PrintOperationPreview Source # | Convert   | 
Defined in GI.Gtk.Interfaces.PrintOperationPreview Methods toGValue :: PrintOperationPreview -> IO GValue # fromGValue :: GValue -> IO PrintOperationPreview #  | |
| GObject PrintOperationPreview Source # | |
Defined in GI.Gtk.Interfaces.PrintOperationPreview Methods gobjectType :: IO GType #  | |
| HasParentTypes PrintOperationPreview Source # | |
Defined in GI.Gtk.Interfaces.PrintOperationPreview  | |
| type ParentTypes PrintOperationPreview Source # | |
Defined in GI.Gtk.Interfaces.PrintOperationPreview  | |
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
| (GObject o, IsDescendantOf PrintOperationPreview o) => IsPrintOperationPreview o Source # | |
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 | 
  | 
| -> 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 | 
  | 
| -> Int32 | 
  | 
| -> m Bool | Returns:   | 
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 | 
  | 
| -> Int32 | 
  | 
| -> 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 | 
  | 
| -> PageSetup | 
  | 
| -> 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
genClosure_PrintOperationPreviewGotPageSize :: MonadIO m => PrintOperationPreviewGotPageSizeCallback -> m (GClosure C_PrintOperationPreviewGotPageSizeCallback) Source #
Wrap the callback into a GClosure.
mk_PrintOperationPreviewGotPageSizeCallback :: C_PrintOperationPreviewGotPageSizeCallback -> IO (FunPtr C_PrintOperationPreviewGotPageSizeCallback) Source #
Generate a function pointer callable from C code, from a C_PrintOperationPreviewGotPageSizeCallback.
noPrintOperationPreviewGotPageSizeCallback :: Maybe PrintOperationPreviewGotPageSizeCallback Source #
A convenience synonym for .Nothing :: Maybe PrintOperationPreviewGotPageSizeCallback
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
wrap_PrintOperationPreviewGotPageSizeCallback :: PrintOperationPreviewGotPageSizeCallback -> C_PrintOperationPreviewGotPageSizeCallback Source #
ready
type C_PrintOperationPreviewReadyCallback = Ptr () -> Ptr PrintContext -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PrintOperationPreviewReadyCallback Source #
Arguments
| = 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
genClosure_PrintOperationPreviewReady :: MonadIO m => PrintOperationPreviewReadyCallback -> m (GClosure C_PrintOperationPreviewReadyCallback) Source #
Wrap the callback into a GClosure.
mk_PrintOperationPreviewReadyCallback :: C_PrintOperationPreviewReadyCallback -> IO (FunPtr C_PrintOperationPreviewReadyCallback) Source #
Generate a function pointer callable from C code, from a C_PrintOperationPreviewReadyCallback.
noPrintOperationPreviewReadyCallback :: Maybe PrintOperationPreviewReadyCallback Source #
A convenience synonym for .Nothing :: Maybe PrintOperationPreviewReadyCallback
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