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
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 GCtx
s and are therefore
more efficient than soft attributes.
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.