wumpus-core-0.23.0: Pure Haskell PostScript and SVG generation.

PortabilityGHC with TypeFamilies and more
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Core.PtSize

Contents

Description

Numeric type representing Point size (1/72 inch) which is PostScript and Wumpus-Core's internal unit size.

Other unit types (e.g. centimeter) should define an appropriate instance of FromPtSize.

Synopsis

Point size type

Extract (unscaled) PtSize as a Double

Conversion class

class FromPtSize u whereSource

Convert the value of PtSize scaling accordingly.

Note - the Double instance perfoms no scaling, this is because internally Wumpus-Core works in points.

Methods

fromPtSize :: PtSize -> uSource

Instances