Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- copy
- foreach
- get
- getBool
- getCollate
- getDefaultSource
- getDither
- getDouble
- getDoubleWithDefault
- getDuplex
- getFinishings
- getInt
- getIntWithDefault
- getLength
- getMediaType
- getNCopies
- getNumberUp
- getNumberUpLayout
- getOrientation
- getOutputBin
- getPageRanges
- getPageSet
- getPaperHeight
- getPaperSize
- getPaperWidth
- getPrintPages
- getPrinter
- getPrinterLpi
- getQuality
- getResolution
- getResolutionX
- getResolutionY
- getReverse
- getScale
- getUseColor
- hasKey
- loadFile
- loadKeyFile
- new
- newFromFile
- newFromGvariant
- newFromKeyFile
- set
- setBool
- setCollate
- setDefaultSource
- setDither
- setDouble
- setDuplex
- setFinishings
- setInt
- setLength
- setMediaType
- setNCopies
- setNumberUp
- setNumberUpLayout
- setOrientation
- setOutputBin
- setPageRanges
- setPageSet
- setPaperHeight
- setPaperSize
- setPaperWidth
- setPrintPages
- setPrinter
- setPrinterLpi
- setQuality
- setResolution
- setResolutionXy
- setReverse
- setScale
- setUseColor
- toFile
- toGvariant
- toKeyFile
- unset
A GtkPrintSettings object represents the settings of a print dialog in a system-independent way. The main use for this object is that once you’ve printed you can get a settings object that represents the settings the user chose, and the next time you print you can pass that object in so that the user doesn’t have to re-set all his settings.
Its also possible to enumerate the settings so that you can easily save the settings for the next time your app runs, or even store them in a document. The predefined keys try to use shared values as much as possible so that moving such a document between systems still works.
Printing support was added in GTK+ 2.10.
- newtype PrintSettings = PrintSettings (ManagedPtr PrintSettings)
- class GObject o => IsPrintSettings o
- toPrintSettings :: IsPrintSettings o => o -> IO PrintSettings
- noPrintSettings :: Maybe PrintSettings
- data PrintSettingsCopyMethodInfo
- printSettingsCopy :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m PrintSettings
- data PrintSettingsForeachMethodInfo
- printSettingsForeach :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> PrintSettingsFunc -> m ()
- data PrintSettingsGetMethodInfo
- printSettingsGet :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m Text
- data PrintSettingsGetBoolMethodInfo
- printSettingsGetBool :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m Bool
- data PrintSettingsGetCollateMethodInfo
- printSettingsGetCollate :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Bool
- data PrintSettingsGetDefaultSourceMethodInfo
- printSettingsGetDefaultSource :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Text
- data PrintSettingsGetDitherMethodInfo
- printSettingsGetDither :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Text
- data PrintSettingsGetDoubleMethodInfo
- printSettingsGetDouble :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m Double
- data PrintSettingsGetDoubleWithDefaultMethodInfo
- printSettingsGetDoubleWithDefault :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> Double -> m Double
- data PrintSettingsGetDuplexMethodInfo
- printSettingsGetDuplex :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m PrintDuplex
- data PrintSettingsGetFinishingsMethodInfo
- printSettingsGetFinishings :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Text
- data PrintSettingsGetIntMethodInfo
- printSettingsGetInt :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m Int32
- data PrintSettingsGetIntWithDefaultMethodInfo
- printSettingsGetIntWithDefault :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> Int32 -> m Int32
- data PrintSettingsGetLengthMethodInfo
- printSettingsGetLength :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> Unit -> m Double
- data PrintSettingsGetMediaTypeMethodInfo
- printSettingsGetMediaType :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Text
- data PrintSettingsGetNCopiesMethodInfo
- printSettingsGetNCopies :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Int32
- data PrintSettingsGetNumberUpMethodInfo
- printSettingsGetNumberUp :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Int32
- data PrintSettingsGetNumberUpLayoutMethodInfo
- printSettingsGetNumberUpLayout :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m NumberUpLayout
- data PrintSettingsGetOrientationMethodInfo
- printSettingsGetOrientation :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m PageOrientation
- data PrintSettingsGetOutputBinMethodInfo
- printSettingsGetOutputBin :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Text
- data PrintSettingsGetPageRangesMethodInfo
- printSettingsGetPageRanges :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m [PageRange]
- data PrintSettingsGetPageSetMethodInfo
- printSettingsGetPageSet :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m PageSet
- data PrintSettingsGetPaperHeightMethodInfo
- printSettingsGetPaperHeight :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Unit -> m Double
- data PrintSettingsGetPaperSizeMethodInfo
- printSettingsGetPaperSize :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m PaperSize
- data PrintSettingsGetPaperWidthMethodInfo
- printSettingsGetPaperWidth :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Unit -> m Double
- data PrintSettingsGetPrintPagesMethodInfo
- printSettingsGetPrintPages :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m PrintPages
- data PrintSettingsGetPrinterMethodInfo
- printSettingsGetPrinter :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Text
- data PrintSettingsGetPrinterLpiMethodInfo
- printSettingsGetPrinterLpi :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Double
- data PrintSettingsGetQualityMethodInfo
- printSettingsGetQuality :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m PrintQuality
- data PrintSettingsGetResolutionMethodInfo
- printSettingsGetResolution :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Int32
- data PrintSettingsGetResolutionXMethodInfo
- printSettingsGetResolutionX :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Int32
- data PrintSettingsGetResolutionYMethodInfo
- printSettingsGetResolutionY :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Int32
- data PrintSettingsGetReverseMethodInfo
- printSettingsGetReverse :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Bool
- data PrintSettingsGetScaleMethodInfo
- printSettingsGetScale :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Double
- data PrintSettingsGetUseColorMethodInfo
- printSettingsGetUseColor :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m Bool
- data PrintSettingsHasKeyMethodInfo
- printSettingsHasKey :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m Bool
- data PrintSettingsLoadFileMethodInfo
- printSettingsLoadFile :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> [Char] -> m ()
- data PrintSettingsLoadKeyFileMethodInfo
- printSettingsLoadKeyFile :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> KeyFile -> Maybe Text -> m ()
- printSettingsNew :: (HasCallStack, MonadIO m) => m PrintSettings
- printSettingsNewFromFile :: (HasCallStack, MonadIO m) => [Char] -> m PrintSettings
- printSettingsNewFromGvariant :: (HasCallStack, MonadIO m) => GVariant -> m PrintSettings
- printSettingsNewFromKeyFile :: (HasCallStack, MonadIO m) => KeyFile -> Maybe Text -> m PrintSettings
- data PrintSettingsSetMethodInfo
- printSettingsSet :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> Maybe Text -> m ()
- data PrintSettingsSetBoolMethodInfo
- printSettingsSetBool :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> Bool -> m ()
- data PrintSettingsSetCollateMethodInfo
- printSettingsSetCollate :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Bool -> m ()
- data PrintSettingsSetDefaultSourceMethodInfo
- printSettingsSetDefaultSource :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m ()
- data PrintSettingsSetDitherMethodInfo
- printSettingsSetDither :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m ()
- data PrintSettingsSetDoubleMethodInfo
- printSettingsSetDouble :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> Double -> m ()
- data PrintSettingsSetDuplexMethodInfo
- printSettingsSetDuplex :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> PrintDuplex -> m ()
- data PrintSettingsSetFinishingsMethodInfo
- printSettingsSetFinishings :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m ()
- data PrintSettingsSetIntMethodInfo
- printSettingsSetInt :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> Int32 -> m ()
- data PrintSettingsSetLengthMethodInfo
- printSettingsSetLength :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> Double -> Unit -> m ()
- data PrintSettingsSetMediaTypeMethodInfo
- printSettingsSetMediaType :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m ()
- data PrintSettingsSetNCopiesMethodInfo
- printSettingsSetNCopies :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Int32 -> m ()
- data PrintSettingsSetNumberUpMethodInfo
- printSettingsSetNumberUp :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Int32 -> m ()
- data PrintSettingsSetNumberUpLayoutMethodInfo
- printSettingsSetNumberUpLayout :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> NumberUpLayout -> m ()
- data PrintSettingsSetOrientationMethodInfo
- printSettingsSetOrientation :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> PageOrientation -> m ()
- data PrintSettingsSetOutputBinMethodInfo
- printSettingsSetOutputBin :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m ()
- data PrintSettingsSetPageRangesMethodInfo
- printSettingsSetPageRanges :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> [PageRange] -> m ()
- data PrintSettingsSetPageSetMethodInfo
- printSettingsSetPageSet :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> PageSet -> m ()
- data PrintSettingsSetPaperHeightMethodInfo
- printSettingsSetPaperHeight :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Double -> Unit -> m ()
- data PrintSettingsSetPaperSizeMethodInfo
- printSettingsSetPaperSize :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> PaperSize -> m ()
- data PrintSettingsSetPaperWidthMethodInfo
- printSettingsSetPaperWidth :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Double -> Unit -> m ()
- data PrintSettingsSetPrintPagesMethodInfo
- printSettingsSetPrintPages :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> PrintPages -> m ()
- data PrintSettingsSetPrinterMethodInfo
- printSettingsSetPrinter :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m ()
- data PrintSettingsSetPrinterLpiMethodInfo
- printSettingsSetPrinterLpi :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Double -> m ()
- data PrintSettingsSetQualityMethodInfo
- printSettingsSetQuality :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> PrintQuality -> m ()
- data PrintSettingsSetResolutionMethodInfo
- printSettingsSetResolution :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Int32 -> m ()
- data PrintSettingsSetResolutionXyMethodInfo
- printSettingsSetResolutionXy :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Int32 -> Int32 -> m ()
- data PrintSettingsSetReverseMethodInfo
- printSettingsSetReverse :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Bool -> m ()
- data PrintSettingsSetScaleMethodInfo
- printSettingsSetScale :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Double -> m ()
- data PrintSettingsSetUseColorMethodInfo
- printSettingsSetUseColor :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Bool -> m ()
- data PrintSettingsToFileMethodInfo
- printSettingsToFile :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> [Char] -> m ()
- data PrintSettingsToGvariantMethodInfo
- printSettingsToGvariant :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> m GVariant
- data PrintSettingsToKeyFileMethodInfo
- printSettingsToKeyFile :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> KeyFile -> Text -> m ()
- data PrintSettingsUnsetMethodInfo
- printSettingsUnset :: (HasCallStack, MonadIO m, IsPrintSettings a) => a -> Text -> m ()
Exported types
newtype PrintSettings Source #
GObject PrintSettings Source # | |
IsObject PrintSettings Source # | |
IsPrintSettings PrintSettings Source # | |
((~) * info (ResolvePrintSettingsMethod t PrintSettings), MethodInfo * info PrintSettings p) => IsLabel t (PrintSettings -> p) Source # | |
((~) * info (ResolvePrintSettingsMethod t PrintSettings), MethodInfo * info PrintSettings p) => IsLabelProxy t (PrintSettings -> p) Source # | |
HasAttributeList * PrintSettings Source # | |
type AttributeList PrintSettings Source # | |
type SignalList PrintSettings Source # | |
class GObject o => IsPrintSettings o Source #
toPrintSettings :: IsPrintSettings o => o -> IO PrintSettings Source #
Methods
copy
data PrintSettingsCopyMethodInfo Source #
((~) * signature (m PrintSettings), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsCopyMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m PrintSettings | Returns: a newly allocated copy of |
Copies a PrintSettings
object.
Since: 2.10
foreach
data PrintSettingsForeachMethodInfo Source #
((~) * signature (PrintSettingsFunc -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsForeachMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> PrintSettingsFunc |
|
-> m () |
Calls func
for each key-value pair of settings
.
Since: 2.10
get
data PrintSettingsGetMethodInfo Source #
((~) * signature (Text -> m Text), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m Text | Returns: the string value for |
Looks up the string value associated with key
.
Since: 2.10
getBool
data PrintSettingsGetBoolMethodInfo Source #
((~) * signature (Text -> m Bool), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetBoolMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
getCollate
data PrintSettingsGetCollateMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetCollateMethodInfo a signature Source # | |
printSettingsGetCollate Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Bool | Returns: whether to collate the printed pages |
Gets the value of PRINT_SETTINGS_COLLATE
.
Since: 2.10
getDefaultSource
data PrintSettingsGetDefaultSourceMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetDefaultSourceMethodInfo a signature Source # | |
printSettingsGetDefaultSource Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Text | Returns: the default source |
Gets the value of PRINT_SETTINGS_DEFAULT_SOURCE
.
Since: 2.10
getDither
data PrintSettingsGetDitherMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetDitherMethodInfo a signature Source # | |
printSettingsGetDither Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Text | Returns: the dithering that is used |
Gets the value of PRINT_SETTINGS_DITHER
.
Since: 2.10
getDouble
data PrintSettingsGetDoubleMethodInfo Source #
((~) * signature (Text -> m Double), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetDoubleMethodInfo a signature Source # | |
printSettingsGetDouble Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m Double | Returns: the double value of |
Returns the double value associated with key
, or 0.
Since: 2.10
getDoubleWithDefault
data PrintSettingsGetDoubleWithDefaultMethodInfo Source #
((~) * signature (Text -> Double -> m Double), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetDoubleWithDefaultMethodInfo a signature Source # | |
printSettingsGetDoubleWithDefault Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> Double |
|
-> m Double | Returns: the floating point number associated with |
Returns the floating point number represented by
the value that is associated with key
, or defaultVal
if the value does not represent a floating point number.
Floating point numbers are parsed with asciiStrtod
.
Since: 2.10
getDuplex
data PrintSettingsGetDuplexMethodInfo Source #
((~) * signature (m PrintDuplex), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetDuplexMethodInfo a signature Source # | |
printSettingsGetDuplex Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m PrintDuplex | Returns: whether to print the output in duplex. |
Gets the value of PRINT_SETTINGS_DUPLEX
.
Since: 2.10
getFinishings
data PrintSettingsGetFinishingsMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetFinishingsMethodInfo a signature Source # | |
printSettingsGetFinishings Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Text | Returns: the finishings |
Gets the value of PRINT_SETTINGS_FINISHINGS
.
Since: 2.10
getInt
data PrintSettingsGetIntMethodInfo Source #
((~) * signature (Text -> m Int32), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetIntMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m Int32 | Returns: the integer value of |
Returns the integer value of key
, or 0.
Since: 2.10
getIntWithDefault
data PrintSettingsGetIntWithDefaultMethodInfo Source #
((~) * signature (Text -> Int32 -> m Int32), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetIntWithDefaultMethodInfo a signature Source # | |
printSettingsGetIntWithDefault Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> m Int32 | Returns: the integer value of |
Returns the value of key
, interpreted as
an integer, or the default value.
Since: 2.10
getLength
data PrintSettingsGetLengthMethodInfo Source #
((~) * signature (Text -> Unit -> m Double), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetLengthMethodInfo a signature Source # | |
printSettingsGetLength Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> Unit |
|
-> m Double | Returns: the length value of |
Returns the value associated with key
, interpreted
as a length. The returned value is converted to units
.
Since: 2.10
getMediaType
data PrintSettingsGetMediaTypeMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetMediaTypeMethodInfo a signature Source # | |
printSettingsGetMediaType Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Text | Returns: the media type |
Gets the value of PRINT_SETTINGS_MEDIA_TYPE
.
The set of media types is defined in PWG 5101.1-2002 PWG.
Since: 2.10
getNCopies
data PrintSettingsGetNCopiesMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetNCopiesMethodInfo a signature Source # | |
printSettingsGetNCopies Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Int32 | Returns: the number of copies to print |
Gets the value of PRINT_SETTINGS_N_COPIES
.
Since: 2.10
getNumberUp
data PrintSettingsGetNumberUpMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetNumberUpMethodInfo a signature Source # | |
printSettingsGetNumberUp Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Int32 | Returns: the number of pages per sheet |
Gets the value of PRINT_SETTINGS_NUMBER_UP
.
Since: 2.10
getNumberUpLayout
data PrintSettingsGetNumberUpLayoutMethodInfo Source #
((~) * signature (m NumberUpLayout), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetNumberUpLayoutMethodInfo a signature Source # | |
printSettingsGetNumberUpLayout Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m NumberUpLayout | Returns: layout of page in number-up mode |
Gets the value of PRINT_SETTINGS_NUMBER_UP_LAYOUT
.
Since: 2.14
getOrientation
data PrintSettingsGetOrientationMethodInfo Source #
((~) * signature (m PageOrientation), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetOrientationMethodInfo a signature Source # | |
printSettingsGetOrientation Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m PageOrientation | Returns: the orientation |
Get the value of PRINT_SETTINGS_ORIENTATION
,
converted to a PageOrientation
.
Since: 2.10
getOutputBin
data PrintSettingsGetOutputBinMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetOutputBinMethodInfo a signature Source # | |
printSettingsGetOutputBin Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Text | Returns: the output bin |
Gets the value of PRINT_SETTINGS_OUTPUT_BIN
.
Since: 2.10
getPageRanges
data PrintSettingsGetPageRangesMethodInfo Source #
((~) * signature (m [PageRange]), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetPageRangesMethodInfo a signature Source # | |
printSettingsGetPageRanges Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m [PageRange] | Returns: an array
of |
Gets the value of PRINT_SETTINGS_PAGE_RANGES
.
Since: 2.10
getPageSet
data PrintSettingsGetPageSetMethodInfo Source #
((~) * signature (m PageSet), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetPageSetMethodInfo a signature Source # | |
printSettingsGetPageSet Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m PageSet | Returns: the set of pages to print |
Gets the value of PRINT_SETTINGS_PAGE_SET
.
Since: 2.10
getPaperHeight
data PrintSettingsGetPaperHeightMethodInfo Source #
((~) * signature (Unit -> m Double), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetPaperHeightMethodInfo a signature Source # | |
printSettingsGetPaperHeight Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Unit |
|
-> m Double | Returns: the paper height, in units of |
Gets the value of PRINT_SETTINGS_PAPER_HEIGHT
,
converted to unit
.
Since: 2.10
getPaperSize
data PrintSettingsGetPaperSizeMethodInfo Source #
((~) * signature (m PaperSize), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetPaperSizeMethodInfo a signature Source # | |
printSettingsGetPaperSize Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m PaperSize | Returns: the paper size |
Gets the value of PRINT_SETTINGS_PAPER_FORMAT
,
converted to a PaperSize
.
Since: 2.10
getPaperWidth
data PrintSettingsGetPaperWidthMethodInfo Source #
((~) * signature (Unit -> m Double), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetPaperWidthMethodInfo a signature Source # | |
printSettingsGetPaperWidth Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Unit |
|
-> m Double | Returns: the paper width, in units of |
Gets the value of PRINT_SETTINGS_PAPER_WIDTH
,
converted to unit
.
Since: 2.10
getPrintPages
data PrintSettingsGetPrintPagesMethodInfo Source #
((~) * signature (m PrintPages), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetPrintPagesMethodInfo a signature Source # | |
printSettingsGetPrintPages Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m PrintPages | Returns: which pages to print |
Gets the value of PRINT_SETTINGS_PRINT_PAGES
.
Since: 2.10
getPrinter
data PrintSettingsGetPrinterMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetPrinterMethodInfo a signature Source # | |
printSettingsGetPrinter Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Text | Returns: the printer name |
Convenience function to obtain the value of
PRINT_SETTINGS_PRINTER
.
Since: 2.10
getPrinterLpi
data PrintSettingsGetPrinterLpiMethodInfo Source #
((~) * signature (m Double), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetPrinterLpiMethodInfo a signature Source # | |
printSettingsGetPrinterLpi Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Double | Returns: the resolution in lpi (lines per inch) |
Gets the value of PRINT_SETTINGS_PRINTER_LPI
.
Since: 2.16
getQuality
data PrintSettingsGetQualityMethodInfo Source #
((~) * signature (m PrintQuality), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetQualityMethodInfo a signature Source # | |
printSettingsGetQuality Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m PrintQuality | Returns: the print quality |
Gets the value of PRINT_SETTINGS_QUALITY
.
Since: 2.10
getResolution
data PrintSettingsGetResolutionMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetResolutionMethodInfo a signature Source # | |
printSettingsGetResolution Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Int32 | Returns: the resolution in dpi |
Gets the value of PRINT_SETTINGS_RESOLUTION
.
Since: 2.10
getResolutionX
data PrintSettingsGetResolutionXMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetResolutionXMethodInfo a signature Source # | |
printSettingsGetResolutionX Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Int32 | Returns: the horizontal resolution in dpi |
Gets the value of PRINT_SETTINGS_RESOLUTION_X
.
Since: 2.16
getResolutionY
data PrintSettingsGetResolutionYMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetResolutionYMethodInfo a signature Source # | |
printSettingsGetResolutionY Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Int32 | Returns: the vertical resolution in dpi |
Gets the value of PRINT_SETTINGS_RESOLUTION_Y
.
Since: 2.16
getReverse
data PrintSettingsGetReverseMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetReverseMethodInfo a signature Source # | |
printSettingsGetReverse Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Bool | Returns: whether to reverse the order of the printed pages |
Gets the value of PRINT_SETTINGS_REVERSE
.
Since: 2.10
getScale
data PrintSettingsGetScaleMethodInfo Source #
((~) * signature (m Double), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetScaleMethodInfo a signature Source # | |
printSettingsGetScale Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Double | Returns: the scale in percent |
Gets the value of PRINT_SETTINGS_SCALE
.
Since: 2.10
getUseColor
data PrintSettingsGetUseColorMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsGetUseColorMethodInfo a signature Source # | |
printSettingsGetUseColor Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m Bool | Returns: whether to use color |
Gets the value of PRINT_SETTINGS_USE_COLOR
.
Since: 2.10
hasKey
data PrintSettingsHasKeyMethodInfo Source #
((~) * signature (Text -> m Bool), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsHasKeyMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Returns True
, if a value is associated with key
.
Since: 2.10
loadFile
data PrintSettingsLoadFileMethodInfo Source #
((~) * signature ([Char] -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsLoadFileMethodInfo a signature Source # | |
printSettingsLoadFile Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> [Char] |
|
-> m () | (Can throw |
Reads the print settings from fileName
. If the file could not be loaded
then error is set to either a FileError
or KeyFileError
.
See printSettingsToFile
.
Since: 2.14
loadKeyFile
data PrintSettingsLoadKeyFileMethodInfo Source #
((~) * signature (KeyFile -> Maybe Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsLoadKeyFileMethodInfo a signature Source # | |
printSettingsLoadKeyFile Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> KeyFile |
|
-> Maybe Text |
|
-> m () | (Can throw |
Reads the print settings from the group groupName
in keyFile
. If the
file could not be loaded then error is set to either a FileError
or
KeyFileError
.
Since: 2.14
new
:: (HasCallStack, MonadIO m) | |
=> m PrintSettings | Returns: a new |
Creates a new PrintSettings
object.
Since: 2.10
newFromFile
printSettingsNewFromFile Source #
:: (HasCallStack, MonadIO m) | |
=> [Char] |
|
-> m PrintSettings | Returns: the restored |
Reads the print settings from fileName
. Returns a new PrintSettings
object with the restored settings, or Nothing
if an error occurred. If the
file could not be loaded then error is set to either a FileError
or
KeyFileError
. See printSettingsToFile
.
Since: 2.12
newFromGvariant
printSettingsNewFromGvariant Source #
:: (HasCallStack, MonadIO m) | |
=> GVariant |
|
-> m PrintSettings | Returns: a new |
Deserialize print settings from an a{sv} variant in
the format produced by printSettingsToGvariant
.
Since: 3.22
newFromKeyFile
printSettingsNewFromKeyFile Source #
:: (HasCallStack, MonadIO m) | |
=> KeyFile |
|
-> Maybe Text |
|
-> m PrintSettings | Returns: the restored |
Reads the print settings from the group groupName
in keyFile
. Returns a
new PrintSettings
object with the restored settings, or Nothing
if an
error occurred. If the file could not be loaded then error is set to either
a FileError
or KeyFileError
.
Since: 2.12
set
data PrintSettingsSetMethodInfo Source #
((~) * signature (Text -> Maybe Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> Maybe Text |
|
-> m () |
Associates value
with key
.
Since: 2.10
setBool
data PrintSettingsSetBoolMethodInfo Source #
((~) * signature (Text -> Bool -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetBoolMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> Bool |
|
-> m () |
Sets key
to a boolean value.
Since: 2.10
setCollate
data PrintSettingsSetCollateMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetCollateMethodInfo a signature Source # | |
printSettingsSetCollate Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the value of PRINT_SETTINGS_COLLATE
.
Since: 2.10
setDefaultSource
data PrintSettingsSetDefaultSourceMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetDefaultSourceMethodInfo a signature Source # | |
printSettingsSetDefaultSource Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the value of PRINT_SETTINGS_DEFAULT_SOURCE
.
Since: 2.10
setDither
data PrintSettingsSetDitherMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetDitherMethodInfo a signature Source # | |
printSettingsSetDither Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the value of PRINT_SETTINGS_DITHER
.
Since: 2.10
setDouble
data PrintSettingsSetDoubleMethodInfo Source #
((~) * signature (Text -> Double -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetDoubleMethodInfo a signature Source # | |
printSettingsSetDouble Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> Double |
|
-> m () |
Sets key
to a double value.
Since: 2.10
setDuplex
data PrintSettingsSetDuplexMethodInfo Source #
((~) * signature (PrintDuplex -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetDuplexMethodInfo a signature Source # | |
printSettingsSetDuplex Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> PrintDuplex |
|
-> m () |
Sets the value of PRINT_SETTINGS_DUPLEX
.
Since: 2.10
setFinishings
data PrintSettingsSetFinishingsMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetFinishingsMethodInfo a signature Source # | |
printSettingsSetFinishings Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the value of PRINT_SETTINGS_FINISHINGS
.
Since: 2.10
setInt
data PrintSettingsSetIntMethodInfo Source #
((~) * signature (Text -> Int32 -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetIntMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> m () |
Sets key
to an integer value.
Since: 2.10
setLength
data PrintSettingsSetLengthMethodInfo Source #
((~) * signature (Text -> Double -> Unit -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetLengthMethodInfo a signature Source # | |
printSettingsSetLength Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> Double |
|
-> Unit |
|
-> m () |
Associates a length in units of unit
with key
.
Since: 2.10
setMediaType
data PrintSettingsSetMediaTypeMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetMediaTypeMethodInfo a signature Source # | |
printSettingsSetMediaType Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the value of PRINT_SETTINGS_MEDIA_TYPE
.
The set of media types is defined in PWG 5101.1-2002 PWG.
Since: 2.10
setNCopies
data PrintSettingsSetNCopiesMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetNCopiesMethodInfo a signature Source # | |
printSettingsSetNCopies Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the value of PRINT_SETTINGS_N_COPIES
.
Since: 2.10
setNumberUp
data PrintSettingsSetNumberUpMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetNumberUpMethodInfo a signature Source # | |
printSettingsSetNumberUp Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the value of PRINT_SETTINGS_NUMBER_UP
.
Since: 2.10
setNumberUpLayout
data PrintSettingsSetNumberUpLayoutMethodInfo Source #
((~) * signature (NumberUpLayout -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetNumberUpLayoutMethodInfo a signature Source # | |
printSettingsSetNumberUpLayout Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> NumberUpLayout |
|
-> m () |
Sets the value of PRINT_SETTINGS_NUMBER_UP_LAYOUT
.
Since: 2.14
setOrientation
data PrintSettingsSetOrientationMethodInfo Source #
((~) * signature (PageOrientation -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetOrientationMethodInfo a signature Source # | |
printSettingsSetOrientation Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> PageOrientation |
|
-> m () |
Sets the value of PRINT_SETTINGS_ORIENTATION
.
Since: 2.10
setOutputBin
data PrintSettingsSetOutputBinMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetOutputBinMethodInfo a signature Source # | |
printSettingsSetOutputBin Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the value of PRINT_SETTINGS_OUTPUT_BIN
.
Since: 2.10
setPageRanges
data PrintSettingsSetPageRangesMethodInfo Source #
((~) * signature ([PageRange] -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetPageRangesMethodInfo a signature Source # | |
printSettingsSetPageRanges Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> [PageRange] |
|
-> m () |
Sets the value of PRINT_SETTINGS_PAGE_RANGES
.
Since: 2.10
setPageSet
data PrintSettingsSetPageSetMethodInfo Source #
((~) * signature (PageSet -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetPageSetMethodInfo a signature Source # | |
printSettingsSetPageSet Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> PageSet |
|
-> m () |
Sets the value of PRINT_SETTINGS_PAGE_SET
.
Since: 2.10
setPaperHeight
data PrintSettingsSetPaperHeightMethodInfo Source #
((~) * signature (Double -> Unit -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetPaperHeightMethodInfo a signature Source # | |
printSettingsSetPaperHeight Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Double |
|
-> Unit |
|
-> m () |
Sets the value of PRINT_SETTINGS_PAPER_HEIGHT
.
Since: 2.10
setPaperSize
data PrintSettingsSetPaperSizeMethodInfo Source #
((~) * signature (PaperSize -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetPaperSizeMethodInfo a signature Source # | |
printSettingsSetPaperSize Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> PaperSize |
|
-> m () |
Sets the value of PRINT_SETTINGS_PAPER_FORMAT
,
PRINT_SETTINGS_PAPER_WIDTH
and
PRINT_SETTINGS_PAPER_HEIGHT
.
Since: 2.10
setPaperWidth
data PrintSettingsSetPaperWidthMethodInfo Source #
((~) * signature (Double -> Unit -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetPaperWidthMethodInfo a signature Source # | |
printSettingsSetPaperWidth Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Double |
|
-> Unit |
|
-> m () |
Sets the value of PRINT_SETTINGS_PAPER_WIDTH
.
Since: 2.10
setPrintPages
data PrintSettingsSetPrintPagesMethodInfo Source #
((~) * signature (PrintPages -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetPrintPagesMethodInfo a signature Source # | |
printSettingsSetPrintPages Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> PrintPages |
|
-> m () |
Sets the value of PRINT_SETTINGS_PRINT_PAGES
.
Since: 2.10
setPrinter
data PrintSettingsSetPrinterMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetPrinterMethodInfo a signature Source # | |
printSettingsSetPrinter Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m () |
Convenience function to set PRINT_SETTINGS_PRINTER
to printer
.
Since: 2.10
setPrinterLpi
data PrintSettingsSetPrinterLpiMethodInfo Source #
((~) * signature (Double -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetPrinterLpiMethodInfo a signature Source # | |
printSettingsSetPrinterLpi Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the value of PRINT_SETTINGS_PRINTER_LPI
.
Since: 2.16
setQuality
data PrintSettingsSetQualityMethodInfo Source #
((~) * signature (PrintQuality -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetQualityMethodInfo a signature Source # | |
printSettingsSetQuality Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> PrintQuality |
|
-> m () |
Sets the value of PRINT_SETTINGS_QUALITY
.
Since: 2.10
setResolution
data PrintSettingsSetResolutionMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetResolutionMethodInfo a signature Source # | |
printSettingsSetResolution Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the values of PRINT_SETTINGS_RESOLUTION
,
PRINT_SETTINGS_RESOLUTION_X
and
PRINT_SETTINGS_RESOLUTION_Y
.
Since: 2.10
setResolutionXy
data PrintSettingsSetResolutionXyMethodInfo Source #
((~) * signature (Int32 -> Int32 -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetResolutionXyMethodInfo a signature Source # | |
printSettingsSetResolutionXy Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Sets the values of PRINT_SETTINGS_RESOLUTION
,
PRINT_SETTINGS_RESOLUTION_X
and
PRINT_SETTINGS_RESOLUTION_Y
.
Since: 2.16
setReverse
data PrintSettingsSetReverseMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetReverseMethodInfo a signature Source # | |
printSettingsSetReverse Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the value of PRINT_SETTINGS_REVERSE
.
Since: 2.10
setScale
data PrintSettingsSetScaleMethodInfo Source #
((~) * signature (Double -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetScaleMethodInfo a signature Source # | |
printSettingsSetScale Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the value of PRINT_SETTINGS_SCALE
.
Since: 2.10
setUseColor
data PrintSettingsSetUseColorMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsSetUseColorMethodInfo a signature Source # | |
printSettingsSetUseColor Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the value of PRINT_SETTINGS_USE_COLOR
.
Since: 2.10
toFile
data PrintSettingsToFileMethodInfo Source #
((~) * signature ([Char] -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsToFileMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> [Char] |
|
-> m () | (Can throw |
This function saves the print settings from settings
to fileName
. If the
file could not be loaded then error is set to either a FileError
or
KeyFileError
.
Since: 2.12
toGvariant
data PrintSettingsToGvariantMethodInfo Source #
((~) * signature (m GVariant), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsToGvariantMethodInfo a signature Source # | |
printSettingsToGvariant Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> m GVariant | Returns: a new, floating, |
Serialize print settings to an a{sv} variant.
Since: 3.22
toKeyFile
data PrintSettingsToKeyFileMethodInfo Source #
((~) * signature (KeyFile -> Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsToKeyFileMethodInfo a signature Source # | |
printSettingsToKeyFile Source #
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> KeyFile |
|
-> Text |
|
-> m () |
This function adds the print settings from settings
to keyFile
.
Since: 2.12
unset
data PrintSettingsUnsetMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsPrintSettings a) => MethodInfo * PrintSettingsUnsetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsPrintSettings a) | |
=> a |
|
-> Text |
|
-> m () |
Removes any value associated with key
.
This has the same effect as setting the value to Nothing
.
Since: 2.10