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.Graphic.DrawingContext

Contents

Description

Drawing attributes

** WARNING ** - this module needs systematic naming schemes both for update functions (primaryColour, ...) and for synthesized selectors (e.g. lowerxHeight). The current names will change.

Synopsis

Drawing context

markHeight :: FromPtSize u => DrawingContext -> uSource

A Mark is consider to be the height of a lowercase letter in the current font.

Note better to use xlowerHeight

lowerxHeight :: FromPtSize u => DrawingContext -> uSource

Height of a lower case 'x' in Courier.

'x' has no ascenders or descenders.

textDimensions :: FromPtSize u => String -> DrawingContext -> (u, u)Source

textDimensions : text -> DrawingContext -> (width,height)

Modifiers

Line widths

Dash Pattern

Font properties

Colour