| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.WebKit2.Objects.PrintOperation
Contents
Description
- newtype PrintOperation = PrintOperation (ManagedPtr PrintOperation)
- class GObject o => IsPrintOperation o
- toPrintOperation :: IsPrintOperation o => o -> IO PrintOperation
- noPrintOperation :: Maybe PrintOperation
- data PrintOperationGetPageSetupMethodInfo
- printOperationGetPageSetup :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m PageSetup
- data PrintOperationGetPrintSettingsMethodInfo
- printOperationGetPrintSettings :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m PrintSettings
- printOperationNew :: (HasCallStack, MonadIO m, IsWebView a) => a -> m PrintOperation
- data PrintOperationPrintMethodInfo
- printOperationPrint :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m ()
- data PrintOperationRunDialogMethodInfo
- printOperationRunDialog :: (HasCallStack, MonadIO m, IsPrintOperation a, IsWindow b) => a -> Maybe b -> m PrintOperationResponse
- data PrintOperationSetPageSetupMethodInfo
- printOperationSetPageSetup :: (HasCallStack, MonadIO m, IsPrintOperation a, IsPageSetup b) => a -> b -> m ()
- data PrintOperationSetPrintSettingsMethodInfo
- printOperationSetPrintSettings :: (HasCallStack, MonadIO m, IsPrintOperation a, IsPrintSettings b) => a -> b -> m ()
- data PrintOperationPageSetupPropertyInfo
- constructPrintOperationPageSetup :: (IsPrintOperation o, IsPageSetup a) => a -> IO (GValueConstruct o)
- getPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o) => o -> m PageSetup
- printOperationPageSetup :: AttrLabelProxy "pageSetup"
- setPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o, IsPageSetup a) => o -> a -> m ()
- data PrintOperationPrintSettingsPropertyInfo
- constructPrintOperationPrintSettings :: (IsPrintOperation o, IsPrintSettings a) => a -> IO (GValueConstruct o)
- getPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o) => o -> m PrintSettings
- printOperationPrintSettings :: AttrLabelProxy "printSettings"
- setPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o, IsPrintSettings a) => o -> a -> m ()
- data PrintOperationWebViewPropertyInfo
- constructPrintOperationWebView :: (IsPrintOperation o, IsWebView a) => a -> IO (GValueConstruct o)
- getPrintOperationWebView :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe WebView)
- printOperationWebView :: AttrLabelProxy "webView"
- type C_PrintOperationCreateCustomWidgetCallback = Ptr () -> Ptr () -> IO (Ptr PrintCustomWidget)
- type PrintOperationCreateCustomWidgetCallback = IO PrintCustomWidget
- data PrintOperationCreateCustomWidgetSignalInfo
- afterPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId
- genClosure_PrintOperationCreateCustomWidget :: PrintOperationCreateCustomWidgetCallback -> IO Closure
- mk_PrintOperationCreateCustomWidgetCallback :: C_PrintOperationCreateCustomWidgetCallback -> IO (FunPtr C_PrintOperationCreateCustomWidgetCallback)
- noPrintOperationCreateCustomWidgetCallback :: Maybe PrintOperationCreateCustomWidgetCallback
- onPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId
- wrap_PrintOperationCreateCustomWidgetCallback :: PrintOperationCreateCustomWidgetCallback -> Ptr () -> Ptr () -> IO (Ptr PrintCustomWidget)
- type C_PrintOperationFailedCallback = Ptr () -> Ptr GError -> Ptr () -> IO ()
- type PrintOperationFailedCallback = GError -> IO ()
- data PrintOperationFailedSignalInfo
- afterPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFailedCallback -> m SignalHandlerId
- genClosure_PrintOperationFailed :: PrintOperationFailedCallback -> IO Closure
- mk_PrintOperationFailedCallback :: C_PrintOperationFailedCallback -> IO (FunPtr C_PrintOperationFailedCallback)
- noPrintOperationFailedCallback :: Maybe PrintOperationFailedCallback
- onPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFailedCallback -> m SignalHandlerId
- wrap_PrintOperationFailedCallback :: PrintOperationFailedCallback -> Ptr () -> Ptr GError -> Ptr () -> IO ()
- type C_PrintOperationFinishedCallback = Ptr () -> Ptr () -> IO ()
- type PrintOperationFinishedCallback = IO ()
- data PrintOperationFinishedSignalInfo
- afterPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFinishedCallback -> m SignalHandlerId
- genClosure_PrintOperationFinished :: PrintOperationFinishedCallback -> IO Closure
- mk_PrintOperationFinishedCallback :: C_PrintOperationFinishedCallback -> IO (FunPtr C_PrintOperationFinishedCallback)
- noPrintOperationFinishedCallback :: Maybe PrintOperationFinishedCallback
- onPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFinishedCallback -> m SignalHandlerId
- wrap_PrintOperationFinishedCallback :: PrintOperationFinishedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype PrintOperation Source #
Constructors
| PrintOperation (ManagedPtr PrintOperation) |
Instances
| GObject PrintOperation Source # | |
| IsObject PrintOperation Source # | |
| IsPrintOperation PrintOperation Source # | |
| ((~) * info (ResolvePrintOperationMethod t PrintOperation), MethodInfo * info PrintOperation p) => IsLabel t (PrintOperation -> p) Source # | |
| ((~) * info (ResolvePrintOperationMethod t PrintOperation), MethodInfo * info PrintOperation p) => IsLabelProxy t (PrintOperation -> p) Source # | |
| HasAttributeList * PrintOperation Source # | |
| type AttributeList PrintOperation Source # | |
| type SignalList PrintOperation Source # | |
class GObject o => IsPrintOperation o Source #
Instances
toPrintOperation :: IsPrintOperation o => o -> IO PrintOperation Source #
Methods
getPageSetup
data PrintOperationGetPageSetupMethodInfo Source #
Instances
| ((~) * signature (m PageSetup), MonadIO m, IsPrintOperation a) => MethodInfo * PrintOperationGetPageSetupMethodInfo a signature Source # | |
printOperationGetPageSetup Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPrintOperation a) | |
| => a |
|
| -> m PageSetup | Returns: the current |
Return the current page setup of printOperation. It returns Nothing until
either printOperationSetPageSetup or printOperationRunDialog
have been called.
getPrintSettings
data PrintOperationGetPrintSettingsMethodInfo Source #
Instances
| ((~) * signature (m PrintSettings), MonadIO m, IsPrintOperation a) => MethodInfo * PrintOperationGetPrintSettingsMethodInfo a signature Source # | |
printOperationGetPrintSettings Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPrintOperation a) | |
| => a |
|
| -> m PrintSettings | Returns: the current |
Return the current print settings of printOperation. It returns Nothing until
either printOperationSetPrintSettings or printOperationRunDialog
have been called.
new
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m PrintOperation | Returns: a new |
Create a new PrintOperation to print webView contents.
data PrintOperationPrintMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsPrintOperation a) => MethodInfo * PrintOperationPrintMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsPrintOperation a) | |
| => a |
|
| -> m () |
Start a print operation using current print settings and page setup
without showing the print dialog. If either print settings or page setup
are not set with printOperationSetPrintSettings and
printOperationSetPageSetup, the default options will be used
and the print job will be sent to the default printer.
The PrintOperation::finished signal is emitted when the printing
operation finishes. If an error occurs while printing the signal
PrintOperation::failed is emitted before PrintOperation::finished.
runDialog
data PrintOperationRunDialogMethodInfo Source #
Instances
| ((~) * signature (Maybe b -> m PrintOperationResponse), MonadIO m, IsPrintOperation a, IsWindow b) => MethodInfo * PrintOperationRunDialogMethodInfo a signature Source # | |
printOperationRunDialog Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPrintOperation a, IsWindow b) | |
| => a |
|
| -> Maybe b |
|
| -> m PrintOperationResponse | Returns: the |
Run the print dialog and start printing using the options selected by
the user. This method returns when the print dialog is closed.
If the print dialog is cancelled PrintOperationResponseCancel
is returned. If the user clicks on the print button, PrintOperationResponsePrint
is returned and the print operation starts. In this case, the PrintOperation::finished
signal is emitted when the operation finishes. If an error occurs while printing, the signal
PrintOperation::failed is emitted before PrintOperation::finished.
If the print dialog is not cancelled current print settings and page setup of printOperation
are updated with options selected by the user when Print button is pressed in print dialog.
You can get the updated print settings and page setup by calling
printOperationGetPrintSettings and printOperationGetPageSetup
after this method.
setPageSetup
data PrintOperationSetPageSetupMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsPrintOperation a, IsPageSetup b) => MethodInfo * PrintOperationSetPageSetupMethodInfo a signature Source # | |
printOperationSetPageSetup Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPrintOperation a, IsPageSetup b) | |
| => a |
|
| -> b |
|
| -> m () |
Set the current page setup of printOperation. Current page setup is used for the
initial values of the print dialog when printOperationRunDialog is called.
setPrintSettings
data PrintOperationSetPrintSettingsMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsPrintOperation a, IsPrintSettings b) => MethodInfo * PrintOperationSetPrintSettingsMethodInfo a signature Source # | |
printOperationSetPrintSettings Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPrintOperation a, IsPrintSettings b) | |
| => a |
|
| -> b |
|
| -> m () |
Set the current print settings of printOperation. Current print settings are used for
the initial values of the print dialog when printOperationRunDialog is called.
Properties
pageSetup
data PrintOperationPageSetupPropertyInfo Source #
Instances
constructPrintOperationPageSetup :: (IsPrintOperation o, IsPageSetup a) => a -> IO (GValueConstruct o) Source #
getPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o) => o -> m PageSetup Source #
printOperationPageSetup :: AttrLabelProxy "pageSetup" Source #
setPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o, IsPageSetup a) => o -> a -> m () Source #
printSettings
data PrintOperationPrintSettingsPropertyInfo Source #
Instances
constructPrintOperationPrintSettings :: (IsPrintOperation o, IsPrintSettings a) => a -> IO (GValueConstruct o) Source #
getPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o) => o -> m PrintSettings Source #
printOperationPrintSettings :: AttrLabelProxy "printSettings" Source #
setPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o, IsPrintSettings a) => o -> a -> m () Source #
webView
data PrintOperationWebViewPropertyInfo Source #
Instances
constructPrintOperationWebView :: (IsPrintOperation o, IsWebView a) => a -> IO (GValueConstruct o) Source #
getPrintOperationWebView :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe WebView) Source #
printOperationWebView :: AttrLabelProxy "webView" Source #
Signals
createCustomWidget
type C_PrintOperationCreateCustomWidgetCallback = Ptr () -> Ptr () -> IO (Ptr PrintCustomWidget) Source #
afterPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId Source #
genClosure_PrintOperationCreateCustomWidget :: PrintOperationCreateCustomWidgetCallback -> IO Closure Source #
mk_PrintOperationCreateCustomWidgetCallback :: C_PrintOperationCreateCustomWidgetCallback -> IO (FunPtr C_PrintOperationCreateCustomWidgetCallback) Source #
noPrintOperationCreateCustomWidgetCallback :: Maybe PrintOperationCreateCustomWidgetCallback Source #
onPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId Source #
wrap_PrintOperationCreateCustomWidgetCallback :: PrintOperationCreateCustomWidgetCallback -> Ptr () -> Ptr () -> IO (Ptr PrintCustomWidget) Source #
failed
type PrintOperationFailedCallback = GError -> IO () Source #
afterPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFailedCallback -> m SignalHandlerId Source #
mk_PrintOperationFailedCallback :: C_PrintOperationFailedCallback -> IO (FunPtr C_PrintOperationFailedCallback) Source #
onPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFailedCallback -> m SignalHandlerId Source #
wrap_PrintOperationFailedCallback :: PrintOperationFailedCallback -> Ptr () -> Ptr GError -> Ptr () -> IO () Source #
finished
type PrintOperationFinishedCallback = IO () Source #
afterPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFinishedCallback -> m SignalHandlerId Source #
mk_PrintOperationFinishedCallback :: C_PrintOperationFinishedCallback -> IO (FunPtr C_PrintOperationFinishedCallback) Source #
onPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFinishedCallback -> m SignalHandlerId Source #
wrap_PrintOperationFinishedCallback :: PrintOperationFinishedCallback -> Ptr () -> Ptr () -> IO () Source #