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
- paperSizeCopy
- paperSizeFree
- paperSizeGetDefault
- paperSizeGetDefaultBottomMargin
- paperSizeGetDefaultLeftMargin
- paperSizeGetDefaultRightMargin
- paperSizeGetDefaultTopMargin
- paperSizeGetDisplayName
- paperSizeGetHeight
- paperSizeGetName
- paperSizeGetPaperSizes
- paperSizeGetPpdName
- paperSizeGetWidth
- paperSizeIsCustom
- paperSizeIsEqual
- paperSizeIsIpp
- paperSizeNew
- paperSizeNewCustom
- paperSizeNewFromIpp
- paperSizeNewFromKeyFile
- paperSizeNewFromPpd
- paperSizeSetSize
- paperSizeToKeyFile
GtkPaperSize handles paper sizes. It uses the standard called [PWG 5101.1-2002 PWG: Standard for Media Standardized Names](http:/www.pwg.orgstandards.html) to name the paper sizes (and to get the data for the page sizes). In addition to standard paper sizes, GtkPaperSize allows to construct custom paper sizes with arbitrary dimensions.
The #GtkPaperSize object stores not only the dimensions (width and height) of a paper size and its name, it also provides default [print margins][print-margins].
Printing support has been added in GTK+ 2.10.
- newtype PaperSize = PaperSize (ForeignPtr PaperSize)
- noPaperSize :: Maybe PaperSize
- data PaperSizeCopyMethodInfo
- paperSizeCopy :: MonadIO m => PaperSize -> m PaperSize
- data PaperSizeFreeMethodInfo
- paperSizeFree :: MonadIO m => PaperSize -> m ()
- paperSizeGetDefault :: MonadIO m => m Text
- data PaperSizeGetDefaultBottomMarginMethodInfo
- paperSizeGetDefaultBottomMargin :: MonadIO m => PaperSize -> Unit -> m Double
- data PaperSizeGetDefaultLeftMarginMethodInfo
- paperSizeGetDefaultLeftMargin :: MonadIO m => PaperSize -> Unit -> m Double
- data PaperSizeGetDefaultRightMarginMethodInfo
- paperSizeGetDefaultRightMargin :: MonadIO m => PaperSize -> Unit -> m Double
- data PaperSizeGetDefaultTopMarginMethodInfo
- paperSizeGetDefaultTopMargin :: MonadIO m => PaperSize -> Unit -> m Double
- data PaperSizeGetDisplayNameMethodInfo
- paperSizeGetDisplayName :: MonadIO m => PaperSize -> m Text
- data PaperSizeGetHeightMethodInfo
- paperSizeGetHeight :: MonadIO m => PaperSize -> Unit -> m Double
- data PaperSizeGetNameMethodInfo
- paperSizeGetName :: MonadIO m => PaperSize -> m Text
- paperSizeGetPaperSizes :: MonadIO m => Bool -> m [PaperSize]
- data PaperSizeGetPpdNameMethodInfo
- paperSizeGetPpdName :: MonadIO m => PaperSize -> m Text
- data PaperSizeGetWidthMethodInfo
- paperSizeGetWidth :: MonadIO m => PaperSize -> Unit -> m Double
- data PaperSizeIsCustomMethodInfo
- paperSizeIsCustom :: MonadIO m => PaperSize -> m Bool
- data PaperSizeIsEqualMethodInfo
- paperSizeIsEqual :: MonadIO m => PaperSize -> PaperSize -> m Bool
- data PaperSizeIsIppMethodInfo
- paperSizeIsIpp :: MonadIO m => PaperSize -> m Bool
- paperSizeNew :: MonadIO m => Maybe Text -> m PaperSize
- paperSizeNewCustom :: MonadIO m => Text -> Text -> Double -> Double -> Unit -> m PaperSize
- paperSizeNewFromIpp :: MonadIO m => Text -> Double -> Double -> m PaperSize
- paperSizeNewFromKeyFile :: MonadIO m => KeyFile -> Text -> m PaperSize
- paperSizeNewFromPpd :: MonadIO m => Text -> Text -> Double -> Double -> m PaperSize
- data PaperSizeSetSizeMethodInfo
- paperSizeSetSize :: MonadIO m => PaperSize -> Double -> Double -> Unit -> m ()
- data PaperSizeToKeyFileMethodInfo
- paperSizeToKeyFile :: MonadIO m => PaperSize -> KeyFile -> Text -> m ()
Exported types
Methods
paperSizeCopy
data PaperSizeCopyMethodInfo Source
((~) * signature (m PaperSize), MonadIO m) => MethodInfo * PaperSizeCopyMethodInfo PaperSize signature |
paperSizeCopy :: MonadIO m => PaperSize -> m PaperSize Source
paperSizeFree
data PaperSizeFreeMethodInfo Source
((~) * signature (m ()), MonadIO m) => MethodInfo * PaperSizeFreeMethodInfo PaperSize signature |
paperSizeFree :: MonadIO m => PaperSize -> m () Source
paperSizeGetDefault
paperSizeGetDefault :: MonadIO m => m Text Source
paperSizeGetDefaultBottomMargin
data PaperSizeGetDefaultBottomMarginMethodInfo Source
((~) * signature (Unit -> m Double), MonadIO m) => MethodInfo * PaperSizeGetDefaultBottomMarginMethodInfo PaperSize signature |
paperSizeGetDefaultLeftMargin
data PaperSizeGetDefaultLeftMarginMethodInfo Source
((~) * signature (Unit -> m Double), MonadIO m) => MethodInfo * PaperSizeGetDefaultLeftMarginMethodInfo PaperSize signature |
paperSizeGetDefaultRightMargin
data PaperSizeGetDefaultRightMarginMethodInfo Source
((~) * signature (Unit -> m Double), MonadIO m) => MethodInfo * PaperSizeGetDefaultRightMarginMethodInfo PaperSize signature |
paperSizeGetDefaultTopMargin
data PaperSizeGetDefaultTopMarginMethodInfo Source
((~) * signature (Unit -> m Double), MonadIO m) => MethodInfo * PaperSizeGetDefaultTopMarginMethodInfo PaperSize signature |
paperSizeGetDisplayName
data PaperSizeGetDisplayNameMethodInfo Source
((~) * signature (m Text), MonadIO m) => MethodInfo * PaperSizeGetDisplayNameMethodInfo PaperSize signature |
paperSizeGetDisplayName :: MonadIO m => PaperSize -> m Text Source
paperSizeGetHeight
data PaperSizeGetHeightMethodInfo Source
((~) * signature (Unit -> m Double), MonadIO m) => MethodInfo * PaperSizeGetHeightMethodInfo PaperSize signature |
paperSizeGetName
data PaperSizeGetNameMethodInfo Source
((~) * signature (m Text), MonadIO m) => MethodInfo * PaperSizeGetNameMethodInfo PaperSize signature |
paperSizeGetName :: MonadIO m => PaperSize -> m Text Source
paperSizeGetPaperSizes
paperSizeGetPaperSizes :: MonadIO m => Bool -> m [PaperSize] Source
paperSizeGetPpdName
data PaperSizeGetPpdNameMethodInfo Source
((~) * signature (m Text), MonadIO m) => MethodInfo * PaperSizeGetPpdNameMethodInfo PaperSize signature |
paperSizeGetPpdName :: MonadIO m => PaperSize -> m Text Source
paperSizeGetWidth
data PaperSizeGetWidthMethodInfo Source
((~) * signature (Unit -> m Double), MonadIO m) => MethodInfo * PaperSizeGetWidthMethodInfo PaperSize signature |
paperSizeIsCustom
data PaperSizeIsCustomMethodInfo Source
((~) * signature (m Bool), MonadIO m) => MethodInfo * PaperSizeIsCustomMethodInfo PaperSize signature |
paperSizeIsCustom :: MonadIO m => PaperSize -> m Bool Source
paperSizeIsEqual
data PaperSizeIsEqualMethodInfo Source
((~) * signature (PaperSize -> m Bool), MonadIO m) => MethodInfo * PaperSizeIsEqualMethodInfo PaperSize signature |
paperSizeIsIpp
data PaperSizeIsIppMethodInfo Source
((~) * signature (m Bool), MonadIO m) => MethodInfo * PaperSizeIsIppMethodInfo PaperSize signature |
paperSizeIsIpp :: MonadIO m => PaperSize -> m Bool Source
paperSizeNew
paperSizeNewCustom
paperSizeNewFromIpp
paperSizeNewFromKeyFile
paperSizeNewFromPpd
paperSizeSetSize
data PaperSizeSetSizeMethodInfo Source
((~) * signature (Double -> Double -> Unit -> m ()), MonadIO m) => MethodInfo * PaperSizeSetSizeMethodInfo PaperSize signature |
paperSizeToKeyFile
data PaperSizeToKeyFileMethodInfo Source
((~) * signature (KeyFile -> Text -> m ()), MonadIO m) => MethodInfo * PaperSizeToKeyFileMethodInfo PaperSize signature |