wumpus-basic-0.5.0: Common drawing utilities built on wumpus-core.Source codeContentsIndex
Wumpus.Basic.Anchors
PortabilityGHC with TypeFamilies and more
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>
Contents
Anchors
Description

Anchor points on shapes.

** WARNING ** this module is an experiment, and may change significantly or even be dropped from future revisions.

Synopsis
class CenterAnchor t where
center :: DUnit t ~ u => t -> Point2 u
class CardinalAnchor t where
north :: DUnit t ~ u => t -> Point2 u
south :: DUnit t ~ u => t -> Point2 u
east :: DUnit t ~ u => t -> Point2 u
west :: DUnit t ~ u => t -> Point2 u
class CardinalAnchor2 t where
northeast :: DUnit t ~ u => t -> Point2 u
southeast :: DUnit t ~ u => t -> Point2 u
southwest :: DUnit t ~ u => t -> Point2 u
northwest :: DUnit t ~ u => t -> Point2 u
class TextAnchor t where
baselineSW :: DUnit t ~ u => t -> Point2 u
class RadialAnchor t where
radialAnchor :: DUnit t ~ u => Radian -> t -> Point2 u
Anchors
class CenterAnchor t whereSource
Methods
center :: DUnit t ~ u => t -> Point2 uSource
show/hide Instances
class CardinalAnchor t whereSource
Methods
north :: DUnit t ~ u => t -> Point2 uSource
south :: DUnit t ~ u => t -> Point2 uSource
east :: DUnit t ~ u => t -> Point2 uSource
west :: DUnit t ~ u => t -> Point2 uSource
show/hide Instances
class CardinalAnchor2 t whereSource
Methods
northeast :: DUnit t ~ u => t -> Point2 uSource
southeast :: DUnit t ~ u => t -> Point2 uSource
southwest :: DUnit t ~ u => t -> Point2 uSource
northwest :: DUnit t ~ u => t -> Point2 uSource
show/hide Instances
class TextAnchor t whereSource
textAnchor is the Bottom left corner on the baseline.
Methods
baselineSW :: DUnit t ~ u => t -> Point2 uSource
class RadialAnchor t whereSource
Anchor on a border that can be identified with and angle.
Methods
radialAnchor :: DUnit t ~ u => Radian -> t -> Point2 uSource
show/hide Instances
Produced by Haddock version 2.6.1