diagrams-lib-1.3.1.1: Embedded domain-specific language for declarative graphics

Copyright(c) 2014 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.Attributes.Compile

Description

XXX

Synopsis

Documentation

class (AttributeClass (AttrType code), Typeable (PrimType code)) => SplitAttribute code where Source

Associated Types

type AttrType code :: * Source

type PrimType code :: * Source

Methods

primOK :: code -> PrimType code -> Bool Source

splitAttr :: forall code b v n a. SplitAttribute code => code -> RTree b v n a -> RTree b v n a Source

Push certain attributes down until they are at the roots of trees containing only "safe" nodes. In particular this is used to push fill attributes down until they are over only loops; see splitFills.