Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Gtk.Structs.PrintSetup
Description
A GtkPrintSetup
is an auxiliary object for printing that allows decoupling
the setup from the printing.
A print setup is obtained by calling printDialogSetup
,
and can later be passed to print functions such as printDialogPrint
.
Print setups can be reused for multiple print calls.
Applications may wish to store the page_setup and print_settings from the print setup and copy them to the PrintDialog if they want to keep using them.
Since: 4.14
Synopsis
- newtype PrintSetup = PrintSetup (ManagedPtr PrintSetup)
- printSetupGetPageSetup :: (HasCallStack, MonadIO m) => PrintSetup -> m (Maybe PageSetup)
- printSetupGetPrintSettings :: (HasCallStack, MonadIO m) => PrintSetup -> m (Maybe PrintSettings)
- printSetupRef :: (HasCallStack, MonadIO m) => PrintSetup -> m PrintSetup
- printSetupUnref :: (HasCallStack, MonadIO m) => PrintSetup -> m ()
Exported types
newtype PrintSetup Source #
Memory-managed wrapper type.
Constructors
PrintSetup (ManagedPtr PrintSetup) |
Instances
Eq PrintSetup Source # | |
Defined in GI.Gtk.Structs.PrintSetup | |
GBoxed PrintSetup Source # | |
Defined in GI.Gtk.Structs.PrintSetup | |
ManagedPtrNewtype PrintSetup Source # | |
Defined in GI.Gtk.Structs.PrintSetup Methods toManagedPtr :: PrintSetup -> ManagedPtr PrintSetup | |
TypedObject PrintSetup Source # | |
Defined in GI.Gtk.Structs.PrintSetup | |
HasParentTypes PrintSetup Source # | |
Defined in GI.Gtk.Structs.PrintSetup | |
IsGValue (Maybe PrintSetup) Source # | Convert |
Defined in GI.Gtk.Structs.PrintSetup Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe PrintSetup -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe PrintSetup) | |
type ParentTypes PrintSetup Source # | |
Defined in GI.Gtk.Structs.PrintSetup |
Methods
Click to display all available methods, including inherited ones
getPageSetup
printSetupGetPageSetup Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> PrintSetup |
|
-> m (Maybe PageSetup) | Returns: the page setup, or |
Returns the page setup of setup
.
It may be different from the GtkPrintDialog
's page setup
if the user changed it during the setup process.
Since: 4.14
getPrintSettings
printSetupGetPrintSettings Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> PrintSetup |
|
-> m (Maybe PrintSettings) | Returns: the print settings, or |
Returns the print settings of setup
.
They may be different from the GtkPrintDialog
's settings
if the user changed them during the setup process.
Since: 4.14
ref
Arguments
:: (HasCallStack, MonadIO m) | |
=> PrintSetup |
|
-> m PrintSetup | Returns: the print setup |
Increase the reference count of setup
.
Since: 4.14
unref
Arguments
:: (HasCallStack, MonadIO m) | |
=> PrintSetup |
|
-> m () |
Decrease the reference count of setup
.
If the reference count reaches zero, the object is freed.
Since: 4.14