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

Safe HaskellNone
LanguageHaskell98

HTk.Kernel.Geometry

Description

The module Geometry exports basic geometric types and functionality.

Synopsis

Documentation

newtype Distance Source

The Distance datatype - general representation of distances in HTk.

Constructors

Distance Int 

Instances

Enum Distance

Internal.

Eq Distance 
Integral Distance

Internal.

Num Distance

Internal.

Ord Distance 
Read Distance

Internal.

Real Distance

Internal.

Show Distance

Internal.

GUIValue Distance

Internal.

HasIndex Editor i BaseIndex => HasIndex Editor i (Distance, Distance)

Internal.

HasInsertionCursorIndexGet Editor (Distance, Distance)

You can get the position of the insertion cursor of an editor widget.

HasSelectionBaseIndexRange Editor (Distance, Distance)

You can select a text range inside an editor widget.

HasSelectionBaseIndex Editor ((Distance, Distance), (Distance, Distance))

You can select a text range inside an editor widget.

HasIndex Editor (Distance, Distance) BaseIndex

A pair of line and character is a valid index for an editor widget.

GUIValue [(Distance, Distance)]

Internal.

GUIValue [Distance]

Internal.

GUIValue (Distance, Distance)

Internal.

GUIValue (Distance, Distance, Distance, Distance)

Internal.

type Size = (Distance, Distance) Source

The Size datatype - a pair of two Distance values.

type Coord = [Position] Source

The Coord datatype - e.g. representing the coords of a canvas item.

type Position = (Distance, Distance) Source

The Position - a pair of two Distance values.

type Geometry = (Distance, Distance, Distance, Distance) Source

The Geometry datatype - normally representing position, width and height.

cm :: Double -> Distance Source

Conversion from cm to Distance.

pp :: Double -> Distance Source

Conversion from points to Distance.

mm :: Double -> Distance Source

Conversion from mm to Distance.

ic :: Double -> Distance Source

Conversion from inch to Distance.

tocm :: Distance -> Double Source

Conversion from Distance to cm.

toinch :: Distance -> Double Source

Conversion from Distance to inch.