ยค attribD, softAttribD, et al

Drawing

Types

attribD :: GCSpec -> Drawing lbl leaf -> Drawing lbl leaf
softAttribD :: [GCAttributes ColorSpec FontSpec] -> Drawing lbl leaf -> Drawing lbl leaf
hardAttribD :: GCtx -> Drawing lbl leaf -> Drawing lbl leaf
fontD :: (Show a, FontGen a) => a -> Drawing lbl leaf -> Drawing lbl leaf
fgD :: (Show a, ColorGen a) => a -> Drawing lbl leaf -> Drawing lbl leaf
data GCSpec = SoftGC [GCAttributes ColorSpec FontSpec] | HardGC GCtx
instance Show GCSpec

Description

There are functions for specifying drawing attributes in Drawings. The attributes affects the children of the node created.

With soft attributes, any attribute not given explicity is inherited from the parent.

Hard attributes sets all attributes, disregarding parent attributes completely. Hard attributes use preallocated GCtxs and are therefore more efficient than soft attributes.

See Also

The types: Drawing, ColorSpec, FontSpec, GCtx.

Bugs

Incomplete documentation.

This page documents work progress. Information on this page is subject to change without notice and does not represent a commitment on the part of the Fudgets corporation.