#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gtk.Objects.PrintOperation
(
PrintOperation(..) ,
IsPrintOperation ,
toPrintOperation ,
noPrintOperation ,
#if ENABLE_OVERLOADING
PrintOperationCancelMethodInfo ,
#endif
printOperationCancel ,
#if ENABLE_OVERLOADING
PrintOperationDrawPageFinishMethodInfo ,
#endif
printOperationDrawPageFinish ,
#if ENABLE_OVERLOADING
PrintOperationGetDefaultPageSetupMethodInfo,
#endif
printOperationGetDefaultPageSetup ,
#if ENABLE_OVERLOADING
PrintOperationGetEmbedPageSetupMethodInfo,
#endif
printOperationGetEmbedPageSetup ,
#if ENABLE_OVERLOADING
PrintOperationGetErrorMethodInfo ,
#endif
printOperationGetError ,
#if ENABLE_OVERLOADING
PrintOperationGetHasSelectionMethodInfo ,
#endif
printOperationGetHasSelection ,
#if ENABLE_OVERLOADING
PrintOperationGetNPagesToPrintMethodInfo,
#endif
printOperationGetNPagesToPrint ,
#if ENABLE_OVERLOADING
PrintOperationGetPrintSettingsMethodInfo,
#endif
printOperationGetPrintSettings ,
#if ENABLE_OVERLOADING
PrintOperationGetStatusMethodInfo ,
#endif
printOperationGetStatus ,
#if ENABLE_OVERLOADING
PrintOperationGetStatusStringMethodInfo ,
#endif
printOperationGetStatusString ,
#if ENABLE_OVERLOADING
PrintOperationGetSupportSelectionMethodInfo,
#endif
printOperationGetSupportSelection ,
#if ENABLE_OVERLOADING
PrintOperationIsFinishedMethodInfo ,
#endif
printOperationIsFinished ,
printOperationNew ,
#if ENABLE_OVERLOADING
PrintOperationRunMethodInfo ,
#endif
printOperationRun ,
#if ENABLE_OVERLOADING
PrintOperationSetAllowAsyncMethodInfo ,
#endif
printOperationSetAllowAsync ,
#if ENABLE_OVERLOADING
PrintOperationSetCurrentPageMethodInfo ,
#endif
printOperationSetCurrentPage ,
#if ENABLE_OVERLOADING
PrintOperationSetCustomTabLabelMethodInfo,
#endif
printOperationSetCustomTabLabel ,
#if ENABLE_OVERLOADING
PrintOperationSetDefaultPageSetupMethodInfo,
#endif
printOperationSetDefaultPageSetup ,
#if ENABLE_OVERLOADING
PrintOperationSetDeferDrawingMethodInfo ,
#endif
printOperationSetDeferDrawing ,
#if ENABLE_OVERLOADING
PrintOperationSetEmbedPageSetupMethodInfo,
#endif
printOperationSetEmbedPageSetup ,
#if ENABLE_OVERLOADING
PrintOperationSetExportFilenameMethodInfo,
#endif
printOperationSetExportFilename ,
#if ENABLE_OVERLOADING
PrintOperationSetHasSelectionMethodInfo ,
#endif
printOperationSetHasSelection ,
#if ENABLE_OVERLOADING
PrintOperationSetJobNameMethodInfo ,
#endif
printOperationSetJobName ,
#if ENABLE_OVERLOADING
PrintOperationSetNPagesMethodInfo ,
#endif
printOperationSetNPages ,
#if ENABLE_OVERLOADING
PrintOperationSetPrintSettingsMethodInfo,
#endif
printOperationSetPrintSettings ,
#if ENABLE_OVERLOADING
PrintOperationSetShowProgressMethodInfo ,
#endif
printOperationSetShowProgress ,
#if ENABLE_OVERLOADING
PrintOperationSetSupportSelectionMethodInfo,
#endif
printOperationSetSupportSelection ,
#if ENABLE_OVERLOADING
PrintOperationSetTrackPrintStatusMethodInfo,
#endif
printOperationSetTrackPrintStatus ,
#if ENABLE_OVERLOADING
PrintOperationSetUnitMethodInfo ,
#endif
printOperationSetUnit ,
#if ENABLE_OVERLOADING
PrintOperationSetUseFullPageMethodInfo ,
#endif
printOperationSetUseFullPage ,
#if ENABLE_OVERLOADING
PrintOperationAllowAsyncPropertyInfo ,
#endif
constructPrintOperationAllowAsync ,
getPrintOperationAllowAsync ,
#if ENABLE_OVERLOADING
printOperationAllowAsync ,
#endif
setPrintOperationAllowAsync ,
#if ENABLE_OVERLOADING
PrintOperationCurrentPagePropertyInfo ,
#endif
constructPrintOperationCurrentPage ,
getPrintOperationCurrentPage ,
#if ENABLE_OVERLOADING
printOperationCurrentPage ,
#endif
setPrintOperationCurrentPage ,
#if ENABLE_OVERLOADING
PrintOperationCustomTabLabelPropertyInfo,
#endif
clearPrintOperationCustomTabLabel ,
constructPrintOperationCustomTabLabel ,
getPrintOperationCustomTabLabel ,
#if ENABLE_OVERLOADING
printOperationCustomTabLabel ,
#endif
setPrintOperationCustomTabLabel ,
#if ENABLE_OVERLOADING
PrintOperationDefaultPageSetupPropertyInfo,
#endif
clearPrintOperationDefaultPageSetup ,
constructPrintOperationDefaultPageSetup ,
getPrintOperationDefaultPageSetup ,
#if ENABLE_OVERLOADING
printOperationDefaultPageSetup ,
#endif
setPrintOperationDefaultPageSetup ,
#if ENABLE_OVERLOADING
PrintOperationEmbedPageSetupPropertyInfo,
#endif
constructPrintOperationEmbedPageSetup ,
getPrintOperationEmbedPageSetup ,
#if ENABLE_OVERLOADING
printOperationEmbedPageSetup ,
#endif
setPrintOperationEmbedPageSetup ,
#if ENABLE_OVERLOADING
PrintOperationExportFilenamePropertyInfo,
#endif
clearPrintOperationExportFilename ,
constructPrintOperationExportFilename ,
getPrintOperationExportFilename ,
#if ENABLE_OVERLOADING
printOperationExportFilename ,
#endif
setPrintOperationExportFilename ,
#if ENABLE_OVERLOADING
PrintOperationHasSelectionPropertyInfo ,
#endif
constructPrintOperationHasSelection ,
getPrintOperationHasSelection ,
#if ENABLE_OVERLOADING
printOperationHasSelection ,
#endif
setPrintOperationHasSelection ,
#if ENABLE_OVERLOADING
PrintOperationJobNamePropertyInfo ,
#endif
constructPrintOperationJobName ,
getPrintOperationJobName ,
#if ENABLE_OVERLOADING
printOperationJobName ,
#endif
setPrintOperationJobName ,
#if ENABLE_OVERLOADING
PrintOperationNPagesPropertyInfo ,
#endif
constructPrintOperationNPages ,
getPrintOperationNPages ,
#if ENABLE_OVERLOADING
printOperationNPages ,
#endif
setPrintOperationNPages ,
#if ENABLE_OVERLOADING
PrintOperationNPagesToPrintPropertyInfo ,
#endif
getPrintOperationNPagesToPrint ,
#if ENABLE_OVERLOADING
printOperationNPagesToPrint ,
#endif
#if ENABLE_OVERLOADING
PrintOperationPrintSettingsPropertyInfo ,
#endif
clearPrintOperationPrintSettings ,
constructPrintOperationPrintSettings ,
getPrintOperationPrintSettings ,
#if ENABLE_OVERLOADING
printOperationPrintSettings ,
#endif
setPrintOperationPrintSettings ,
#if ENABLE_OVERLOADING
PrintOperationShowProgressPropertyInfo ,
#endif
constructPrintOperationShowProgress ,
getPrintOperationShowProgress ,
#if ENABLE_OVERLOADING
printOperationShowProgress ,
#endif
setPrintOperationShowProgress ,
#if ENABLE_OVERLOADING
PrintOperationStatusPropertyInfo ,
#endif
getPrintOperationStatus ,
#if ENABLE_OVERLOADING
printOperationStatus ,
#endif
#if ENABLE_OVERLOADING
PrintOperationStatusStringPropertyInfo ,
#endif
getPrintOperationStatusString ,
#if ENABLE_OVERLOADING
printOperationStatusString ,
#endif
#if ENABLE_OVERLOADING
PrintOperationSupportSelectionPropertyInfo,
#endif
constructPrintOperationSupportSelection ,
getPrintOperationSupportSelection ,
#if ENABLE_OVERLOADING
printOperationSupportSelection ,
#endif
setPrintOperationSupportSelection ,
#if ENABLE_OVERLOADING
PrintOperationTrackPrintStatusPropertyInfo,
#endif
constructPrintOperationTrackPrintStatus ,
getPrintOperationTrackPrintStatus ,
#if ENABLE_OVERLOADING
printOperationTrackPrintStatus ,
#endif
setPrintOperationTrackPrintStatus ,
#if ENABLE_OVERLOADING
PrintOperationUnitPropertyInfo ,
#endif
constructPrintOperationUnit ,
getPrintOperationUnit ,
#if ENABLE_OVERLOADING
printOperationUnit ,
#endif
setPrintOperationUnit ,
#if ENABLE_OVERLOADING
PrintOperationUseFullPagePropertyInfo ,
#endif
constructPrintOperationUseFullPage ,
getPrintOperationUseFullPage ,
#if ENABLE_OVERLOADING
printOperationUseFullPage ,
#endif
setPrintOperationUseFullPage ,
C_PrintOperationBeginPrintCallback ,
PrintOperationBeginPrintCallback ,
#if ENABLE_OVERLOADING
PrintOperationBeginPrintSignalInfo ,
#endif
afterPrintOperationBeginPrint ,
genClosure_PrintOperationBeginPrint ,
mk_PrintOperationBeginPrintCallback ,
noPrintOperationBeginPrintCallback ,
onPrintOperationBeginPrint ,
wrap_PrintOperationBeginPrintCallback ,
C_PrintOperationCreateCustomWidgetCallback,
PrintOperationCreateCustomWidgetCallback,
#if ENABLE_OVERLOADING
PrintOperationCreateCustomWidgetSignalInfo,
#endif
afterPrintOperationCreateCustomWidget ,
genClosure_PrintOperationCreateCustomWidget,
mk_PrintOperationCreateCustomWidgetCallback,
noPrintOperationCreateCustomWidgetCallback,
onPrintOperationCreateCustomWidget ,
wrap_PrintOperationCreateCustomWidgetCallback,
C_PrintOperationCustomWidgetApplyCallback,
PrintOperationCustomWidgetApplyCallback ,
#if ENABLE_OVERLOADING
PrintOperationCustomWidgetApplySignalInfo,
#endif
afterPrintOperationCustomWidgetApply ,
genClosure_PrintOperationCustomWidgetApply,
mk_PrintOperationCustomWidgetApplyCallback,
noPrintOperationCustomWidgetApplyCallback,
onPrintOperationCustomWidgetApply ,
wrap_PrintOperationCustomWidgetApplyCallback,
C_PrintOperationDoneCallback ,
PrintOperationDoneCallback ,
#if ENABLE_OVERLOADING
PrintOperationDoneSignalInfo ,
#endif
afterPrintOperationDone ,
genClosure_PrintOperationDone ,
mk_PrintOperationDoneCallback ,
noPrintOperationDoneCallback ,
onPrintOperationDone ,
wrap_PrintOperationDoneCallback ,
C_PrintOperationDrawPageCallback ,
PrintOperationDrawPageCallback ,
#if ENABLE_OVERLOADING
PrintOperationDrawPageSignalInfo ,
#endif
afterPrintOperationDrawPage ,
genClosure_PrintOperationDrawPage ,
mk_PrintOperationDrawPageCallback ,
noPrintOperationDrawPageCallback ,
onPrintOperationDrawPage ,
wrap_PrintOperationDrawPageCallback ,
C_PrintOperationEndPrintCallback ,
PrintOperationEndPrintCallback ,
#if ENABLE_OVERLOADING
PrintOperationEndPrintSignalInfo ,
#endif
afterPrintOperationEndPrint ,
genClosure_PrintOperationEndPrint ,
mk_PrintOperationEndPrintCallback ,
noPrintOperationEndPrintCallback ,
onPrintOperationEndPrint ,
wrap_PrintOperationEndPrintCallback ,
C_PrintOperationPaginateCallback ,
PrintOperationPaginateCallback ,
#if ENABLE_OVERLOADING
PrintOperationPaginateSignalInfo ,
#endif
afterPrintOperationPaginate ,
genClosure_PrintOperationPaginate ,
mk_PrintOperationPaginateCallback ,
noPrintOperationPaginateCallback ,
onPrintOperationPaginate ,
wrap_PrintOperationPaginateCallback ,
C_PrintOperationPreviewCallback ,
PrintOperationPreviewCallback ,
#if ENABLE_OVERLOADING
PrintOperationPreviewSignalInfo ,
#endif
afterPrintOperationPreview ,
genClosure_PrintOperationPreview ,
mk_PrintOperationPreviewCallback ,
noPrintOperationPreviewCallback ,
onPrintOperationPreview ,
wrap_PrintOperationPreviewCallback ,
C_PrintOperationRequestPageSetupCallback,
PrintOperationRequestPageSetupCallback ,
#if ENABLE_OVERLOADING
PrintOperationRequestPageSetupSignalInfo,
#endif
afterPrintOperationRequestPageSetup ,
genClosure_PrintOperationRequestPageSetup,
mk_PrintOperationRequestPageSetupCallback,
noPrintOperationRequestPageSetupCallback,
onPrintOperationRequestPageSetup ,
wrap_PrintOperationRequestPageSetupCallback,
C_PrintOperationStatusChangedCallback ,
PrintOperationStatusChangedCallback ,
#if ENABLE_OVERLOADING
PrintOperationStatusChangedSignalInfo ,
#endif
afterPrintOperationStatusChanged ,
genClosure_PrintOperationStatusChanged ,
mk_PrintOperationStatusChangedCallback ,
noPrintOperationStatusChangedCallback ,
onPrintOperationStatusChanged ,
wrap_PrintOperationStatusChangedCallback,
C_PrintOperationUpdateCustomWidgetCallback,
PrintOperationUpdateCustomWidgetCallback,
#if ENABLE_OVERLOADING
PrintOperationUpdateCustomWidgetSignalInfo,
#endif
afterPrintOperationUpdateCustomWidget ,
genClosure_PrintOperationUpdateCustomWidget,
mk_PrintOperationUpdateCustomWidgetCallback,
noPrintOperationUpdateCustomWidgetCallback,
onPrintOperationUpdateCustomWidget ,
wrap_PrintOperationUpdateCustomWidgetCallback,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.PrintOperationPreview as Gtk.PrintOperationPreview
import {-# SOURCE #-} qualified GI.Gtk.Objects.PageSetup as Gtk.PageSetup
import {-# SOURCE #-} qualified GI.Gtk.Objects.PrintContext as Gtk.PrintContext
import {-# SOURCE #-} qualified GI.Gtk.Objects.PrintSettings as Gtk.PrintSettings
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
import {-# SOURCE #-} qualified GI.Gtk.Objects.Window as Gtk.Window
newtype PrintOperation = PrintOperation (ManagedPtr PrintOperation)
foreign import ccall "gtk_print_operation_get_type"
c_gtk_print_operation_get_type :: IO GType
instance GObject PrintOperation where
gobjectType = c_gtk_print_operation_get_type
class (GObject o, O.IsDescendantOf PrintOperation o) => IsPrintOperation o
instance (GObject o, O.IsDescendantOf PrintOperation o) => IsPrintOperation o
instance O.HasParentTypes PrintOperation
type instance O.ParentTypes PrintOperation = '[GObject.Object.Object, Gtk.PrintOperationPreview.PrintOperationPreview]
toPrintOperation :: (MonadIO m, IsPrintOperation o) => o -> m PrintOperation
toPrintOperation = liftIO . unsafeCastTo PrintOperation
noPrintOperation :: Maybe PrintOperation
noPrintOperation = Nothing
#if ENABLE_OVERLOADING
type family ResolvePrintOperationMethod (t :: Symbol) (o :: *) :: * where
ResolvePrintOperationMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolvePrintOperationMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolvePrintOperationMethod "cancel" o = PrintOperationCancelMethodInfo
ResolvePrintOperationMethod "drawPageFinish" o = PrintOperationDrawPageFinishMethodInfo
ResolvePrintOperationMethod "endPreview" o = Gtk.PrintOperationPreview.PrintOperationPreviewEndPreviewMethodInfo
ResolvePrintOperationMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolvePrintOperationMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolvePrintOperationMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolvePrintOperationMethod "isFinished" o = PrintOperationIsFinishedMethodInfo
ResolvePrintOperationMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolvePrintOperationMethod "isSelected" o = Gtk.PrintOperationPreview.PrintOperationPreviewIsSelectedMethodInfo
ResolvePrintOperationMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolvePrintOperationMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolvePrintOperationMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolvePrintOperationMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolvePrintOperationMethod "renderPage" o = Gtk.PrintOperationPreview.PrintOperationPreviewRenderPageMethodInfo
ResolvePrintOperationMethod "run" o = PrintOperationRunMethodInfo
ResolvePrintOperationMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolvePrintOperationMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolvePrintOperationMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolvePrintOperationMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolvePrintOperationMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolvePrintOperationMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolvePrintOperationMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolvePrintOperationMethod "getDefaultPageSetup" o = PrintOperationGetDefaultPageSetupMethodInfo
ResolvePrintOperationMethod "getEmbedPageSetup" o = PrintOperationGetEmbedPageSetupMethodInfo
ResolvePrintOperationMethod "getError" o = PrintOperationGetErrorMethodInfo
ResolvePrintOperationMethod "getHasSelection" o = PrintOperationGetHasSelectionMethodInfo
ResolvePrintOperationMethod "getNPagesToPrint" o = PrintOperationGetNPagesToPrintMethodInfo
ResolvePrintOperationMethod "getPrintSettings" o = PrintOperationGetPrintSettingsMethodInfo
ResolvePrintOperationMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolvePrintOperationMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolvePrintOperationMethod "getStatus" o = PrintOperationGetStatusMethodInfo
ResolvePrintOperationMethod "getStatusString" o = PrintOperationGetStatusStringMethodInfo
ResolvePrintOperationMethod "getSupportSelection" o = PrintOperationGetSupportSelectionMethodInfo
ResolvePrintOperationMethod "setAllowAsync" o = PrintOperationSetAllowAsyncMethodInfo
ResolvePrintOperationMethod "setCurrentPage" o = PrintOperationSetCurrentPageMethodInfo
ResolvePrintOperationMethod "setCustomTabLabel" o = PrintOperationSetCustomTabLabelMethodInfo
ResolvePrintOperationMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolvePrintOperationMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolvePrintOperationMethod "setDefaultPageSetup" o = PrintOperationSetDefaultPageSetupMethodInfo
ResolvePrintOperationMethod "setDeferDrawing" o = PrintOperationSetDeferDrawingMethodInfo
ResolvePrintOperationMethod "setEmbedPageSetup" o = PrintOperationSetEmbedPageSetupMethodInfo
ResolvePrintOperationMethod "setExportFilename" o = PrintOperationSetExportFilenameMethodInfo
ResolvePrintOperationMethod "setHasSelection" o = PrintOperationSetHasSelectionMethodInfo
ResolvePrintOperationMethod "setJobName" o = PrintOperationSetJobNameMethodInfo
ResolvePrintOperationMethod "setNPages" o = PrintOperationSetNPagesMethodInfo
ResolvePrintOperationMethod "setPrintSettings" o = PrintOperationSetPrintSettingsMethodInfo
ResolvePrintOperationMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolvePrintOperationMethod "setShowProgress" o = PrintOperationSetShowProgressMethodInfo
ResolvePrintOperationMethod "setSupportSelection" o = PrintOperationSetSupportSelectionMethodInfo
ResolvePrintOperationMethod "setTrackPrintStatus" o = PrintOperationSetTrackPrintStatusMethodInfo
ResolvePrintOperationMethod "setUnit" o = PrintOperationSetUnitMethodInfo
ResolvePrintOperationMethod "setUseFullPage" o = PrintOperationSetUseFullPageMethodInfo
ResolvePrintOperationMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolvePrintOperationMethod t PrintOperation, O.MethodInfo info PrintOperation p) => OL.IsLabel t (PrintOperation -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
type PrintOperationBeginPrintCallback =
Gtk.PrintContext.PrintContext
-> IO ()
noPrintOperationBeginPrintCallback :: Maybe PrintOperationBeginPrintCallback
noPrintOperationBeginPrintCallback = Nothing
type C_PrintOperationBeginPrintCallback =
Ptr () ->
Ptr Gtk.PrintContext.PrintContext ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PrintOperationBeginPrintCallback :: C_PrintOperationBeginPrintCallback -> IO (FunPtr C_PrintOperationBeginPrintCallback)
genClosure_PrintOperationBeginPrint :: MonadIO m => PrintOperationBeginPrintCallback -> m (GClosure C_PrintOperationBeginPrintCallback)
genClosure_PrintOperationBeginPrint cb = liftIO $ do
let cb' = wrap_PrintOperationBeginPrintCallback cb
mk_PrintOperationBeginPrintCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationBeginPrintCallback ::
PrintOperationBeginPrintCallback ->
C_PrintOperationBeginPrintCallback
wrap_PrintOperationBeginPrintCallback _cb _ context _ = do
context' <- (newObject Gtk.PrintContext.PrintContext) context
_cb context'
onPrintOperationBeginPrint :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationBeginPrintCallback -> m SignalHandlerId
onPrintOperationBeginPrint obj cb = liftIO $ do
let cb' = wrap_PrintOperationBeginPrintCallback cb
cb'' <- mk_PrintOperationBeginPrintCallback cb'
connectSignalFunPtr obj "begin-print" cb'' SignalConnectBefore
afterPrintOperationBeginPrint :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationBeginPrintCallback -> m SignalHandlerId
afterPrintOperationBeginPrint obj cb = liftIO $ do
let cb' = wrap_PrintOperationBeginPrintCallback cb
cb'' <- mk_PrintOperationBeginPrintCallback cb'
connectSignalFunPtr obj "begin-print" cb'' SignalConnectAfter
type PrintOperationCreateCustomWidgetCallback =
IO GObject.Object.Object
noPrintOperationCreateCustomWidgetCallback :: Maybe PrintOperationCreateCustomWidgetCallback
noPrintOperationCreateCustomWidgetCallback = Nothing
type C_PrintOperationCreateCustomWidgetCallback =
Ptr () ->
Ptr () ->
IO (Ptr GObject.Object.Object)
foreign import ccall "wrapper"
mk_PrintOperationCreateCustomWidgetCallback :: C_PrintOperationCreateCustomWidgetCallback -> IO (FunPtr C_PrintOperationCreateCustomWidgetCallback)
genClosure_PrintOperationCreateCustomWidget :: MonadIO m => PrintOperationCreateCustomWidgetCallback -> m (GClosure C_PrintOperationCreateCustomWidgetCallback)
genClosure_PrintOperationCreateCustomWidget cb = liftIO $ do
let cb' = wrap_PrintOperationCreateCustomWidgetCallback cb
mk_PrintOperationCreateCustomWidgetCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationCreateCustomWidgetCallback ::
PrintOperationCreateCustomWidgetCallback ->
C_PrintOperationCreateCustomWidgetCallback
wrap_PrintOperationCreateCustomWidgetCallback _cb _ _ = do
result <- _cb
result' <- B.ManagedPtr.disownObject result
return result'
onPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId
onPrintOperationCreateCustomWidget obj cb = liftIO $ do
let cb' = wrap_PrintOperationCreateCustomWidgetCallback cb
cb'' <- mk_PrintOperationCreateCustomWidgetCallback cb'
connectSignalFunPtr obj "create-custom-widget" cb'' SignalConnectBefore
afterPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId
afterPrintOperationCreateCustomWidget obj cb = liftIO $ do
let cb' = wrap_PrintOperationCreateCustomWidgetCallback cb
cb'' <- mk_PrintOperationCreateCustomWidgetCallback cb'
connectSignalFunPtr obj "create-custom-widget" cb'' SignalConnectAfter
type PrintOperationCustomWidgetApplyCallback =
Gtk.Widget.Widget
-> IO ()
noPrintOperationCustomWidgetApplyCallback :: Maybe PrintOperationCustomWidgetApplyCallback
noPrintOperationCustomWidgetApplyCallback = Nothing
type C_PrintOperationCustomWidgetApplyCallback =
Ptr () ->
Ptr Gtk.Widget.Widget ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PrintOperationCustomWidgetApplyCallback :: C_PrintOperationCustomWidgetApplyCallback -> IO (FunPtr C_PrintOperationCustomWidgetApplyCallback)
genClosure_PrintOperationCustomWidgetApply :: MonadIO m => PrintOperationCustomWidgetApplyCallback -> m (GClosure C_PrintOperationCustomWidgetApplyCallback)
genClosure_PrintOperationCustomWidgetApply cb = liftIO $ do
let cb' = wrap_PrintOperationCustomWidgetApplyCallback cb
mk_PrintOperationCustomWidgetApplyCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationCustomWidgetApplyCallback ::
PrintOperationCustomWidgetApplyCallback ->
C_PrintOperationCustomWidgetApplyCallback
wrap_PrintOperationCustomWidgetApplyCallback _cb _ widget _ = do
widget' <- (newObject Gtk.Widget.Widget) widget
_cb widget'
onPrintOperationCustomWidgetApply :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCustomWidgetApplyCallback -> m SignalHandlerId
onPrintOperationCustomWidgetApply obj cb = liftIO $ do
let cb' = wrap_PrintOperationCustomWidgetApplyCallback cb
cb'' <- mk_PrintOperationCustomWidgetApplyCallback cb'
connectSignalFunPtr obj "custom-widget-apply" cb'' SignalConnectBefore
afterPrintOperationCustomWidgetApply :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCustomWidgetApplyCallback -> m SignalHandlerId
afterPrintOperationCustomWidgetApply obj cb = liftIO $ do
let cb' = wrap_PrintOperationCustomWidgetApplyCallback cb
cb'' <- mk_PrintOperationCustomWidgetApplyCallback cb'
connectSignalFunPtr obj "custom-widget-apply" cb'' SignalConnectAfter
type PrintOperationDoneCallback =
Gtk.Enums.PrintOperationResult
-> IO ()
noPrintOperationDoneCallback :: Maybe PrintOperationDoneCallback
noPrintOperationDoneCallback = Nothing
type C_PrintOperationDoneCallback =
Ptr () ->
CUInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PrintOperationDoneCallback :: C_PrintOperationDoneCallback -> IO (FunPtr C_PrintOperationDoneCallback)
genClosure_PrintOperationDone :: MonadIO m => PrintOperationDoneCallback -> m (GClosure C_PrintOperationDoneCallback)
genClosure_PrintOperationDone cb = liftIO $ do
let cb' = wrap_PrintOperationDoneCallback cb
mk_PrintOperationDoneCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationDoneCallback ::
PrintOperationDoneCallback ->
C_PrintOperationDoneCallback
wrap_PrintOperationDoneCallback _cb _ result_ _ = do
let result_' = (toEnum . fromIntegral) result_
_cb result_'
onPrintOperationDone :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationDoneCallback -> m SignalHandlerId
onPrintOperationDone obj cb = liftIO $ do
let cb' = wrap_PrintOperationDoneCallback cb
cb'' <- mk_PrintOperationDoneCallback cb'
connectSignalFunPtr obj "done" cb'' SignalConnectBefore
afterPrintOperationDone :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationDoneCallback -> m SignalHandlerId
afterPrintOperationDone obj cb = liftIO $ do
let cb' = wrap_PrintOperationDoneCallback cb
cb'' <- mk_PrintOperationDoneCallback cb'
connectSignalFunPtr obj "done" cb'' SignalConnectAfter
type PrintOperationDrawPageCallback =
Gtk.PrintContext.PrintContext
-> Int32
-> IO ()
noPrintOperationDrawPageCallback :: Maybe PrintOperationDrawPageCallback
noPrintOperationDrawPageCallback = Nothing
type C_PrintOperationDrawPageCallback =
Ptr () ->
Ptr Gtk.PrintContext.PrintContext ->
Int32 ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PrintOperationDrawPageCallback :: C_PrintOperationDrawPageCallback -> IO (FunPtr C_PrintOperationDrawPageCallback)
genClosure_PrintOperationDrawPage :: MonadIO m => PrintOperationDrawPageCallback -> m (GClosure C_PrintOperationDrawPageCallback)
genClosure_PrintOperationDrawPage cb = liftIO $ do
let cb' = wrap_PrintOperationDrawPageCallback cb
mk_PrintOperationDrawPageCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationDrawPageCallback ::
PrintOperationDrawPageCallback ->
C_PrintOperationDrawPageCallback
wrap_PrintOperationDrawPageCallback _cb _ context pageNr _ = do
context' <- (newObject Gtk.PrintContext.PrintContext) context
_cb context' pageNr
onPrintOperationDrawPage :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationDrawPageCallback -> m SignalHandlerId
onPrintOperationDrawPage obj cb = liftIO $ do
let cb' = wrap_PrintOperationDrawPageCallback cb
cb'' <- mk_PrintOperationDrawPageCallback cb'
connectSignalFunPtr obj "draw-page" cb'' SignalConnectBefore
afterPrintOperationDrawPage :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationDrawPageCallback -> m SignalHandlerId
afterPrintOperationDrawPage obj cb = liftIO $ do
let cb' = wrap_PrintOperationDrawPageCallback cb
cb'' <- mk_PrintOperationDrawPageCallback cb'
connectSignalFunPtr obj "draw-page" cb'' SignalConnectAfter
type PrintOperationEndPrintCallback =
Gtk.PrintContext.PrintContext
-> IO ()
noPrintOperationEndPrintCallback :: Maybe PrintOperationEndPrintCallback
noPrintOperationEndPrintCallback = Nothing
type C_PrintOperationEndPrintCallback =
Ptr () ->
Ptr Gtk.PrintContext.PrintContext ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PrintOperationEndPrintCallback :: C_PrintOperationEndPrintCallback -> IO (FunPtr C_PrintOperationEndPrintCallback)
genClosure_PrintOperationEndPrint :: MonadIO m => PrintOperationEndPrintCallback -> m (GClosure C_PrintOperationEndPrintCallback)
genClosure_PrintOperationEndPrint cb = liftIO $ do
let cb' = wrap_PrintOperationEndPrintCallback cb
mk_PrintOperationEndPrintCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationEndPrintCallback ::
PrintOperationEndPrintCallback ->
C_PrintOperationEndPrintCallback
wrap_PrintOperationEndPrintCallback _cb _ context _ = do
context' <- (newObject Gtk.PrintContext.PrintContext) context
_cb context'
onPrintOperationEndPrint :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationEndPrintCallback -> m SignalHandlerId
onPrintOperationEndPrint obj cb = liftIO $ do
let cb' = wrap_PrintOperationEndPrintCallback cb
cb'' <- mk_PrintOperationEndPrintCallback cb'
connectSignalFunPtr obj "end-print" cb'' SignalConnectBefore
afterPrintOperationEndPrint :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationEndPrintCallback -> m SignalHandlerId
afterPrintOperationEndPrint obj cb = liftIO $ do
let cb' = wrap_PrintOperationEndPrintCallback cb
cb'' <- mk_PrintOperationEndPrintCallback cb'
connectSignalFunPtr obj "end-print" cb'' SignalConnectAfter
type PrintOperationPaginateCallback =
Gtk.PrintContext.PrintContext
-> IO Bool
noPrintOperationPaginateCallback :: Maybe PrintOperationPaginateCallback
noPrintOperationPaginateCallback = Nothing
type C_PrintOperationPaginateCallback =
Ptr () ->
Ptr Gtk.PrintContext.PrintContext ->
Ptr () ->
IO CInt
foreign import ccall "wrapper"
mk_PrintOperationPaginateCallback :: C_PrintOperationPaginateCallback -> IO (FunPtr C_PrintOperationPaginateCallback)
genClosure_PrintOperationPaginate :: MonadIO m => PrintOperationPaginateCallback -> m (GClosure C_PrintOperationPaginateCallback)
genClosure_PrintOperationPaginate cb = liftIO $ do
let cb' = wrap_PrintOperationPaginateCallback cb
mk_PrintOperationPaginateCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationPaginateCallback ::
PrintOperationPaginateCallback ->
C_PrintOperationPaginateCallback
wrap_PrintOperationPaginateCallback _cb _ context _ = do
context' <- (newObject Gtk.PrintContext.PrintContext) context
result <- _cb context'
let result' = (fromIntegral . fromEnum) result
return result'
onPrintOperationPaginate :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationPaginateCallback -> m SignalHandlerId
onPrintOperationPaginate obj cb = liftIO $ do
let cb' = wrap_PrintOperationPaginateCallback cb
cb'' <- mk_PrintOperationPaginateCallback cb'
connectSignalFunPtr obj "paginate" cb'' SignalConnectBefore
afterPrintOperationPaginate :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationPaginateCallback -> m SignalHandlerId
afterPrintOperationPaginate obj cb = liftIO $ do
let cb' = wrap_PrintOperationPaginateCallback cb
cb'' <- mk_PrintOperationPaginateCallback cb'
connectSignalFunPtr obj "paginate" cb'' SignalConnectAfter
type PrintOperationPreviewCallback =
Gtk.PrintOperationPreview.PrintOperationPreview
-> Gtk.PrintContext.PrintContext
-> Maybe Gtk.Window.Window
-> IO Bool
noPrintOperationPreviewCallback :: Maybe PrintOperationPreviewCallback
noPrintOperationPreviewCallback = Nothing
type C_PrintOperationPreviewCallback =
Ptr () ->
Ptr Gtk.PrintOperationPreview.PrintOperationPreview ->
Ptr Gtk.PrintContext.PrintContext ->
Ptr Gtk.Window.Window ->
Ptr () ->
IO CInt
foreign import ccall "wrapper"
mk_PrintOperationPreviewCallback :: C_PrintOperationPreviewCallback -> IO (FunPtr C_PrintOperationPreviewCallback)
genClosure_PrintOperationPreview :: MonadIO m => PrintOperationPreviewCallback -> m (GClosure C_PrintOperationPreviewCallback)
genClosure_PrintOperationPreview cb = liftIO $ do
let cb' = wrap_PrintOperationPreviewCallback cb
mk_PrintOperationPreviewCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationPreviewCallback ::
PrintOperationPreviewCallback ->
C_PrintOperationPreviewCallback
wrap_PrintOperationPreviewCallback _cb _ preview context parent _ = do
preview' <- (newObject Gtk.PrintOperationPreview.PrintOperationPreview) preview
context' <- (newObject Gtk.PrintContext.PrintContext) context
maybeParent <-
if parent == nullPtr
then return Nothing
else do
parent' <- (newObject Gtk.Window.Window) parent
return $ Just parent'
result <- _cb preview' context' maybeParent
let result' = (fromIntegral . fromEnum) result
return result'
onPrintOperationPreview :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationPreviewCallback -> m SignalHandlerId
onPrintOperationPreview obj cb = liftIO $ do
let cb' = wrap_PrintOperationPreviewCallback cb
cb'' <- mk_PrintOperationPreviewCallback cb'
connectSignalFunPtr obj "preview" cb'' SignalConnectBefore
afterPrintOperationPreview :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationPreviewCallback -> m SignalHandlerId
afterPrintOperationPreview obj cb = liftIO $ do
let cb' = wrap_PrintOperationPreviewCallback cb
cb'' <- mk_PrintOperationPreviewCallback cb'
connectSignalFunPtr obj "preview" cb'' SignalConnectAfter
type PrintOperationRequestPageSetupCallback =
Gtk.PrintContext.PrintContext
-> Int32
-> Gtk.PageSetup.PageSetup
-> IO ()
noPrintOperationRequestPageSetupCallback :: Maybe PrintOperationRequestPageSetupCallback
noPrintOperationRequestPageSetupCallback = Nothing
type C_PrintOperationRequestPageSetupCallback =
Ptr () ->
Ptr Gtk.PrintContext.PrintContext ->
Int32 ->
Ptr Gtk.PageSetup.PageSetup ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PrintOperationRequestPageSetupCallback :: C_PrintOperationRequestPageSetupCallback -> IO (FunPtr C_PrintOperationRequestPageSetupCallback)
genClosure_PrintOperationRequestPageSetup :: MonadIO m => PrintOperationRequestPageSetupCallback -> m (GClosure C_PrintOperationRequestPageSetupCallback)
genClosure_PrintOperationRequestPageSetup cb = liftIO $ do
let cb' = wrap_PrintOperationRequestPageSetupCallback cb
mk_PrintOperationRequestPageSetupCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationRequestPageSetupCallback ::
PrintOperationRequestPageSetupCallback ->
C_PrintOperationRequestPageSetupCallback
wrap_PrintOperationRequestPageSetupCallback _cb _ context pageNr setup _ = do
context' <- (newObject Gtk.PrintContext.PrintContext) context
setup' <- (newObject Gtk.PageSetup.PageSetup) setup
_cb context' pageNr setup'
onPrintOperationRequestPageSetup :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationRequestPageSetupCallback -> m SignalHandlerId
onPrintOperationRequestPageSetup obj cb = liftIO $ do
let cb' = wrap_PrintOperationRequestPageSetupCallback cb
cb'' <- mk_PrintOperationRequestPageSetupCallback cb'
connectSignalFunPtr obj "request-page-setup" cb'' SignalConnectBefore
afterPrintOperationRequestPageSetup :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationRequestPageSetupCallback -> m SignalHandlerId
afterPrintOperationRequestPageSetup obj cb = liftIO $ do
let cb' = wrap_PrintOperationRequestPageSetupCallback cb
cb'' <- mk_PrintOperationRequestPageSetupCallback cb'
connectSignalFunPtr obj "request-page-setup" cb'' SignalConnectAfter
type PrintOperationStatusChangedCallback =
IO ()
noPrintOperationStatusChangedCallback :: Maybe PrintOperationStatusChangedCallback
noPrintOperationStatusChangedCallback = Nothing
type C_PrintOperationStatusChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PrintOperationStatusChangedCallback :: C_PrintOperationStatusChangedCallback -> IO (FunPtr C_PrintOperationStatusChangedCallback)
genClosure_PrintOperationStatusChanged :: MonadIO m => PrintOperationStatusChangedCallback -> m (GClosure C_PrintOperationStatusChangedCallback)
genClosure_PrintOperationStatusChanged cb = liftIO $ do
let cb' = wrap_PrintOperationStatusChangedCallback cb
mk_PrintOperationStatusChangedCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationStatusChangedCallback ::
PrintOperationStatusChangedCallback ->
C_PrintOperationStatusChangedCallback
wrap_PrintOperationStatusChangedCallback _cb _ _ = do
_cb
onPrintOperationStatusChanged :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationStatusChangedCallback -> m SignalHandlerId
onPrintOperationStatusChanged obj cb = liftIO $ do
let cb' = wrap_PrintOperationStatusChangedCallback cb
cb'' <- mk_PrintOperationStatusChangedCallback cb'
connectSignalFunPtr obj "status-changed" cb'' SignalConnectBefore
afterPrintOperationStatusChanged :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationStatusChangedCallback -> m SignalHandlerId
afterPrintOperationStatusChanged obj cb = liftIO $ do
let cb' = wrap_PrintOperationStatusChangedCallback cb
cb'' <- mk_PrintOperationStatusChangedCallback cb'
connectSignalFunPtr obj "status-changed" cb'' SignalConnectAfter
type PrintOperationUpdateCustomWidgetCallback =
Gtk.Widget.Widget
-> Gtk.PageSetup.PageSetup
-> Gtk.PrintSettings.PrintSettings
-> IO ()
noPrintOperationUpdateCustomWidgetCallback :: Maybe PrintOperationUpdateCustomWidgetCallback
noPrintOperationUpdateCustomWidgetCallback = Nothing
type C_PrintOperationUpdateCustomWidgetCallback =
Ptr () ->
Ptr Gtk.Widget.Widget ->
Ptr Gtk.PageSetup.PageSetup ->
Ptr Gtk.PrintSettings.PrintSettings ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PrintOperationUpdateCustomWidgetCallback :: C_PrintOperationUpdateCustomWidgetCallback -> IO (FunPtr C_PrintOperationUpdateCustomWidgetCallback)
genClosure_PrintOperationUpdateCustomWidget :: MonadIO m => PrintOperationUpdateCustomWidgetCallback -> m (GClosure C_PrintOperationUpdateCustomWidgetCallback)
genClosure_PrintOperationUpdateCustomWidget cb = liftIO $ do
let cb' = wrap_PrintOperationUpdateCustomWidgetCallback cb
mk_PrintOperationUpdateCustomWidgetCallback cb' >>= B.GClosure.newGClosure
wrap_PrintOperationUpdateCustomWidgetCallback ::
PrintOperationUpdateCustomWidgetCallback ->
C_PrintOperationUpdateCustomWidgetCallback
wrap_PrintOperationUpdateCustomWidgetCallback _cb _ widget setup settings _ = do
widget' <- (newObject Gtk.Widget.Widget) widget
setup' <- (newObject Gtk.PageSetup.PageSetup) setup
settings' <- (newObject Gtk.PrintSettings.PrintSettings) settings
_cb widget' setup' settings'
onPrintOperationUpdateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationUpdateCustomWidgetCallback -> m SignalHandlerId
onPrintOperationUpdateCustomWidget obj cb = liftIO $ do
let cb' = wrap_PrintOperationUpdateCustomWidgetCallback cb
cb'' <- mk_PrintOperationUpdateCustomWidgetCallback cb'
connectSignalFunPtr obj "update-custom-widget" cb'' SignalConnectBefore
afterPrintOperationUpdateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationUpdateCustomWidgetCallback -> m SignalHandlerId
afterPrintOperationUpdateCustomWidget obj cb = liftIO $ do
let cb' = wrap_PrintOperationUpdateCustomWidgetCallback cb
cb'' <- mk_PrintOperationUpdateCustomWidgetCallback cb'
connectSignalFunPtr obj "update-custom-widget" cb'' SignalConnectAfter
getPrintOperationAllowAsync :: (MonadIO m, IsPrintOperation o) => o -> m Bool
getPrintOperationAllowAsync obj = liftIO $ B.Properties.getObjectPropertyBool obj "allow-async"
setPrintOperationAllowAsync :: (MonadIO m, IsPrintOperation o) => o -> Bool -> m ()
setPrintOperationAllowAsync obj val = liftIO $ B.Properties.setObjectPropertyBool obj "allow-async" val
constructPrintOperationAllowAsync :: (IsPrintOperation o) => Bool -> IO (GValueConstruct o)
constructPrintOperationAllowAsync val = B.Properties.constructObjectPropertyBool "allow-async" val
#if ENABLE_OVERLOADING
data PrintOperationAllowAsyncPropertyInfo
instance AttrInfo PrintOperationAllowAsyncPropertyInfo where
type AttrAllowedOps PrintOperationAllowAsyncPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationAllowAsyncPropertyInfo = (~) Bool
type AttrBaseTypeConstraint PrintOperationAllowAsyncPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationAllowAsyncPropertyInfo = Bool
type AttrLabel PrintOperationAllowAsyncPropertyInfo = "allow-async"
type AttrOrigin PrintOperationAllowAsyncPropertyInfo = PrintOperation
attrGet _ = getPrintOperationAllowAsync
attrSet _ = setPrintOperationAllowAsync
attrConstruct _ = constructPrintOperationAllowAsync
attrClear _ = undefined
#endif
getPrintOperationCurrentPage :: (MonadIO m, IsPrintOperation o) => o -> m Int32
getPrintOperationCurrentPage obj = liftIO $ B.Properties.getObjectPropertyInt32 obj "current-page"
setPrintOperationCurrentPage :: (MonadIO m, IsPrintOperation o) => o -> Int32 -> m ()
setPrintOperationCurrentPage obj val = liftIO $ B.Properties.setObjectPropertyInt32 obj "current-page" val
constructPrintOperationCurrentPage :: (IsPrintOperation o) => Int32 -> IO (GValueConstruct o)
constructPrintOperationCurrentPage val = B.Properties.constructObjectPropertyInt32 "current-page" val
#if ENABLE_OVERLOADING
data PrintOperationCurrentPagePropertyInfo
instance AttrInfo PrintOperationCurrentPagePropertyInfo where
type AttrAllowedOps PrintOperationCurrentPagePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationCurrentPagePropertyInfo = (~) Int32
type AttrBaseTypeConstraint PrintOperationCurrentPagePropertyInfo = IsPrintOperation
type AttrGetType PrintOperationCurrentPagePropertyInfo = Int32
type AttrLabel PrintOperationCurrentPagePropertyInfo = "current-page"
type AttrOrigin PrintOperationCurrentPagePropertyInfo = PrintOperation
attrGet _ = getPrintOperationCurrentPage
attrSet _ = setPrintOperationCurrentPage
attrConstruct _ = constructPrintOperationCurrentPage
attrClear _ = undefined
#endif
getPrintOperationCustomTabLabel :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe T.Text)
getPrintOperationCustomTabLabel obj = liftIO $ B.Properties.getObjectPropertyString obj "custom-tab-label"
setPrintOperationCustomTabLabel :: (MonadIO m, IsPrintOperation o) => o -> T.Text -> m ()
setPrintOperationCustomTabLabel obj val = liftIO $ B.Properties.setObjectPropertyString obj "custom-tab-label" (Just val)
constructPrintOperationCustomTabLabel :: (IsPrintOperation o) => T.Text -> IO (GValueConstruct o)
constructPrintOperationCustomTabLabel val = B.Properties.constructObjectPropertyString "custom-tab-label" (Just val)
clearPrintOperationCustomTabLabel :: (MonadIO m, IsPrintOperation o) => o -> m ()
clearPrintOperationCustomTabLabel obj = liftIO $ B.Properties.setObjectPropertyString obj "custom-tab-label" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data PrintOperationCustomTabLabelPropertyInfo
instance AttrInfo PrintOperationCustomTabLabelPropertyInfo where
type AttrAllowedOps PrintOperationCustomTabLabelPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint PrintOperationCustomTabLabelPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint PrintOperationCustomTabLabelPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationCustomTabLabelPropertyInfo = (Maybe T.Text)
type AttrLabel PrintOperationCustomTabLabelPropertyInfo = "custom-tab-label"
type AttrOrigin PrintOperationCustomTabLabelPropertyInfo = PrintOperation
attrGet _ = getPrintOperationCustomTabLabel
attrSet _ = setPrintOperationCustomTabLabel
attrConstruct _ = constructPrintOperationCustomTabLabel
attrClear _ = clearPrintOperationCustomTabLabel
#endif
getPrintOperationDefaultPageSetup :: (MonadIO m, IsPrintOperation o) => o -> m Gtk.PageSetup.PageSetup
getPrintOperationDefaultPageSetup obj = liftIO $ checkUnexpectedNothing "getPrintOperationDefaultPageSetup" $ B.Properties.getObjectPropertyObject obj "default-page-setup" Gtk.PageSetup.PageSetup
setPrintOperationDefaultPageSetup :: (MonadIO m, IsPrintOperation o, Gtk.PageSetup.IsPageSetup a) => o -> a -> m ()
setPrintOperationDefaultPageSetup obj val = liftIO $ B.Properties.setObjectPropertyObject obj "default-page-setup" (Just val)
constructPrintOperationDefaultPageSetup :: (IsPrintOperation o, Gtk.PageSetup.IsPageSetup a) => a -> IO (GValueConstruct o)
constructPrintOperationDefaultPageSetup val = B.Properties.constructObjectPropertyObject "default-page-setup" (Just val)
clearPrintOperationDefaultPageSetup :: (MonadIO m, IsPrintOperation o) => o -> m ()
clearPrintOperationDefaultPageSetup obj = liftIO $ B.Properties.setObjectPropertyObject obj "default-page-setup" (Nothing :: Maybe Gtk.PageSetup.PageSetup)
#if ENABLE_OVERLOADING
data PrintOperationDefaultPageSetupPropertyInfo
instance AttrInfo PrintOperationDefaultPageSetupPropertyInfo where
type AttrAllowedOps PrintOperationDefaultPageSetupPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint PrintOperationDefaultPageSetupPropertyInfo = Gtk.PageSetup.IsPageSetup
type AttrBaseTypeConstraint PrintOperationDefaultPageSetupPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationDefaultPageSetupPropertyInfo = Gtk.PageSetup.PageSetup
type AttrLabel PrintOperationDefaultPageSetupPropertyInfo = "default-page-setup"
type AttrOrigin PrintOperationDefaultPageSetupPropertyInfo = PrintOperation
attrGet _ = getPrintOperationDefaultPageSetup
attrSet _ = setPrintOperationDefaultPageSetup
attrConstruct _ = constructPrintOperationDefaultPageSetup
attrClear _ = clearPrintOperationDefaultPageSetup
#endif
getPrintOperationEmbedPageSetup :: (MonadIO m, IsPrintOperation o) => o -> m Bool
getPrintOperationEmbedPageSetup obj = liftIO $ B.Properties.getObjectPropertyBool obj "embed-page-setup"
setPrintOperationEmbedPageSetup :: (MonadIO m, IsPrintOperation o) => o -> Bool -> m ()
setPrintOperationEmbedPageSetup obj val = liftIO $ B.Properties.setObjectPropertyBool obj "embed-page-setup" val
constructPrintOperationEmbedPageSetup :: (IsPrintOperation o) => Bool -> IO (GValueConstruct o)
constructPrintOperationEmbedPageSetup val = B.Properties.constructObjectPropertyBool "embed-page-setup" val
#if ENABLE_OVERLOADING
data PrintOperationEmbedPageSetupPropertyInfo
instance AttrInfo PrintOperationEmbedPageSetupPropertyInfo where
type AttrAllowedOps PrintOperationEmbedPageSetupPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationEmbedPageSetupPropertyInfo = (~) Bool
type AttrBaseTypeConstraint PrintOperationEmbedPageSetupPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationEmbedPageSetupPropertyInfo = Bool
type AttrLabel PrintOperationEmbedPageSetupPropertyInfo = "embed-page-setup"
type AttrOrigin PrintOperationEmbedPageSetupPropertyInfo = PrintOperation
attrGet _ = getPrintOperationEmbedPageSetup
attrSet _ = setPrintOperationEmbedPageSetup
attrConstruct _ = constructPrintOperationEmbedPageSetup
attrClear _ = undefined
#endif
getPrintOperationExportFilename :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe T.Text)
getPrintOperationExportFilename obj = liftIO $ B.Properties.getObjectPropertyString obj "export-filename"
setPrintOperationExportFilename :: (MonadIO m, IsPrintOperation o) => o -> T.Text -> m ()
setPrintOperationExportFilename obj val = liftIO $ B.Properties.setObjectPropertyString obj "export-filename" (Just val)
constructPrintOperationExportFilename :: (IsPrintOperation o) => T.Text -> IO (GValueConstruct o)
constructPrintOperationExportFilename val = B.Properties.constructObjectPropertyString "export-filename" (Just val)
clearPrintOperationExportFilename :: (MonadIO m, IsPrintOperation o) => o -> m ()
clearPrintOperationExportFilename obj = liftIO $ B.Properties.setObjectPropertyString obj "export-filename" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data PrintOperationExportFilenamePropertyInfo
instance AttrInfo PrintOperationExportFilenamePropertyInfo where
type AttrAllowedOps PrintOperationExportFilenamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint PrintOperationExportFilenamePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint PrintOperationExportFilenamePropertyInfo = IsPrintOperation
type AttrGetType PrintOperationExportFilenamePropertyInfo = (Maybe T.Text)
type AttrLabel PrintOperationExportFilenamePropertyInfo = "export-filename"
type AttrOrigin PrintOperationExportFilenamePropertyInfo = PrintOperation
attrGet _ = getPrintOperationExportFilename
attrSet _ = setPrintOperationExportFilename
attrConstruct _ = constructPrintOperationExportFilename
attrClear _ = clearPrintOperationExportFilename
#endif
getPrintOperationHasSelection :: (MonadIO m, IsPrintOperation o) => o -> m Bool
getPrintOperationHasSelection obj = liftIO $ B.Properties.getObjectPropertyBool obj "has-selection"
setPrintOperationHasSelection :: (MonadIO m, IsPrintOperation o) => o -> Bool -> m ()
setPrintOperationHasSelection obj val = liftIO $ B.Properties.setObjectPropertyBool obj "has-selection" val
constructPrintOperationHasSelection :: (IsPrintOperation o) => Bool -> IO (GValueConstruct o)
constructPrintOperationHasSelection val = B.Properties.constructObjectPropertyBool "has-selection" val
#if ENABLE_OVERLOADING
data PrintOperationHasSelectionPropertyInfo
instance AttrInfo PrintOperationHasSelectionPropertyInfo where
type AttrAllowedOps PrintOperationHasSelectionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationHasSelectionPropertyInfo = (~) Bool
type AttrBaseTypeConstraint PrintOperationHasSelectionPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationHasSelectionPropertyInfo = Bool
type AttrLabel PrintOperationHasSelectionPropertyInfo = "has-selection"
type AttrOrigin PrintOperationHasSelectionPropertyInfo = PrintOperation
attrGet _ = getPrintOperationHasSelection
attrSet _ = setPrintOperationHasSelection
attrConstruct _ = constructPrintOperationHasSelection
attrClear _ = undefined
#endif
getPrintOperationJobName :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe T.Text)
getPrintOperationJobName obj = liftIO $ B.Properties.getObjectPropertyString obj "job-name"
setPrintOperationJobName :: (MonadIO m, IsPrintOperation o) => o -> T.Text -> m ()
setPrintOperationJobName obj val = liftIO $ B.Properties.setObjectPropertyString obj "job-name" (Just val)
constructPrintOperationJobName :: (IsPrintOperation o) => T.Text -> IO (GValueConstruct o)
constructPrintOperationJobName val = B.Properties.constructObjectPropertyString "job-name" (Just val)
#if ENABLE_OVERLOADING
data PrintOperationJobNamePropertyInfo
instance AttrInfo PrintOperationJobNamePropertyInfo where
type AttrAllowedOps PrintOperationJobNamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationJobNamePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint PrintOperationJobNamePropertyInfo = IsPrintOperation
type AttrGetType PrintOperationJobNamePropertyInfo = (Maybe T.Text)
type AttrLabel PrintOperationJobNamePropertyInfo = "job-name"
type AttrOrigin PrintOperationJobNamePropertyInfo = PrintOperation
attrGet _ = getPrintOperationJobName
attrSet _ = setPrintOperationJobName
attrConstruct _ = constructPrintOperationJobName
attrClear _ = undefined
#endif
getPrintOperationNPages :: (MonadIO m, IsPrintOperation o) => o -> m Int32
getPrintOperationNPages obj = liftIO $ B.Properties.getObjectPropertyInt32 obj "n-pages"
setPrintOperationNPages :: (MonadIO m, IsPrintOperation o) => o -> Int32 -> m ()
setPrintOperationNPages obj val = liftIO $ B.Properties.setObjectPropertyInt32 obj "n-pages" val
constructPrintOperationNPages :: (IsPrintOperation o) => Int32 -> IO (GValueConstruct o)
constructPrintOperationNPages val = B.Properties.constructObjectPropertyInt32 "n-pages" val
#if ENABLE_OVERLOADING
data PrintOperationNPagesPropertyInfo
instance AttrInfo PrintOperationNPagesPropertyInfo where
type AttrAllowedOps PrintOperationNPagesPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationNPagesPropertyInfo = (~) Int32
type AttrBaseTypeConstraint PrintOperationNPagesPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationNPagesPropertyInfo = Int32
type AttrLabel PrintOperationNPagesPropertyInfo = "n-pages"
type AttrOrigin PrintOperationNPagesPropertyInfo = PrintOperation
attrGet _ = getPrintOperationNPages
attrSet _ = setPrintOperationNPages
attrConstruct _ = constructPrintOperationNPages
attrClear _ = undefined
#endif
getPrintOperationNPagesToPrint :: (MonadIO m, IsPrintOperation o) => o -> m Int32
getPrintOperationNPagesToPrint obj = liftIO $ B.Properties.getObjectPropertyInt32 obj "n-pages-to-print"
#if ENABLE_OVERLOADING
data PrintOperationNPagesToPrintPropertyInfo
instance AttrInfo PrintOperationNPagesToPrintPropertyInfo where
type AttrAllowedOps PrintOperationNPagesToPrintPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint PrintOperationNPagesToPrintPropertyInfo = (~) ()
type AttrBaseTypeConstraint PrintOperationNPagesToPrintPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationNPagesToPrintPropertyInfo = Int32
type AttrLabel PrintOperationNPagesToPrintPropertyInfo = "n-pages-to-print"
type AttrOrigin PrintOperationNPagesToPrintPropertyInfo = PrintOperation
attrGet _ = getPrintOperationNPagesToPrint
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o) => o -> m Gtk.PrintSettings.PrintSettings
getPrintOperationPrintSettings obj = liftIO $ checkUnexpectedNothing "getPrintOperationPrintSettings" $ B.Properties.getObjectPropertyObject obj "print-settings" Gtk.PrintSettings.PrintSettings
setPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o, Gtk.PrintSettings.IsPrintSettings a) => o -> a -> m ()
setPrintOperationPrintSettings obj val = liftIO $ B.Properties.setObjectPropertyObject obj "print-settings" (Just val)
constructPrintOperationPrintSettings :: (IsPrintOperation o, Gtk.PrintSettings.IsPrintSettings a) => a -> IO (GValueConstruct o)
constructPrintOperationPrintSettings val = B.Properties.constructObjectPropertyObject "print-settings" (Just val)
clearPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o) => o -> m ()
clearPrintOperationPrintSettings obj = liftIO $ B.Properties.setObjectPropertyObject obj "print-settings" (Nothing :: Maybe Gtk.PrintSettings.PrintSettings)
#if ENABLE_OVERLOADING
data PrintOperationPrintSettingsPropertyInfo
instance AttrInfo PrintOperationPrintSettingsPropertyInfo where
type AttrAllowedOps PrintOperationPrintSettingsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint PrintOperationPrintSettingsPropertyInfo = Gtk.PrintSettings.IsPrintSettings
type AttrBaseTypeConstraint PrintOperationPrintSettingsPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationPrintSettingsPropertyInfo = Gtk.PrintSettings.PrintSettings
type AttrLabel PrintOperationPrintSettingsPropertyInfo = "print-settings"
type AttrOrigin PrintOperationPrintSettingsPropertyInfo = PrintOperation
attrGet _ = getPrintOperationPrintSettings
attrSet _ = setPrintOperationPrintSettings
attrConstruct _ = constructPrintOperationPrintSettings
attrClear _ = clearPrintOperationPrintSettings
#endif
getPrintOperationShowProgress :: (MonadIO m, IsPrintOperation o) => o -> m Bool
getPrintOperationShowProgress obj = liftIO $ B.Properties.getObjectPropertyBool obj "show-progress"
setPrintOperationShowProgress :: (MonadIO m, IsPrintOperation o) => o -> Bool -> m ()
setPrintOperationShowProgress obj val = liftIO $ B.Properties.setObjectPropertyBool obj "show-progress" val
constructPrintOperationShowProgress :: (IsPrintOperation o) => Bool -> IO (GValueConstruct o)
constructPrintOperationShowProgress val = B.Properties.constructObjectPropertyBool "show-progress" val
#if ENABLE_OVERLOADING
data PrintOperationShowProgressPropertyInfo
instance AttrInfo PrintOperationShowProgressPropertyInfo where
type AttrAllowedOps PrintOperationShowProgressPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationShowProgressPropertyInfo = (~) Bool
type AttrBaseTypeConstraint PrintOperationShowProgressPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationShowProgressPropertyInfo = Bool
type AttrLabel PrintOperationShowProgressPropertyInfo = "show-progress"
type AttrOrigin PrintOperationShowProgressPropertyInfo = PrintOperation
attrGet _ = getPrintOperationShowProgress
attrSet _ = setPrintOperationShowProgress
attrConstruct _ = constructPrintOperationShowProgress
attrClear _ = undefined
#endif
getPrintOperationStatus :: (MonadIO m, IsPrintOperation o) => o -> m Gtk.Enums.PrintStatus
getPrintOperationStatus obj = liftIO $ B.Properties.getObjectPropertyEnum obj "status"
#if ENABLE_OVERLOADING
data PrintOperationStatusPropertyInfo
instance AttrInfo PrintOperationStatusPropertyInfo where
type AttrAllowedOps PrintOperationStatusPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint PrintOperationStatusPropertyInfo = (~) ()
type AttrBaseTypeConstraint PrintOperationStatusPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationStatusPropertyInfo = Gtk.Enums.PrintStatus
type AttrLabel PrintOperationStatusPropertyInfo = "status"
type AttrOrigin PrintOperationStatusPropertyInfo = PrintOperation
attrGet _ = getPrintOperationStatus
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getPrintOperationStatusString :: (MonadIO m, IsPrintOperation o) => o -> m T.Text
getPrintOperationStatusString obj = liftIO $ checkUnexpectedNothing "getPrintOperationStatusString" $ B.Properties.getObjectPropertyString obj "status-string"
#if ENABLE_OVERLOADING
data PrintOperationStatusStringPropertyInfo
instance AttrInfo PrintOperationStatusStringPropertyInfo where
type AttrAllowedOps PrintOperationStatusStringPropertyInfo = '[ 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint PrintOperationStatusStringPropertyInfo = (~) ()
type AttrBaseTypeConstraint PrintOperationStatusStringPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationStatusStringPropertyInfo = T.Text
type AttrLabel PrintOperationStatusStringPropertyInfo = "status-string"
type AttrOrigin PrintOperationStatusStringPropertyInfo = PrintOperation
attrGet _ = getPrintOperationStatusString
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getPrintOperationSupportSelection :: (MonadIO m, IsPrintOperation o) => o -> m Bool
getPrintOperationSupportSelection obj = liftIO $ B.Properties.getObjectPropertyBool obj "support-selection"
setPrintOperationSupportSelection :: (MonadIO m, IsPrintOperation o) => o -> Bool -> m ()
setPrintOperationSupportSelection obj val = liftIO $ B.Properties.setObjectPropertyBool obj "support-selection" val
constructPrintOperationSupportSelection :: (IsPrintOperation o) => Bool -> IO (GValueConstruct o)
constructPrintOperationSupportSelection val = B.Properties.constructObjectPropertyBool "support-selection" val
#if ENABLE_OVERLOADING
data PrintOperationSupportSelectionPropertyInfo
instance AttrInfo PrintOperationSupportSelectionPropertyInfo where
type AttrAllowedOps PrintOperationSupportSelectionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationSupportSelectionPropertyInfo = (~) Bool
type AttrBaseTypeConstraint PrintOperationSupportSelectionPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationSupportSelectionPropertyInfo = Bool
type AttrLabel PrintOperationSupportSelectionPropertyInfo = "support-selection"
type AttrOrigin PrintOperationSupportSelectionPropertyInfo = PrintOperation
attrGet _ = getPrintOperationSupportSelection
attrSet _ = setPrintOperationSupportSelection
attrConstruct _ = constructPrintOperationSupportSelection
attrClear _ = undefined
#endif
getPrintOperationTrackPrintStatus :: (MonadIO m, IsPrintOperation o) => o -> m Bool
getPrintOperationTrackPrintStatus obj = liftIO $ B.Properties.getObjectPropertyBool obj "track-print-status"
setPrintOperationTrackPrintStatus :: (MonadIO m, IsPrintOperation o) => o -> Bool -> m ()
setPrintOperationTrackPrintStatus obj val = liftIO $ B.Properties.setObjectPropertyBool obj "track-print-status" val
constructPrintOperationTrackPrintStatus :: (IsPrintOperation o) => Bool -> IO (GValueConstruct o)
constructPrintOperationTrackPrintStatus val = B.Properties.constructObjectPropertyBool "track-print-status" val
#if ENABLE_OVERLOADING
data PrintOperationTrackPrintStatusPropertyInfo
instance AttrInfo PrintOperationTrackPrintStatusPropertyInfo where
type AttrAllowedOps PrintOperationTrackPrintStatusPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationTrackPrintStatusPropertyInfo = (~) Bool
type AttrBaseTypeConstraint PrintOperationTrackPrintStatusPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationTrackPrintStatusPropertyInfo = Bool
type AttrLabel PrintOperationTrackPrintStatusPropertyInfo = "track-print-status"
type AttrOrigin PrintOperationTrackPrintStatusPropertyInfo = PrintOperation
attrGet _ = getPrintOperationTrackPrintStatus
attrSet _ = setPrintOperationTrackPrintStatus
attrConstruct _ = constructPrintOperationTrackPrintStatus
attrClear _ = undefined
#endif
getPrintOperationUnit :: (MonadIO m, IsPrintOperation o) => o -> m Gtk.Enums.Unit
getPrintOperationUnit obj = liftIO $ B.Properties.getObjectPropertyEnum obj "unit"
setPrintOperationUnit :: (MonadIO m, IsPrintOperation o) => o -> Gtk.Enums.Unit -> m ()
setPrintOperationUnit obj val = liftIO $ B.Properties.setObjectPropertyEnum obj "unit" val
constructPrintOperationUnit :: (IsPrintOperation o) => Gtk.Enums.Unit -> IO (GValueConstruct o)
constructPrintOperationUnit val = B.Properties.constructObjectPropertyEnum "unit" val
#if ENABLE_OVERLOADING
data PrintOperationUnitPropertyInfo
instance AttrInfo PrintOperationUnitPropertyInfo where
type AttrAllowedOps PrintOperationUnitPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationUnitPropertyInfo = (~) Gtk.Enums.Unit
type AttrBaseTypeConstraint PrintOperationUnitPropertyInfo = IsPrintOperation
type AttrGetType PrintOperationUnitPropertyInfo = Gtk.Enums.Unit
type AttrLabel PrintOperationUnitPropertyInfo = "unit"
type AttrOrigin PrintOperationUnitPropertyInfo = PrintOperation
attrGet _ = getPrintOperationUnit
attrSet _ = setPrintOperationUnit
attrConstruct _ = constructPrintOperationUnit
attrClear _ = undefined
#endif
getPrintOperationUseFullPage :: (MonadIO m, IsPrintOperation o) => o -> m Bool
getPrintOperationUseFullPage obj = liftIO $ B.Properties.getObjectPropertyBool obj "use-full-page"
setPrintOperationUseFullPage :: (MonadIO m, IsPrintOperation o) => o -> Bool -> m ()
setPrintOperationUseFullPage obj val = liftIO $ B.Properties.setObjectPropertyBool obj "use-full-page" val
constructPrintOperationUseFullPage :: (IsPrintOperation o) => Bool -> IO (GValueConstruct o)
constructPrintOperationUseFullPage val = B.Properties.constructObjectPropertyBool "use-full-page" val
#if ENABLE_OVERLOADING
data PrintOperationUseFullPagePropertyInfo
instance AttrInfo PrintOperationUseFullPagePropertyInfo where
type AttrAllowedOps PrintOperationUseFullPagePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint PrintOperationUseFullPagePropertyInfo = (~) Bool
type AttrBaseTypeConstraint PrintOperationUseFullPagePropertyInfo = IsPrintOperation
type AttrGetType PrintOperationUseFullPagePropertyInfo = Bool
type AttrLabel PrintOperationUseFullPagePropertyInfo = "use-full-page"
type AttrOrigin PrintOperationUseFullPagePropertyInfo = PrintOperation
attrGet _ = getPrintOperationUseFullPage
attrSet _ = setPrintOperationUseFullPage
attrConstruct _ = constructPrintOperationUseFullPage
attrClear _ = undefined
#endif
#if ENABLE_OVERLOADING
instance O.HasAttributeList PrintOperation
type instance O.AttributeList PrintOperation = PrintOperationAttributeList
type PrintOperationAttributeList = ('[ '("allowAsync", PrintOperationAllowAsyncPropertyInfo), '("currentPage", PrintOperationCurrentPagePropertyInfo), '("customTabLabel", PrintOperationCustomTabLabelPropertyInfo), '("defaultPageSetup", PrintOperationDefaultPageSetupPropertyInfo), '("embedPageSetup", PrintOperationEmbedPageSetupPropertyInfo), '("exportFilename", PrintOperationExportFilenamePropertyInfo), '("hasSelection", PrintOperationHasSelectionPropertyInfo), '("jobName", PrintOperationJobNamePropertyInfo), '("nPages", PrintOperationNPagesPropertyInfo), '("nPagesToPrint", PrintOperationNPagesToPrintPropertyInfo), '("printSettings", PrintOperationPrintSettingsPropertyInfo), '("showProgress", PrintOperationShowProgressPropertyInfo), '("status", PrintOperationStatusPropertyInfo), '("statusString", PrintOperationStatusStringPropertyInfo), '("supportSelection", PrintOperationSupportSelectionPropertyInfo), '("trackPrintStatus", PrintOperationTrackPrintStatusPropertyInfo), '("unit", PrintOperationUnitPropertyInfo), '("useFullPage", PrintOperationUseFullPagePropertyInfo)] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
printOperationAllowAsync :: AttrLabelProxy "allowAsync"
printOperationAllowAsync = AttrLabelProxy
printOperationCurrentPage :: AttrLabelProxy "currentPage"
printOperationCurrentPage = AttrLabelProxy
printOperationCustomTabLabel :: AttrLabelProxy "customTabLabel"
printOperationCustomTabLabel = AttrLabelProxy
printOperationDefaultPageSetup :: AttrLabelProxy "defaultPageSetup"
printOperationDefaultPageSetup = AttrLabelProxy
printOperationEmbedPageSetup :: AttrLabelProxy "embedPageSetup"
printOperationEmbedPageSetup = AttrLabelProxy
printOperationExportFilename :: AttrLabelProxy "exportFilename"
printOperationExportFilename = AttrLabelProxy
printOperationHasSelection :: AttrLabelProxy "hasSelection"
printOperationHasSelection = AttrLabelProxy
printOperationJobName :: AttrLabelProxy "jobName"
printOperationJobName = AttrLabelProxy
printOperationNPages :: AttrLabelProxy "nPages"
printOperationNPages = AttrLabelProxy
printOperationNPagesToPrint :: AttrLabelProxy "nPagesToPrint"
printOperationNPagesToPrint = AttrLabelProxy
printOperationPrintSettings :: AttrLabelProxy "printSettings"
printOperationPrintSettings = AttrLabelProxy
printOperationShowProgress :: AttrLabelProxy "showProgress"
printOperationShowProgress = AttrLabelProxy
printOperationStatus :: AttrLabelProxy "status"
printOperationStatus = AttrLabelProxy
printOperationStatusString :: AttrLabelProxy "statusString"
printOperationStatusString = AttrLabelProxy
printOperationSupportSelection :: AttrLabelProxy "supportSelection"
printOperationSupportSelection = AttrLabelProxy
printOperationTrackPrintStatus :: AttrLabelProxy "trackPrintStatus"
printOperationTrackPrintStatus = AttrLabelProxy
printOperationUnit :: AttrLabelProxy "unit"
printOperationUnit = AttrLabelProxy
printOperationUseFullPage :: AttrLabelProxy "useFullPage"
printOperationUseFullPage = AttrLabelProxy
#endif
#if ENABLE_OVERLOADING
data PrintOperationBeginPrintSignalInfo
instance SignalInfo PrintOperationBeginPrintSignalInfo where
type HaskellCallbackType PrintOperationBeginPrintSignalInfo = PrintOperationBeginPrintCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationBeginPrintCallback cb
cb'' <- mk_PrintOperationBeginPrintCallback cb'
connectSignalFunPtr obj "begin-print" cb'' connectMode
data PrintOperationCreateCustomWidgetSignalInfo
instance SignalInfo PrintOperationCreateCustomWidgetSignalInfo where
type HaskellCallbackType PrintOperationCreateCustomWidgetSignalInfo = PrintOperationCreateCustomWidgetCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationCreateCustomWidgetCallback cb
cb'' <- mk_PrintOperationCreateCustomWidgetCallback cb'
connectSignalFunPtr obj "create-custom-widget" cb'' connectMode
data PrintOperationCustomWidgetApplySignalInfo
instance SignalInfo PrintOperationCustomWidgetApplySignalInfo where
type HaskellCallbackType PrintOperationCustomWidgetApplySignalInfo = PrintOperationCustomWidgetApplyCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationCustomWidgetApplyCallback cb
cb'' <- mk_PrintOperationCustomWidgetApplyCallback cb'
connectSignalFunPtr obj "custom-widget-apply" cb'' connectMode
data PrintOperationDoneSignalInfo
instance SignalInfo PrintOperationDoneSignalInfo where
type HaskellCallbackType PrintOperationDoneSignalInfo = PrintOperationDoneCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationDoneCallback cb
cb'' <- mk_PrintOperationDoneCallback cb'
connectSignalFunPtr obj "done" cb'' connectMode
data PrintOperationDrawPageSignalInfo
instance SignalInfo PrintOperationDrawPageSignalInfo where
type HaskellCallbackType PrintOperationDrawPageSignalInfo = PrintOperationDrawPageCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationDrawPageCallback cb
cb'' <- mk_PrintOperationDrawPageCallback cb'
connectSignalFunPtr obj "draw-page" cb'' connectMode
data PrintOperationEndPrintSignalInfo
instance SignalInfo PrintOperationEndPrintSignalInfo where
type HaskellCallbackType PrintOperationEndPrintSignalInfo = PrintOperationEndPrintCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationEndPrintCallback cb
cb'' <- mk_PrintOperationEndPrintCallback cb'
connectSignalFunPtr obj "end-print" cb'' connectMode
data PrintOperationPaginateSignalInfo
instance SignalInfo PrintOperationPaginateSignalInfo where
type HaskellCallbackType PrintOperationPaginateSignalInfo = PrintOperationPaginateCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationPaginateCallback cb
cb'' <- mk_PrintOperationPaginateCallback cb'
connectSignalFunPtr obj "paginate" cb'' connectMode
data PrintOperationPreviewSignalInfo
instance SignalInfo PrintOperationPreviewSignalInfo where
type HaskellCallbackType PrintOperationPreviewSignalInfo = PrintOperationPreviewCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationPreviewCallback cb
cb'' <- mk_PrintOperationPreviewCallback cb'
connectSignalFunPtr obj "preview" cb'' connectMode
data PrintOperationRequestPageSetupSignalInfo
instance SignalInfo PrintOperationRequestPageSetupSignalInfo where
type HaskellCallbackType PrintOperationRequestPageSetupSignalInfo = PrintOperationRequestPageSetupCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationRequestPageSetupCallback cb
cb'' <- mk_PrintOperationRequestPageSetupCallback cb'
connectSignalFunPtr obj "request-page-setup" cb'' connectMode
data PrintOperationStatusChangedSignalInfo
instance SignalInfo PrintOperationStatusChangedSignalInfo where
type HaskellCallbackType PrintOperationStatusChangedSignalInfo = PrintOperationStatusChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationStatusChangedCallback cb
cb'' <- mk_PrintOperationStatusChangedCallback cb'
connectSignalFunPtr obj "status-changed" cb'' connectMode
data PrintOperationUpdateCustomWidgetSignalInfo
instance SignalInfo PrintOperationUpdateCustomWidgetSignalInfo where
type HaskellCallbackType PrintOperationUpdateCustomWidgetSignalInfo = PrintOperationUpdateCustomWidgetCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_PrintOperationUpdateCustomWidgetCallback cb
cb'' <- mk_PrintOperationUpdateCustomWidgetCallback cb'
connectSignalFunPtr obj "update-custom-widget" cb'' connectMode
type instance O.SignalList PrintOperation = PrintOperationSignalList
type PrintOperationSignalList = ('[ '("beginPrint", PrintOperationBeginPrintSignalInfo), '("createCustomWidget", PrintOperationCreateCustomWidgetSignalInfo), '("customWidgetApply", PrintOperationCustomWidgetApplySignalInfo), '("done", PrintOperationDoneSignalInfo), '("drawPage", PrintOperationDrawPageSignalInfo), '("endPrint", PrintOperationEndPrintSignalInfo), '("gotPageSize", Gtk.PrintOperationPreview.PrintOperationPreviewGotPageSizeSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("paginate", PrintOperationPaginateSignalInfo), '("preview", PrintOperationPreviewSignalInfo), '("ready", Gtk.PrintOperationPreview.PrintOperationPreviewReadySignalInfo), '("requestPageSetup", PrintOperationRequestPageSetupSignalInfo), '("statusChanged", PrintOperationStatusChangedSignalInfo), '("updateCustomWidget", PrintOperationUpdateCustomWidgetSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_print_operation_new" gtk_print_operation_new ::
IO (Ptr PrintOperation)
printOperationNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m PrintOperation
printOperationNew = liftIO $ do
result <- gtk_print_operation_new
checkUnexpectedReturnNULL "printOperationNew" result
result' <- (wrapObject PrintOperation) result
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_print_operation_cancel" gtk_print_operation_cancel ::
Ptr PrintOperation ->
IO ()
printOperationCancel ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m ()
printOperationCancel op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
gtk_print_operation_cancel op'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationCancelMethodInfo
instance (signature ~ (m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationCancelMethodInfo a signature where
overloadedMethod _ = printOperationCancel
#endif
foreign import ccall "gtk_print_operation_draw_page_finish" gtk_print_operation_draw_page_finish ::
Ptr PrintOperation ->
IO ()
printOperationDrawPageFinish ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m ()
printOperationDrawPageFinish op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
gtk_print_operation_draw_page_finish op'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationDrawPageFinishMethodInfo
instance (signature ~ (m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationDrawPageFinishMethodInfo a signature where
overloadedMethod _ = printOperationDrawPageFinish
#endif
foreign import ccall "gtk_print_operation_get_default_page_setup" gtk_print_operation_get_default_page_setup ::
Ptr PrintOperation ->
IO (Ptr Gtk.PageSetup.PageSetup)
printOperationGetDefaultPageSetup ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m Gtk.PageSetup.PageSetup
printOperationGetDefaultPageSetup op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_get_default_page_setup op'
checkUnexpectedReturnNULL "printOperationGetDefaultPageSetup" result
result' <- (newObject Gtk.PageSetup.PageSetup) result
touchManagedPtr op
return result'
#if ENABLE_OVERLOADING
data PrintOperationGetDefaultPageSetupMethodInfo
instance (signature ~ (m Gtk.PageSetup.PageSetup), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetDefaultPageSetupMethodInfo a signature where
overloadedMethod _ = printOperationGetDefaultPageSetup
#endif
foreign import ccall "gtk_print_operation_get_embed_page_setup" gtk_print_operation_get_embed_page_setup ::
Ptr PrintOperation ->
IO CInt
printOperationGetEmbedPageSetup ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m Bool
printOperationGetEmbedPageSetup op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_get_embed_page_setup op'
let result' = (/= 0) result
touchManagedPtr op
return result'
#if ENABLE_OVERLOADING
data PrintOperationGetEmbedPageSetupMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetEmbedPageSetupMethodInfo a signature where
overloadedMethod _ = printOperationGetEmbedPageSetup
#endif
foreign import ccall "gtk_print_operation_get_error" gtk_print_operation_get_error ::
Ptr PrintOperation ->
Ptr (Ptr GError) ->
IO ()
printOperationGetError ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m ()
printOperationGetError op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
onException (do
propagateGError $ gtk_print_operation_get_error op'
touchManagedPtr op
return ()
) (do
return ()
)
#if ENABLE_OVERLOADING
data PrintOperationGetErrorMethodInfo
instance (signature ~ (m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetErrorMethodInfo a signature where
overloadedMethod _ = printOperationGetError
#endif
foreign import ccall "gtk_print_operation_get_has_selection" gtk_print_operation_get_has_selection ::
Ptr PrintOperation ->
IO CInt
printOperationGetHasSelection ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m Bool
printOperationGetHasSelection op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_get_has_selection op'
let result' = (/= 0) result
touchManagedPtr op
return result'
#if ENABLE_OVERLOADING
data PrintOperationGetHasSelectionMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetHasSelectionMethodInfo a signature where
overloadedMethod _ = printOperationGetHasSelection
#endif
foreign import ccall "gtk_print_operation_get_n_pages_to_print" gtk_print_operation_get_n_pages_to_print ::
Ptr PrintOperation ->
IO Int32
printOperationGetNPagesToPrint ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m Int32
printOperationGetNPagesToPrint op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_get_n_pages_to_print op'
touchManagedPtr op
return result
#if ENABLE_OVERLOADING
data PrintOperationGetNPagesToPrintMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetNPagesToPrintMethodInfo a signature where
overloadedMethod _ = printOperationGetNPagesToPrint
#endif
foreign import ccall "gtk_print_operation_get_print_settings" gtk_print_operation_get_print_settings ::
Ptr PrintOperation ->
IO (Ptr Gtk.PrintSettings.PrintSettings)
printOperationGetPrintSettings ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m Gtk.PrintSettings.PrintSettings
printOperationGetPrintSettings op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_get_print_settings op'
checkUnexpectedReturnNULL "printOperationGetPrintSettings" result
result' <- (newObject Gtk.PrintSettings.PrintSettings) result
touchManagedPtr op
return result'
#if ENABLE_OVERLOADING
data PrintOperationGetPrintSettingsMethodInfo
instance (signature ~ (m Gtk.PrintSettings.PrintSettings), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetPrintSettingsMethodInfo a signature where
overloadedMethod _ = printOperationGetPrintSettings
#endif
foreign import ccall "gtk_print_operation_get_status" gtk_print_operation_get_status ::
Ptr PrintOperation ->
IO CUInt
printOperationGetStatus ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m Gtk.Enums.PrintStatus
printOperationGetStatus op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_get_status op'
let result' = (toEnum . fromIntegral) result
touchManagedPtr op
return result'
#if ENABLE_OVERLOADING
data PrintOperationGetStatusMethodInfo
instance (signature ~ (m Gtk.Enums.PrintStatus), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetStatusMethodInfo a signature where
overloadedMethod _ = printOperationGetStatus
#endif
foreign import ccall "gtk_print_operation_get_status_string" gtk_print_operation_get_status_string ::
Ptr PrintOperation ->
IO CString
printOperationGetStatusString ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m T.Text
printOperationGetStatusString op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_get_status_string op'
checkUnexpectedReturnNULL "printOperationGetStatusString" result
result' <- cstringToText result
touchManagedPtr op
return result'
#if ENABLE_OVERLOADING
data PrintOperationGetStatusStringMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetStatusStringMethodInfo a signature where
overloadedMethod _ = printOperationGetStatusString
#endif
foreign import ccall "gtk_print_operation_get_support_selection" gtk_print_operation_get_support_selection ::
Ptr PrintOperation ->
IO CInt
printOperationGetSupportSelection ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m Bool
printOperationGetSupportSelection op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_get_support_selection op'
let result' = (/= 0) result
touchManagedPtr op
return result'
#if ENABLE_OVERLOADING
data PrintOperationGetSupportSelectionMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationGetSupportSelectionMethodInfo a signature where
overloadedMethod _ = printOperationGetSupportSelection
#endif
foreign import ccall "gtk_print_operation_is_finished" gtk_print_operation_is_finished ::
Ptr PrintOperation ->
IO CInt
printOperationIsFinished ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m Bool
printOperationIsFinished op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
result <- gtk_print_operation_is_finished op'
let result' = (/= 0) result
touchManagedPtr op
return result'
#if ENABLE_OVERLOADING
data PrintOperationIsFinishedMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationIsFinishedMethodInfo a signature where
overloadedMethod _ = printOperationIsFinished
#endif
foreign import ccall "gtk_print_operation_run" gtk_print_operation_run ::
Ptr PrintOperation ->
CUInt ->
Ptr Gtk.Window.Window ->
Ptr (Ptr GError) ->
IO CUInt
printOperationRun ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a, Gtk.Window.IsWindow b) =>
a
-> Gtk.Enums.PrintOperationAction
-> Maybe (b)
-> m Gtk.Enums.PrintOperationResult
printOperationRun op action parent = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let action' = (fromIntegral . fromEnum) action
maybeParent <- case parent of
Nothing -> return nullPtr
Just jParent -> do
jParent' <- unsafeManagedPtrCastPtr jParent
return jParent'
onException (do
result <- propagateGError $ gtk_print_operation_run op' action' maybeParent
let result' = (toEnum . fromIntegral) result
touchManagedPtr op
whenJust parent touchManagedPtr
return result'
) (do
return ()
)
#if ENABLE_OVERLOADING
data PrintOperationRunMethodInfo
instance (signature ~ (Gtk.Enums.PrintOperationAction -> Maybe (b) -> m Gtk.Enums.PrintOperationResult), MonadIO m, IsPrintOperation a, Gtk.Window.IsWindow b) => O.MethodInfo PrintOperationRunMethodInfo a signature where
overloadedMethod _ = printOperationRun
#endif
foreign import ccall "gtk_print_operation_set_allow_async" gtk_print_operation_set_allow_async ::
Ptr PrintOperation ->
CInt ->
IO ()
printOperationSetAllowAsync ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Bool
-> m ()
printOperationSetAllowAsync op allowAsync = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let allowAsync' = (fromIntegral . fromEnum) allowAsync
gtk_print_operation_set_allow_async op' allowAsync'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetAllowAsyncMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetAllowAsyncMethodInfo a signature where
overloadedMethod _ = printOperationSetAllowAsync
#endif
foreign import ccall "gtk_print_operation_set_current_page" gtk_print_operation_set_current_page ::
Ptr PrintOperation ->
Int32 ->
IO ()
printOperationSetCurrentPage ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Int32
-> m ()
printOperationSetCurrentPage op currentPage = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
gtk_print_operation_set_current_page op' currentPage
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetCurrentPageMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetCurrentPageMethodInfo a signature where
overloadedMethod _ = printOperationSetCurrentPage
#endif
foreign import ccall "gtk_print_operation_set_custom_tab_label" gtk_print_operation_set_custom_tab_label ::
Ptr PrintOperation ->
CString ->
IO ()
printOperationSetCustomTabLabel ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Maybe (T.Text)
-> m ()
printOperationSetCustomTabLabel op label = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
maybeLabel <- case label of
Nothing -> return nullPtr
Just jLabel -> do
jLabel' <- textToCString jLabel
return jLabel'
gtk_print_operation_set_custom_tab_label op' maybeLabel
touchManagedPtr op
freeMem maybeLabel
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetCustomTabLabelMethodInfo
instance (signature ~ (Maybe (T.Text) -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetCustomTabLabelMethodInfo a signature where
overloadedMethod _ = printOperationSetCustomTabLabel
#endif
foreign import ccall "gtk_print_operation_set_default_page_setup" gtk_print_operation_set_default_page_setup ::
Ptr PrintOperation ->
Ptr Gtk.PageSetup.PageSetup ->
IO ()
printOperationSetDefaultPageSetup ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a, Gtk.PageSetup.IsPageSetup b) =>
a
-> Maybe (b)
-> m ()
printOperationSetDefaultPageSetup op defaultPageSetup = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
maybeDefaultPageSetup <- case defaultPageSetup of
Nothing -> return nullPtr
Just jDefaultPageSetup -> do
jDefaultPageSetup' <- unsafeManagedPtrCastPtr jDefaultPageSetup
return jDefaultPageSetup'
gtk_print_operation_set_default_page_setup op' maybeDefaultPageSetup
touchManagedPtr op
whenJust defaultPageSetup touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetDefaultPageSetupMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsPrintOperation a, Gtk.PageSetup.IsPageSetup b) => O.MethodInfo PrintOperationSetDefaultPageSetupMethodInfo a signature where
overloadedMethod _ = printOperationSetDefaultPageSetup
#endif
foreign import ccall "gtk_print_operation_set_defer_drawing" gtk_print_operation_set_defer_drawing ::
Ptr PrintOperation ->
IO ()
printOperationSetDeferDrawing ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> m ()
printOperationSetDeferDrawing op = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
gtk_print_operation_set_defer_drawing op'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetDeferDrawingMethodInfo
instance (signature ~ (m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetDeferDrawingMethodInfo a signature where
overloadedMethod _ = printOperationSetDeferDrawing
#endif
foreign import ccall "gtk_print_operation_set_embed_page_setup" gtk_print_operation_set_embed_page_setup ::
Ptr PrintOperation ->
CInt ->
IO ()
printOperationSetEmbedPageSetup ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Bool
-> m ()
printOperationSetEmbedPageSetup op embed = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let embed' = (fromIntegral . fromEnum) embed
gtk_print_operation_set_embed_page_setup op' embed'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetEmbedPageSetupMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetEmbedPageSetupMethodInfo a signature where
overloadedMethod _ = printOperationSetEmbedPageSetup
#endif
foreign import ccall "gtk_print_operation_set_export_filename" gtk_print_operation_set_export_filename ::
Ptr PrintOperation ->
CString ->
IO ()
printOperationSetExportFilename ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> [Char]
-> m ()
printOperationSetExportFilename op filename = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
filename' <- stringToCString filename
gtk_print_operation_set_export_filename op' filename'
touchManagedPtr op
freeMem filename'
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetExportFilenameMethodInfo
instance (signature ~ ([Char] -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetExportFilenameMethodInfo a signature where
overloadedMethod _ = printOperationSetExportFilename
#endif
foreign import ccall "gtk_print_operation_set_has_selection" gtk_print_operation_set_has_selection ::
Ptr PrintOperation ->
CInt ->
IO ()
printOperationSetHasSelection ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Bool
-> m ()
printOperationSetHasSelection op hasSelection = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let hasSelection' = (fromIntegral . fromEnum) hasSelection
gtk_print_operation_set_has_selection op' hasSelection'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetHasSelectionMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetHasSelectionMethodInfo a signature where
overloadedMethod _ = printOperationSetHasSelection
#endif
foreign import ccall "gtk_print_operation_set_job_name" gtk_print_operation_set_job_name ::
Ptr PrintOperation ->
CString ->
IO ()
printOperationSetJobName ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> T.Text
-> m ()
printOperationSetJobName op jobName = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
jobName' <- textToCString jobName
gtk_print_operation_set_job_name op' jobName'
touchManagedPtr op
freeMem jobName'
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetJobNameMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetJobNameMethodInfo a signature where
overloadedMethod _ = printOperationSetJobName
#endif
foreign import ccall "gtk_print_operation_set_n_pages" gtk_print_operation_set_n_pages ::
Ptr PrintOperation ->
Int32 ->
IO ()
printOperationSetNPages ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Int32
-> m ()
printOperationSetNPages op nPages = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
gtk_print_operation_set_n_pages op' nPages
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetNPagesMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetNPagesMethodInfo a signature where
overloadedMethod _ = printOperationSetNPages
#endif
foreign import ccall "gtk_print_operation_set_print_settings" gtk_print_operation_set_print_settings ::
Ptr PrintOperation ->
Ptr Gtk.PrintSettings.PrintSettings ->
IO ()
printOperationSetPrintSettings ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a, Gtk.PrintSettings.IsPrintSettings b) =>
a
-> Maybe (b)
-> m ()
printOperationSetPrintSettings op printSettings = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
maybePrintSettings <- case printSettings of
Nothing -> return nullPtr
Just jPrintSettings -> do
jPrintSettings' <- unsafeManagedPtrCastPtr jPrintSettings
return jPrintSettings'
gtk_print_operation_set_print_settings op' maybePrintSettings
touchManagedPtr op
whenJust printSettings touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetPrintSettingsMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsPrintOperation a, Gtk.PrintSettings.IsPrintSettings b) => O.MethodInfo PrintOperationSetPrintSettingsMethodInfo a signature where
overloadedMethod _ = printOperationSetPrintSettings
#endif
foreign import ccall "gtk_print_operation_set_show_progress" gtk_print_operation_set_show_progress ::
Ptr PrintOperation ->
CInt ->
IO ()
printOperationSetShowProgress ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Bool
-> m ()
printOperationSetShowProgress op showProgress = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let showProgress' = (fromIntegral . fromEnum) showProgress
gtk_print_operation_set_show_progress op' showProgress'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetShowProgressMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetShowProgressMethodInfo a signature where
overloadedMethod _ = printOperationSetShowProgress
#endif
foreign import ccall "gtk_print_operation_set_support_selection" gtk_print_operation_set_support_selection ::
Ptr PrintOperation ->
CInt ->
IO ()
printOperationSetSupportSelection ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Bool
-> m ()
printOperationSetSupportSelection op supportSelection = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let supportSelection' = (fromIntegral . fromEnum) supportSelection
gtk_print_operation_set_support_selection op' supportSelection'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetSupportSelectionMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetSupportSelectionMethodInfo a signature where
overloadedMethod _ = printOperationSetSupportSelection
#endif
foreign import ccall "gtk_print_operation_set_track_print_status" gtk_print_operation_set_track_print_status ::
Ptr PrintOperation ->
CInt ->
IO ()
printOperationSetTrackPrintStatus ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Bool
-> m ()
printOperationSetTrackPrintStatus op trackStatus = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let trackStatus' = (fromIntegral . fromEnum) trackStatus
gtk_print_operation_set_track_print_status op' trackStatus'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetTrackPrintStatusMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetTrackPrintStatusMethodInfo a signature where
overloadedMethod _ = printOperationSetTrackPrintStatus
#endif
foreign import ccall "gtk_print_operation_set_unit" gtk_print_operation_set_unit ::
Ptr PrintOperation ->
CUInt ->
IO ()
printOperationSetUnit ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Gtk.Enums.Unit
-> m ()
printOperationSetUnit op unit = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let unit' = (fromIntegral . fromEnum) unit
gtk_print_operation_set_unit op' unit'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetUnitMethodInfo
instance (signature ~ (Gtk.Enums.Unit -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetUnitMethodInfo a signature where
overloadedMethod _ = printOperationSetUnit
#endif
foreign import ccall "gtk_print_operation_set_use_full_page" gtk_print_operation_set_use_full_page ::
Ptr PrintOperation ->
CInt ->
IO ()
printOperationSetUseFullPage ::
(B.CallStack.HasCallStack, MonadIO m, IsPrintOperation a) =>
a
-> Bool
-> m ()
printOperationSetUseFullPage op fullPage = liftIO $ do
op' <- unsafeManagedPtrCastPtr op
let fullPage' = (fromIntegral . fromEnum) fullPage
gtk_print_operation_set_use_full_page op' fullPage'
touchManagedPtr op
return ()
#if ENABLE_OVERLOADING
data PrintOperationSetUseFullPageMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPrintOperation a) => O.MethodInfo PrintOperationSetUseFullPageMethodInfo a signature where
overloadedMethod _ = printOperationSetUseFullPage
#endif