uni-htk-2.2.1.2: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Devices.Printer

Description

This module provides funtionality for postscript export of the contents of canvas widgets.

Synopsis

Documentation

class GUIObject w => HasPostscript w where Source

Widgets that support postscript export instantiate the class HasPostscript.

Minimal complete definition

Nothing

Instances

HasPostscript Canvas

The contents of a canvas is printable.

data PostScript Source

The PostScript datatype.

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.