wumpus-basic-0.15.0: Basic objects and system code built on Wumpus-Core.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Basic.Kernel.Base.UpdateDC

Contents

Description

Customize 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

Modifiers

textMargin :: Double -> Double -> DrawingContextFSource

textMargin : xsep * ysep -> DrawingContextF

Line widths

thick :: DrawingContextFSource

Set the line width to a thick.

Note this context update is oblivious - operationally the line width is set to exactly 2.0.

Line caps

Line joins

Dash Pattern

Font properties

Font / mark drawing size

doublesize :: DrawingContextFSource

Set the font size to double the current size, note the font size also controls the size of dots, arrowsheads etc.

halfsize :: DrawingContextFSource

Set the font size to half the current size, note the font size also controls the size of dots, arrowsheads etc.

As fontsize is an integer this is not exact - half size of 15pt type is 7pt.

Colour