wumpus-basic-0.8.0: Common drawing utilities built on wumpus-core.

PortabilityGHC with TypeFamilies and more
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Basic.Anchors

Contents

Description

Anchor points on shapes.

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

Synopsis

Anchors

class CenterAnchor t whereSource

Methods

center :: DUnit t ~ u => t -> Point2 uSource

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

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

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

Instances