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

Safe HaskellSafe
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 Source #

Internal.

Eq Distance Source # 
Integral Distance Source #

Internal.

Num Distance Source #

Internal.

Ord Distance Source # 
Read Distance Source #

Internal.

Real Distance Source #

Internal.

Show Distance Source #

Internal.

GUIValue Distance Source #

Internal.

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

Internal.

HasSelectionBaseIndexRange Editor (Distance, Distance) Source #

You can select a text range inside an editor widget.

HasSelectionBaseIndex Editor ((Distance, Distance), (Distance, Distance)) Source #

You can select a text range inside an editor widget.

HasInsertionCursorIndexGet Editor (Distance, Distance) Source #

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

HasIndex Editor (Distance, Distance) BaseIndex Source #

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

GUIValue [(Distance, Distance)] Source #

Internal.

GUIValue [Distance] Source #

Internal.

GUIValue (Distance, Distance) Source #

Internal.

GUIValue (Distance, Distance, Distance, Distance) Source #

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.