Source codeContentsIndex
Printer
Description
This module provides funtionality for postscript export of the contents of canvas widgets.
Synopsis
class (GUIObject w) => HasPostscript w where
postscript :: w -> [CreationConfig PostScript] -> IO ()
data PostScript
class (GUIObject w) => HasPostscript w where
postscript :: w -> [CreationConfig PostScript] -> IO ()
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
= FullColourMode
| GrayScaleMode
| MonoChromeMode
colourmode :: ColourMode -> CreationConfig PostScript
Documentation
class (GUIObject w) => HasPostscript w where
Widgets that support postscript export instantiate the class HasPostscript.
Methods
postscript :: w -> [CreationConfig PostScript] -> IO ()
Exports postscript from the given widget.
Instances
HasPostscript Canvas
data PostScript
The PostScript datatype.
class (GUIObject w) => HasPostscript w where
Widgets that support postscript export instantiate the class HasPostscript.
Methods
postscript :: w -> [CreationConfig PostScript] -> IO ()
Exports postscript from the given widget.
pageheight :: Distance -> CreationConfig PostScript
Sets the page height.
pagewidth :: Distance -> CreationConfig PostScript
Sets the page width.
pagex :: Distance -> CreationConfig PostScript
Sets the output x coordinate of the anchor point.
pagey :: Distance -> CreationConfig PostScript
Sets the output y coordinate of the anchor point.
rotate :: Bool -> CreationConfig PostScript
If True, rotate so that X axis isthe long direction of the page.
pageAnchor :: Anchor -> CreationConfig PostScript
Sets the page anchor.
pswidth :: Distance -> CreationConfig PostScript
Sets the width of the area to print.
psheight :: Distance -> CreationConfig PostScript
Sets the height of the area to print.
pssize :: Size -> CreationConfig PostScript
Sets the width and height of the area to print.
psfile :: String -> CreationConfig PostScript
Sets the filename of the output file.
data ColourMode
The ColourMode datatype.
Constructors
FullColourMode
GrayScaleMode
MonoChromeMode
Instances
GUIValue ColourMode
Read ColourMode
Show ColourMode
colourmode :: ColourMode -> CreationConfig PostScript
Produced by Haddock version 0.3