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