¤ attribD, softAttribD, et al

Types

attribD :: GCSpec -> Drawing a b -> Drawing a b
softAttribD :: [GCAttributes ColorSpec FontSpec] -> Drawing a b -> Drawing a b
hardAttribD :: GCtx -> Drawing a b -> Drawing a b
fontD :: (FontGen a) => a -> Drawing b c -> Drawing b c
fgD :: (ColorGen a) => a -> Drawing b c -> Drawing b c
fgnD :: ColorName -> Drawing a b -> Drawing a b
fontnD :: FontName -> Drawing a b -> Drawing a b
data GCSpec = SoftGC [GCAttributes ColorSpec FontSpec] | HardGC GCtx

Description

There are functions for specifying drawing attributes in Drawings. The attributes affects the drawing of 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.