Safe Haskell | None |
---|---|
Language | Haskell98 |
This module provides funtionality for postscript export of the contents of canvas widgets.
- class GUIObject w => HasPostscript w where
- data PostScript
- pageheight :: Distance -> CreationConfig PostScript
- pagewidth :: Distance -> CreationConfig PostScript
- pagex :: Distance -> CreationConfig PostScript
- pagey :: Distance -> CreationConfig PostScript
- rotate :: Bool -> CreationConfig PostScript
- pageAnchor :: Anchor -> CreationConfig PostScript
- pswidth :: Distance -> CreationConfig PostScript
- psheight :: Distance -> CreationConfig PostScript
- pssize :: Size -> CreationConfig PostScript
- psfile :: String -> CreationConfig PostScript
- data ColourMode
- colourmode :: ColourMode -> CreationConfig PostScript
Documentation
class GUIObject w => HasPostscript w where Source #
Widgets that support postscript export instantiate the
class HasPostscript
.
postscript :: w -> [CreationConfig PostScript] -> IO () Source #
HasPostscript Canvas Source # | The contents of a canvas is printable. |
data PostScript Source #
The PostScript
datatype.
pageheight :: Distance -> CreationConfig PostScript Source #
Sets the page height.
pagewidth :: Distance -> CreationConfig PostScript Source #
Sets the page width.
pagex :: Distance -> CreationConfig PostScript Source #
Sets the output x coordinate of the anchor point.
pagey :: Distance -> CreationConfig PostScript Source #
Sets the output y coordinate of the anchor point.
rotate :: Bool -> CreationConfig PostScript Source #
If True
, rotate so that X axis isthe long direction of the
page.
pageAnchor :: Anchor -> CreationConfig PostScript Source #
Sets the page anchor.
pswidth :: Distance -> CreationConfig PostScript Source #
Sets the width of the area to print.
psheight :: Distance -> CreationConfig PostScript Source #
Sets the height of the area to print.
pssize :: Size -> CreationConfig PostScript Source #
Sets the width and height of the area to print.
psfile :: String -> CreationConfig PostScript Source #
Sets the filename of the output file.
data ColourMode Source #
The ColourMode
datatype.
Enum ColourMode Source # | |
Eq ColourMode Source # | |
Ord ColourMode Source # | |
Read ColourMode Source # | Internal. |
Show ColourMode Source # | Internal. |
GUIValue ColourMode Source # | Internal. |
colourmode :: ColourMode -> CreationConfig PostScript Source #
Sets the colourmode.