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
- paperSizeGetDefaultBottomMargin
- paperSizeGetDefaultLeftMargin
- paperSizeGetDefaultRightMargin
- paperSizeGetDefaultTopMargin
- paperSizeGetDisplayName
- paperSizeGetHeight
- paperSizeGetName
- 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
- paperSizeCopy :: MonadIO m => PaperSize -> m PaperSize
- paperSizeFree :: MonadIO m => PaperSize -> m ()
- paperSizeGetDefaultBottomMargin :: MonadIO m => PaperSize -> Unit -> m Double
- paperSizeGetDefaultLeftMargin :: MonadIO m => PaperSize -> Unit -> m Double
- paperSizeGetDefaultRightMargin :: MonadIO m => PaperSize -> Unit -> m Double
- paperSizeGetDefaultTopMargin :: MonadIO m => PaperSize -> Unit -> m Double
- paperSizeGetDisplayName :: MonadIO m => PaperSize -> m Text
- paperSizeGetHeight :: MonadIO m => PaperSize -> Unit -> m Double
- paperSizeGetName :: MonadIO m => PaperSize -> m Text
- paperSizeGetPpdName :: MonadIO m => PaperSize -> m Text
- paperSizeGetWidth :: MonadIO m => PaperSize -> Unit -> m Double
- paperSizeIsCustom :: MonadIO m => PaperSize -> m Bool
- paperSizeIsEqual :: MonadIO m => PaperSize -> PaperSize -> m Bool
- 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
- paperSizeSetSize :: MonadIO m => PaperSize -> Double -> Double -> Unit -> m ()
- paperSizeToKeyFile :: MonadIO m => PaperSize -> KeyFile -> Text -> m ()
Exported types
Methods
paperSizeCopy
paperSizeCopy :: MonadIO m => PaperSize -> m PaperSize Source
paperSizeFree
paperSizeFree :: MonadIO m => PaperSize -> m () Source
paperSizeGetDefaultBottomMargin
paperSizeGetDefaultLeftMargin
paperSizeGetDefaultRightMargin
paperSizeGetDefaultTopMargin
paperSizeGetDisplayName
paperSizeGetDisplayName :: MonadIO m => PaperSize -> m Text Source
paperSizeGetHeight
paperSizeGetName
paperSizeGetName :: MonadIO m => PaperSize -> m Text Source
paperSizeGetPpdName
paperSizeGetPpdName :: MonadIO m => PaperSize -> m Text Source
paperSizeGetWidth
paperSizeIsCustom
paperSizeIsCustom :: MonadIO m => PaperSize -> m Bool Source
paperSizeIsEqual
paperSizeIsIpp
paperSizeIsIpp :: MonadIO m => PaperSize -> m Bool Source